From 2a925274e53b3aed60fcd3ee8b06357c72c1ef1d Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Thu, 14 Nov 2024 15:25:42 +0000 Subject: [PATCH 1/5] build(codegen): updating SDK --- changes.md | 46 ++----------------- .../api/client/ByProjectKeyGraphqlPost.java | 2 +- .../client/ByProjectKeyGraphqlPostString.java | 2 +- .../api/models/error/GraphQLErrorObject.java | 2 +- .../models/error/GraphQLErrorObjectImpl.java | 2 +- .../GraphQLInsufficientScopeErrorImpl.java | 2 +- .../error/GraphQLInvalidSubjectErrorImpl.java | 2 +- .../error/GraphQLInvalidTokenErrorImpl.java | 2 +- .../api/models/graph_ql/GraphQLError.java | 22 ++++----- .../models/graph_ql/GraphQLErrorBuilder.java | 34 +++++++------- .../api/models/graph_ql/GraphQLErrorImpl.java | 10 ++-- .../models/graph_ql/GraphQLErrorLocation.java | 22 ++++----- .../graph_ql/GraphQLErrorLocationBuilder.java | 24 +++++----- .../graph_ql/GraphQLErrorLocationImpl.java | 20 ++++---- .../api/models/graph_ql/GraphQLRequest.java | 14 +++--- .../graph_ql/GraphQLRequestBuilder.java | 16 +++---- .../models/graph_ql/GraphQLRequestImpl.java | 8 ++-- .../api/models/graph_ql/GraphQLResponse.java | 12 ++--- .../graph_ql/GraphQLResponseBuilder.java | 20 ++++---- .../models/graph_ql/GraphQLResponseImpl.java | 6 +-- .../models/graph_ql/GraphQLVariablesMap.java | 6 +-- .../graph_ql/GraphQLVariablesMapBuilder.java | 6 +-- .../graph_ql/GraphQLVariablesMapImpl.java | 4 +- .../graph_ql/GraphQLErrorLocationTest.java | 12 ++--- references.txt | 1 + 25 files changed, 129 insertions(+), 168 deletions(-) diff --git a/changes.md b/changes.md index 6a771d8d42e..208cb3f1ff7 100644 --- a/changes.md +++ b/changes.md @@ -1,49 +1,9 @@ **Api changes**
-Added Type(s) +Changed Property(s) -- added type `ApprovalRuleSetCustomFieldAction` -- added type `ApprovalRuleSetCustomTypeAction` -
- - -
-Added Property(s) - -- added property `custom` to type `ApprovalRule` -- added property `source` to type `EventBridgeDestination` -
- - -
-Added Enum(s) - -- added enum `approval-rule` to type `CustomFieldReferenceValue` -- added enum `approval-rule` to type `ResourceTypeId` -
- - -
-Added Method(s) - -- added method `apiRoot.withProjectKey().productTailoring().head()` -
- -**Import changes** - -
-Added Type(s) - -- added type `InvalidFieldsUpdateError` -- added type `NewMasterVariantAdditionNotAllowedError` -
- -**History changes** - -
-Required Property(s) - -- changed property `id` of type `ModifiedBy` to be optional +- :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number` +- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyGraphqlPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyGraphqlPost.java index b0214b6d3c3..03aa11ab86d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyGraphqlPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyGraphqlPost.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Execute a GraphQL query

+ *

Execute a GraphQL request.

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

Execute a GraphQL query

+ *

Execute a GraphQL request.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java index 7b4515ab5f2..898b7112edf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObject.java @@ -110,7 +110,7 @@ public interface GraphQLErrorObject { /** - *

Error identifier.

+ *

One of the error codes that is listed on the Errors page.

* @return code */ @NotNull diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java index 8e0e2bd7529..3bce3bfb9dc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLErrorObjectImpl.java @@ -43,7 +43,7 @@ public GraphQLErrorObjectImpl() { } /** - *

Error identifier.

+ *

One of the error codes that is listed on the Errors page.

*/ public String getCode() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java index 4eee29912c8..e6675f4d186 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInsufficientScopeErrorImpl.java @@ -43,7 +43,7 @@ public GraphQLInsufficientScopeErrorImpl() { } /** - *

Error identifier.

+ *

One of the error codes that is listed on the Errors page.

*/ public String getCode() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java index ccf7b8d5d1a..2e65fa5103d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidSubjectErrorImpl.java @@ -43,7 +43,7 @@ public GraphQLInvalidSubjectErrorImpl() { } /** - *

Error identifier.

+ *

One of the error codes that is listed on the Errors page.

*/ public String getCode() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java index e72c53a8d03..3b226173f09 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/error/GraphQLInvalidTokenErrorImpl.java @@ -43,7 +43,7 @@ public GraphQLInvalidTokenErrorImpl() { } /** - *

Error identifier.

+ *

One of the error codes that is listed on the Errors page.

*/ public String getCode() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLError.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLError.java index 93f1ab140fb..4450a1646f0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLError.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLError.java @@ -18,7 +18,7 @@ import jakarta.validation.constraints.NotNull; /** - * GraphQLError + *

Contains an error message, the location of the code that caused the error, and other information to help you correct the error.

* *
* Example to create an instance using the builder pattern @@ -37,7 +37,7 @@ public interface GraphQLError { /** - * + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

* @return message */ @NotNull @@ -45,7 +45,7 @@ public interface GraphQLError { public String getMessage(); /** - * + *

Location within your query where the error occurred.

* @return locations */ @NotNull @@ -54,7 +54,7 @@ public interface GraphQLError { public List getLocations(); /** - * + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @return path */ @@ -62,7 +62,7 @@ public interface GraphQLError { public List getPath(); /** - *

Represents a single error.

+ *

Dictionary with additional information where applicable.

* @return extensions */ @NotNull @@ -71,14 +71,14 @@ public interface GraphQLError { public GraphQLErrorObject getExtensions(); /** - * set message + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

* @param message value to be set */ public void setMessage(final String message); /** - * set locations + *

Location within your query where the error occurred.

* @param locations values to be set */ @@ -86,14 +86,14 @@ public interface GraphQLError { public void setLocations(final GraphQLErrorLocation... locations); /** - * set locations + *

Location within your query where the error occurred.

* @param locations values to be set */ public void setLocations(final List locations); /** - * set path + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @param path values to be set */ @@ -101,14 +101,14 @@ public interface GraphQLError { public void setPath(final Object... path); /** - * set path + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @param path values to be set */ public void setPath(final List path); /** - *

Represents a single error.

+ *

Dictionary with additional information where applicable.

* @param extensions value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorBuilder.java index d567c90e51f..a4aca86ca9a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorBuilder.java @@ -36,7 +36,7 @@ public class GraphQLErrorBuilder implements Builder { private com.commercetools.api.models.error.GraphQLErrorObject extensions; /** - * set the value to the message + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

* @param message value to be set * @return Builder */ @@ -47,7 +47,7 @@ public GraphQLErrorBuilder message(final String message) { } /** - * set values to the locations + *

Location within your query where the error occurred.

* @param locations value to be set * @return Builder */ @@ -59,7 +59,7 @@ public GraphQLErrorBuilder locations( } /** - * set value to the locations + *

Location within your query where the error occurred.

* @param locations value to be set * @return Builder */ @@ -71,7 +71,7 @@ public GraphQLErrorBuilder locations( } /** - * add values to the locations + *

Location within your query where the error occurred.

* @param locations value to be set * @return Builder */ @@ -86,7 +86,7 @@ public GraphQLErrorBuilder plusLocations( } /** - * add the value to the locations using the builder function + *

Location within your query where the error occurred.

* @param builder function to build the locations value * @return Builder */ @@ -102,7 +102,7 @@ public GraphQLErrorBuilder plusLocations( } /** - * set the value to the locations using the builder function + *

Location within your query where the error occurred.

* @param builder function to build the locations value * @return Builder */ @@ -116,7 +116,7 @@ public GraphQLErrorBuilder withLocations( } /** - * add the value to the locations using the builder function + *

Location within your query where the error occurred.

* @param builder function to build the locations value * @return Builder */ @@ -127,7 +127,7 @@ public GraphQLErrorBuilder addLocations( } /** - * set the value to the locations using the builder function + *

Location within your query where the error occurred.

* @param builder function to build the locations value * @return Builder */ @@ -138,7 +138,7 @@ public GraphQLErrorBuilder setLocations( } /** - * set values to the path + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @param path value to be set * @return Builder */ @@ -149,7 +149,7 @@ public GraphQLErrorBuilder path(@Nullable final java.lang.Object... path) { } /** - * set value to the path + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @param path value to be set * @return Builder */ @@ -160,7 +160,7 @@ public GraphQLErrorBuilder path(@Nullable final java.util.List } /** - * add values to the path + *

Query fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @param path value to be set * @return Builder */ @@ -174,7 +174,7 @@ public GraphQLErrorBuilder plusPath(@Nullable final java.lang.Object... path) { } /** - *

Represents a single error.

+ *

Dictionary with additional information where applicable.

* @param extensions value to be set * @return Builder */ @@ -185,7 +185,7 @@ public GraphQLErrorBuilder extensions(final com.commercetools.api.models.error.G } /** - *

Represents a single error.

+ *

Dictionary with additional information where applicable.

* @param builder function to build the extensions value * @return Builder */ @@ -197,7 +197,7 @@ public GraphQLErrorBuilder extensions( } /** - * value of message} + *

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

* @return message */ @@ -206,7 +206,7 @@ public String getMessage() { } /** - * value of locations} + *

Location within your query where the error occurred.

* @return locations */ @@ -215,7 +215,7 @@ public java.util.ListQuery fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

* @return path */ @@ -225,7 +225,7 @@ public java.util.List getPath() { } /** - *

Represents a single error.

+ *

Dictionary with additional information where applicable.

* @return extensions */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorImpl.java index d5f64f3820d..d824b3c7e9f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * GraphQLError + *

Contains an error message, the location of the code that caused the error, and other information to help you correct the error.

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

Detailed description of the error explaining the root cause of the problem and suggesting how to correct the error.

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

Location within your query where the error occurred.

*/ public java.util.List getLocations() { @@ -67,7 +67,7 @@ public java.util.ListQuery fields listed in order from the root of the query response up to the field in which the error occurred. path is displayed in the response only if an error is associated with a particular field in the query result.

*/ public java.util.List getPath() { @@ -75,7 +75,7 @@ public java.util.List getPath() { } /** - *

Represents a single error.

+ *

Dictionary with additional information where applicable.

*/ public com.commercetools.api.models.error.GraphQLErrorObject getExtensions() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocation.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocation.java index 717d6f2cb80..b1e56f4aada 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocation.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocation.java @@ -15,15 +15,15 @@ import jakarta.validation.constraints.NotNull; /** - * GraphQLErrorLocation + *

Represents the location within your query where the error occurred.

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

  *     GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
- *             .line(1)
- *             .column(1)
+ *             .line(0.3)
+ *             .column(0.3)
  *             .build()
  * 
*
@@ -33,34 +33,34 @@ public interface GraphQLErrorLocation { /** - * + *

Line number of the query where the error occurred.

* @return line */ @NotNull @JsonProperty("line") - public Integer getLine(); + public Long getLine(); /** - * + *

Position in line where the error occurred.

* @return column */ @NotNull @JsonProperty("column") - public Integer getColumn(); + public Long getColumn(); /** - * set line + *

Line number of the query where the error occurred.

* @param line value to be set */ - public void setLine(final Integer line); + public void setLine(final Long line); /** - * set column + *

Position in line where the error occurred.

* @param column value to be set */ - public void setColumn(final Integer column); + public void setColumn(final Long column); /** * factory method diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationBuilder.java index 736958ea520..15ee0ec4ecd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationBuilder.java @@ -13,8 +13,8 @@ *
*

  *     GraphQLErrorLocation graphQLErrorLocation = GraphQLErrorLocation.builder()
- *             .line(1)
- *             .column(1)
+ *             .line(0.3)
+ *             .column(0.3)
  *             .build()
  * 
*
@@ -22,47 +22,47 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class GraphQLErrorLocationBuilder implements Builder { - private Integer line; + private Long line; - private Integer column; + private Long column; /** - * set the value to the line + *

Line number of the query where the error occurred.

* @param line value to be set * @return Builder */ - public GraphQLErrorLocationBuilder line(final Integer line) { + public GraphQLErrorLocationBuilder line(final Long line) { this.line = line; return this; } /** - * set the value to the column + *

Position in line where the error occurred.

* @param column value to be set * @return Builder */ - public GraphQLErrorLocationBuilder column(final Integer column) { + public GraphQLErrorLocationBuilder column(final Long column) { this.column = column; return this; } /** - * value of line} + *

Line number of the query where the error occurred.

* @return line */ - public Integer getLine() { + public Long getLine() { return this.line; } /** - * value of column} + *

Position in line where the error occurred.

* @return column */ - public Integer getColumn() { + public Long getColumn() { return this.column; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationImpl.java index fb29c57691b..b74f9787101 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationImpl.java @@ -17,20 +17,20 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * GraphQLErrorLocation + *

Represents the location within your query where the error occurred.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class GraphQLErrorLocationImpl implements GraphQLErrorLocation, ModelBase { - private Integer line; + private Long line; - private Integer column; + private Long column; /** * create instance with all properties */ @JsonCreator - GraphQLErrorLocationImpl(@JsonProperty("line") final Integer line, @JsonProperty("column") final Integer column) { + GraphQLErrorLocationImpl(@JsonProperty("line") final Long line, @JsonProperty("column") final Long column) { this.line = line; this.column = column; } @@ -42,26 +42,26 @@ public GraphQLErrorLocationImpl() { } /** - * + *

Line number of the query where the error occurred.

*/ - public Integer getLine() { + public Long getLine() { return this.line; } /** - * + *

Position in line where the error occurred.

*/ - public Integer getColumn() { + public Long getColumn() { return this.column; } - public void setLine(final Integer line) { + public void setLine(final Long line) { this.line = line; } - public void setColumn(final Integer column) { + public void setColumn(final Long column) { this.column = column; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequest.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequest.java index 979b601d159..c350ea1d131 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequest.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequest.java @@ -16,7 +16,7 @@ import jakarta.validation.constraints.NotNull; /** - * GraphQLRequest + *

The query, operation name, and variables that are sent to the GraphQL API.

* *
* Example to create an instance using the builder pattern @@ -33,7 +33,7 @@ public interface GraphQLRequest { /** - * + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

* @return query */ @NotNull @@ -41,7 +41,7 @@ public interface GraphQLRequest { public String getQuery(); /** - * + *

Name of the operation, if you defined several operations in query.

* @return operationName */ @@ -49,7 +49,7 @@ public interface GraphQLRequest { public String getOperationName(); /** - * + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @return variables */ @Valid @@ -57,21 +57,21 @@ public interface GraphQLRequest { public GraphQLVariablesMap getVariables(); /** - * set query + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

* @param query value to be set */ public void setQuery(final String query); /** - * set operationName + *

Name of the operation, if you defined several operations in query.

* @param operationName value to be set */ public void setOperationName(final String operationName); /** - * set variables + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param variables value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestBuilder.java index b8ca62770d5..b4a902f5634 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestBuilder.java @@ -33,7 +33,7 @@ public class GraphQLRequestBuilder implements Builder { private com.commercetools.api.models.graph_ql.GraphQLVariablesMap variables; /** - * set the value to the query + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

* @param query value to be set * @return Builder */ @@ -44,7 +44,7 @@ public GraphQLRequestBuilder query(final String query) { } /** - * set the value to the operationName + *

Name of the operation, if you defined several operations in query.

* @param operationName value to be set * @return Builder */ @@ -55,7 +55,7 @@ public GraphQLRequestBuilder operationName(@Nullable final String operationName) } /** - * set the value to the variables using the builder function + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param builder function to build the variables value * @return Builder */ @@ -67,7 +67,7 @@ public GraphQLRequestBuilder variables( } /** - * set the value to the variables using the builder function + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param builder function to build the variables value * @return Builder */ @@ -79,7 +79,7 @@ public GraphQLRequestBuilder withVariables( } /** - * set the value to the variables + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param variables value to be set * @return Builder */ @@ -91,7 +91,7 @@ public GraphQLRequestBuilder variables( } /** - * value of query} + *

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

* @return query */ @@ -100,7 +100,7 @@ public String getQuery() { } /** - * value of operationName} + *

Name of the operation, if you defined several operations in query.

* @return operationName */ @@ -110,7 +110,7 @@ public String getOperationName() { } /** - * value of variables} + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @return variables */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestImpl.java index 8bd9de6d0a1..4e2ba359c95 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLRequestImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * GraphQLRequest + *

The query, operation name, and variables that are sent to the GraphQL API.

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

String representation of the Source Text of the Document that is specified in the Language section of the GraphQL specification.

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

Name of the operation, if you defined several operations in query.

*/ public String getOperationName() { @@ -63,7 +63,7 @@ public String getOperationName() { } /** - * + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

*/ public com.commercetools.api.models.graph_ql.GraphQLVariablesMap getVariables() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponse.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponse.java index e226815e0ed..f7ce5a193e1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponse.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponse.java @@ -16,7 +16,7 @@ import jakarta.validation.Valid; /** - * GraphQLResponse + *

error is present in the response only if the GraphQL query was unsuccessful.

* *
* Example to create an instance using the builder pattern @@ -32,7 +32,7 @@ public interface GraphQLResponse { /** - * + *

JSON object that contains the results of a GraphQL query.

* @return data */ @@ -40,7 +40,7 @@ public interface GraphQLResponse { public Object getData(); /** - * + *

Errors that the GraphQL query returns.

* @return errors */ @Valid @@ -48,14 +48,14 @@ public interface GraphQLResponse { public List getErrors(); /** - * set data + *

JSON object that contains the results of a GraphQL query.

* @param data value to be set */ public void setData(final Object data); /** - * set errors + *

Errors that the GraphQL query returns.

* @param errors values to be set */ @@ -63,7 +63,7 @@ public interface GraphQLResponse { public void setErrors(final GraphQLError... errors); /** - * set errors + *

Errors that the GraphQL query returns.

* @param errors values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseBuilder.java index 39c8f552d2b..f975bf7663c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseBuilder.java @@ -30,7 +30,7 @@ public class GraphQLResponseBuilder implements Builder { private java.util.List errors; /** - * set the value to the data + *

JSON object that contains the results of a GraphQL query.

* @param data value to be set * @return Builder */ @@ -41,7 +41,7 @@ public GraphQLResponseBuilder data(@Nullable final java.lang.Object data) { } /** - * set values to the errors + *

Errors that the GraphQL query returns.

* @param errors value to be set * @return Builder */ @@ -52,7 +52,7 @@ public GraphQLResponseBuilder errors(@Nullable final com.commercetools.api.model } /** - * set value to the errors + *

Errors that the GraphQL query returns.

* @param errors value to be set * @return Builder */ @@ -64,7 +64,7 @@ public GraphQLResponseBuilder errors( } /** - * add values to the errors + *

Errors that the GraphQL query returns.

* @param errors value to be set * @return Builder */ @@ -79,7 +79,7 @@ public GraphQLResponseBuilder plusErrors( } /** - * add the value to the errors using the builder function + *

Errors that the GraphQL query returns.

* @param builder function to build the errors value * @return Builder */ @@ -94,7 +94,7 @@ public GraphQLResponseBuilder plusErrors( } /** - * set the value to the errors using the builder function + *

Errors that the GraphQL query returns.

* @param builder function to build the errors value * @return Builder */ @@ -107,7 +107,7 @@ public GraphQLResponseBuilder withErrors( } /** - * add the value to the errors using the builder function + *

Errors that the GraphQL query returns.

* @param builder function to build the errors value * @return Builder */ @@ -118,7 +118,7 @@ public GraphQLResponseBuilder addErrors( } /** - * set the value to the errors using the builder function + *

Errors that the GraphQL query returns.

* @param builder function to build the errors value * @return Builder */ @@ -129,7 +129,7 @@ public GraphQLResponseBuilder setErrors( } /** - * value of data} + *

JSON object that contains the results of a GraphQL query.

* @return data */ @@ -139,7 +139,7 @@ public java.lang.Object getData() { } /** - * value of errors} + *

Errors that the GraphQL query returns.

* @return errors */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseImpl.java index fd844cd45a9..9f7b8ca149b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLResponseImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * GraphQLResponse + *

error is present in the response only if the GraphQL query was unsuccessful.

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

JSON object that contains the results of a GraphQL query.

*/ public java.lang.Object getData() { @@ -51,7 +51,7 @@ public java.lang.Object getData() { } /** - * + *

Errors that the GraphQL query returns.

*/ public java.util.List getErrors() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMap.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMap.java index 651ab178daa..0653065dbc8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMap.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMap.java @@ -15,7 +15,7 @@ import jakarta.validation.constraints.NotNull; /** - * GraphQLVariablesMap + *

The variables that the GraphQL query uses.

* *
* Example to create an instance using the builder pattern @@ -31,7 +31,7 @@ public interface GraphQLVariablesMap { /** - * + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @return map of the pattern property values */ @NotNull @@ -39,7 +39,7 @@ public interface GraphQLVariablesMap { public Map values(); /** - * set pattern property + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param key property name * @param value property value */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapBuilder.java index 0093504b17a..143ba08ef38 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapBuilder.java @@ -23,7 +23,7 @@ public class GraphQLVariablesMapBuilder implements Builder private Map values = new HashMap<>(); /** - * assign pattern properties to the builder + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param values properties to be set * @return Builder */ @@ -34,7 +34,7 @@ public GraphQLVariablesMapBuilder values(final Map val } /** - * assign a pattern property to the builder + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @param key property name * @param value property value * @return Builder @@ -49,7 +49,7 @@ public GraphQLVariablesMapBuilder addValue(final String key, final java.lang.Obj } /** - * values of pattern properties + *

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

* @return pattern properties */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java index 8ef7c8827ed..4bfbecd42a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/graph_ql/GraphQLVariablesMapImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - * GraphQLVariablesMap + *

The variables that the GraphQL query uses.

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

JSON object that contains key-value pairs in which the keys are variable names and the values are variable values.

*/ public Map values() { diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationTest.java index b69b03e9121..5eadb593a88 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/graph_ql/GraphQLErrorLocationTest.java @@ -24,21 +24,21 @@ public void buildUnchecked(GraphQLErrorLocationBuilder builder) { @DataProvider public static Object[][] objectBuilder() { - return new Object[][] { new Object[] { GraphQLErrorLocation.builder().line(6) }, - new Object[] { GraphQLErrorLocation.builder().column(2) } }; + return new Object[][] { new Object[] { GraphQLErrorLocation.builder().line(6L) }, + new Object[] { GraphQLErrorLocation.builder().column(2L) } }; } @Test public void line() { GraphQLErrorLocation value = GraphQLErrorLocation.of(); - value.setLine(6); - Assertions.assertThat(value.getLine()).isEqualTo(6); + value.setLine(6L); + Assertions.assertThat(value.getLine()).isEqualTo(6L); } @Test public void column() { GraphQLErrorLocation value = GraphQLErrorLocation.of(); - value.setColumn(2); - Assertions.assertThat(value.getColumn()).isEqualTo(2); + value.setColumn(2L); + Assertions.assertThat(value.getColumn()).isEqualTo(2L); } } diff --git a/references.txt b/references.txt index f06e0049d14..bfcdfbfe192 100644 --- a/references.txt +++ b/references.txt @@ -327,3 +327,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6 07b822efee634159a97f9ba24f86114b984d8d4c 8e09aa861a0ba58755289bc185dcb268ac4f1c13 0be69283d6aba9d3a2f895140378673f2f80f7b0 +f254d17f05343dcc4299fc53ff9b335b5ef63d69 From 2c3090ed37f84859792ad901f0c84e627910ec8c Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 11:27:43 +0000 Subject: [PATCH 2/5] build(codegen): updating SDK --- changes.md | 8 ++ ...ctKeyProductSelectionsByIDProductsGet.java | 83 +++++++++++++++++++ ...yProductSelectionsKeyByKeyProductsGet.java | 83 +++++++++++++++++++ ...tKeyProductSelectionsByIDProductsTest.java | 15 ++++ ...ProductSelectionsKeyByKeyProductsTest.java | 15 ++++ references.txt | 1 + 6 files changed, 205 insertions(+) diff --git a/changes.md b/changes.md index 208cb3f1ff7..7b038d2ae2d 100644 --- a/changes.md +++ b/changes.md @@ -7,3 +7,11 @@ - :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number` + +
+Added QueryParameter(s) + +- added query parameter `where` to method `get /{projectKey}/product-selections/key={key}/products` +- added query parameter `where` to method `get /{projectKey}/product-selections/{ID}/products` +
+ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDProductsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDProductsGet.java index 0fea98626ae..3b0c2328a8f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDProductsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDProductsGet.java @@ -99,6 +99,10 @@ public String getID() { return this.ID; } + public List getWhere() { + return this.getQueryParam("where"); + } + public List getExpand() { return this.getQueryParam("expand"); } @@ -127,6 +131,85 @@ public void setID(final String ID) { this.ID = ID; } + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet 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 + * @param where values to be added + * @param value type + * @return ByProjectKeyProductSelectionsByIDProductsGet + */ + public ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + /** * set expand with the specified value * @param expand value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyProductsGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyProductsGet.java index 8eaab517d18..055ba00d400 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyProductsGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyProductsGet.java @@ -99,6 +99,10 @@ public String getKey() { return this.key; } + public List getWhere() { + return this.getQueryParam("where"); + } + public List getExpand() { return this.getQueryParam("expand"); } @@ -127,6 +131,85 @@ public void setKey(final String key) { this.key = key; } + /** + * set where with the specified value + * @param where value to be set + * @param value type + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final TValue where) { + return copy().withQueryParam("where", where); + } + + /** + * add additional where query parameter + * @param where value to be added + * @param value type + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final TValue where) { + return copy().addQueryParam("where", where); + } + + /** + * set where with the specified value + * @param supplier supplier for the value to be set + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final Supplier supplier) { + return copy().withQueryParam("where", supplier.get()); + } + + /** + * add additional where query parameter + * @param supplier supplier for the value to be added + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Supplier supplier) { + return copy().addQueryParam("where", supplier.get()); + } + + /** + * set where with the specified value + * @param op builder for the value to be set + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final Function op) { + return copy().withQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * add additional where query parameter + * @param op builder for the value to be added + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Function op) { + return copy().addQueryParam("where", op.apply(new StringBuilder())); + } + + /** + * set where with the specified values + * @param where values to be set + * @param value type + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet 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 + * @param where values to be added + * @param value type + * @return ByProjectKeyProductSelectionsKeyByKeyProductsGet + */ + public ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Collection where) { + return copy().addQueryParams( + where.stream().map(s -> new ParamEntry<>("where", s.toString())).collect(Collectors.toList())); + } + /** * set expand with the specified value * @param expand value to be set diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDProductsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDProductsTest.java index 2ae8345a1cf..1d2aa7c27a3 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDProductsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsByIDProductsTest.java @@ -64,6 +64,15 @@ public void executeClientException(HttpRequestCommand httpRequest) throws Exc @DataProvider public static Object[][] requestWithMethodParameters() { return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .productSelections() + .withId("test_ID") + .products() + .get() + .withWhere("where") + .createHttpRequest(), + "get", "test_projectKey/product-selections/test_ID/products?where=where", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() @@ -120,6 +129,12 @@ public static Object[][] requestWithMethodParameters() { @DataProvider public static Object[][] executeMethodParameters() { return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productSelections() + .withId("test_ID") + .products() + .get() + .withWhere("where"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() .withId("test_ID") diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyProductsTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyProductsTest.java index b7e1e6ee1be..98fda4fec2f 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyProductsTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/client/resource/ByProjectKeyProductSelectionsKeyByKeyProductsTest.java @@ -64,6 +64,15 @@ public void executeClientException(HttpRequestCommand httpRequest) throws Exc @DataProvider public static Object[][] requestWithMethodParameters() { return new Object[][] { + new Object[] { + apiRoot.withProjectKey("test_projectKey") + .productSelections() + .withKey("test_key") + .products() + .get() + .withWhere("where") + .createHttpRequest(), + "get", "test_projectKey/product-selections/key=test_key/products?where=where", }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() @@ -122,6 +131,12 @@ public static Object[][] requestWithMethodParameters() { @DataProvider public static Object[][] executeMethodParameters() { return new Object[][] { + new Object[] { apiRoot.withProjectKey("test_projectKey") + .productSelections() + .withKey("test_key") + .products() + .get() + .withWhere("where"), }, new Object[] { apiRoot.withProjectKey("test_projectKey") .productSelections() .withKey("test_key") diff --git a/references.txt b/references.txt index bfcdfbfe192..e62990be6d5 100644 --- a/references.txt +++ b/references.txt @@ -328,3 +328,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6 8e09aa861a0ba58755289bc185dcb268ac4f1c13 0be69283d6aba9d3a2f895140378673f2f80f7b0 f254d17f05343dcc4299fc53ff9b335b5ef63d69 +6892be230f1ad73f1150dd544c9fa7fee0e6b123 From d8445e834ad0516d6fce057e775ccc5b3851ec6e Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Fri, 15 Nov 2024 13:33:06 +0000 Subject: [PATCH 3/5] build(codegen): updating SDK --- .../api/models/product/ProductVariantAvailability.java | 2 +- .../api/models/product/ProductVariantAvailabilityImpl.java | 2 +- references.txt | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java index e57acb8695f..3b908efd960 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailability.java @@ -15,7 +15,7 @@ import jakarta.validation.Valid; /** - *

The InventoryEntry information of the Product Variant. If there is a supply Channel for the InventoryEntry, then channels is returned. If not, then isOnStock, restockableInDays, and quantityOnStock are returned.

+ *

The InventoryEntry information of the Product Variant. If there is a supply Channel for the InventoryEntry, then channels is returned. If not, then isOnStock, restockableInDays, and availableQuantity are returned.

* *
* 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/product/ProductVariantAvailabilityImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java index 190a249069f..8f81d0bc05f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product/ProductVariantAvailabilityImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

The InventoryEntry information of the Product Variant. If there is a supply Channel for the InventoryEntry, then channels is returned. If not, then isOnStock, restockableInDays, and quantityOnStock are returned.

+ *

The InventoryEntry information of the Product Variant. If there is a supply Channel for the InventoryEntry, then channels is returned. If not, then isOnStock, restockableInDays, and availableQuantity are returned.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ProductVariantAvailabilityImpl implements ProductVariantAvailability, ModelBase { diff --git a/references.txt b/references.txt index e62990be6d5..8a0fc7d9383 100644 --- a/references.txt +++ b/references.txt @@ -329,3 +329,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6 0be69283d6aba9d3a2f895140378673f2f80f7b0 f254d17f05343dcc4299fc53ff9b335b5ef63d69 6892be230f1ad73f1150dd544c9fa7fee0e6b123 +a639dbb1cfe5b434c350e7b47ca717c69b3aa369 From a48469520c81f0cf52faf3341e65faeb212c4dd4 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 09:25:07 +0000 Subject: [PATCH 4/5] build(codegen): updating SDK --- .../ByProjectKeyByResourceTypeByIDGet.java | 5 +- .../client/ByProjectKeyByResourceTypeGet.java | 5 +- .../history/client/ByProjectKeyGet.java | 5 +- .../ChangeHistoryResourceType.java | 79 +++++++++++++------ .../history/models/change_history/Source.java | 10 ++- .../ByProjectKeyByResourceTypeByIDTest.java | 4 +- .../ByProjectKeyByResourceTypeTest.java | 4 +- .../client/resource/ByProjectKeyTest.java | 11 ++- references.txt | 1 + 9 files changed, 81 insertions(+), 43 deletions(-) diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java index 604ac4cef63..0383b8607aa 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeByIDGet.java @@ -12,6 +12,7 @@ import java.util.stream.Collectors; import com.commercetools.history.models.change_history.PlatformInitiatedChange; +import com.commercetools.history.models.change_history.Source; import com.fasterxml.jackson.core.type.TypeReference; import io.vrap.rmf.base.client.*; @@ -993,7 +994,7 @@ public ByProjectKeyByResourceTypeByIDGet addSource(final TValue source) * @param supplier supplier for the value to be set * @return ByProjectKeyByResourceTypeByIDGet */ - public ByProjectKeyByResourceTypeByIDGet withSource(final Supplier supplier) { + public ByProjectKeyByResourceTypeByIDGet withSource(final Supplier supplier) { return copy().withQueryParam("source", supplier.get()); } @@ -1002,7 +1003,7 @@ public ByProjectKeyByResourceTypeByIDGet withSource(final Supplier suppl * @param supplier supplier for the value to be added * @return ByProjectKeyByResourceTypeByIDGet */ - public ByProjectKeyByResourceTypeByIDGet addSource(final Supplier supplier) { + public ByProjectKeyByResourceTypeByIDGet addSource(final Supplier supplier) { return copy().addQueryParam("source", supplier.get()); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java index 0ef6970889f..acdc838043f 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyByResourceTypeGet.java @@ -12,6 +12,7 @@ import java.util.stream.Collectors; import com.commercetools.history.models.change_history.PlatformInitiatedChange; +import com.commercetools.history.models.change_history.Source; import com.fasterxml.jackson.core.type.TypeReference; import io.vrap.rmf.base.client.*; @@ -1064,7 +1065,7 @@ public ByProjectKeyByResourceTypeGet addSource(final TValue source) { * @param supplier supplier for the value to be set * @return ByProjectKeyByResourceTypeGet */ - public ByProjectKeyByResourceTypeGet withSource(final Supplier supplier) { + public ByProjectKeyByResourceTypeGet withSource(final Supplier supplier) { return copy().withQueryParam("source", supplier.get()); } @@ -1073,7 +1074,7 @@ public ByProjectKeyByResourceTypeGet withSource(final Supplier supplier) * @param supplier supplier for the value to be added * @return ByProjectKeyByResourceTypeGet */ - public ByProjectKeyByResourceTypeGet addSource(final Supplier supplier) { + public ByProjectKeyByResourceTypeGet addSource(final Supplier supplier) { return copy().addQueryParam("source", supplier.get()); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java index 4a8d9c326be..2b4af96caa0 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/client/ByProjectKeyGet.java @@ -13,6 +13,7 @@ import com.commercetools.history.models.change_history.ChangeHistoryResourceType; import com.commercetools.history.models.change_history.PlatformInitiatedChange; +import com.commercetools.history.models.change_history.Source; import com.fasterxml.jackson.core.type.TypeReference; import io.vrap.rmf.base.client.*; @@ -1221,7 +1222,7 @@ public ByProjectKeyGet addSource(final TValue source) { * @param supplier supplier for the value to be set * @return ByProjectKeyGet */ - public ByProjectKeyGet withSource(final Supplier supplier) { + public ByProjectKeyGet withSource(final Supplier supplier) { return copy().withQueryParam("source", supplier.get()); } @@ -1230,7 +1231,7 @@ public ByProjectKeyGet withSource(final Supplier supplier) { * @param supplier supplier for the value to be added * @return ByProjectKeyGet */ - public ByProjectKeyGet addSource(final Supplier supplier) { + public ByProjectKeyGet addSource(final Supplier supplier) { return copy().addQueryParam("source", supplier.get()); } diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java index ab589a27c31..2213d16e928 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/ChangeHistoryResourceType.java @@ -11,61 +11,88 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

This data type represents the supported resource types. The value must be one of the following:

+ *

Value of resource types supported in Change History.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface ChangeHistoryResourceType extends JsonEnum { + /** +

for AssociateRole

*/ ChangeHistoryResourceType ASSOCIATE_ROLE = ChangeHistoryResourceTypeEnum.ASSOCIATE_ROLE; - + /** +

for BusinessUnit

*/ ChangeHistoryResourceType BUSINESS_UNIT = ChangeHistoryResourceTypeEnum.BUSINESS_UNIT; - + /** +

for CartDiscount

*/ ChangeHistoryResourceType CART_DISCOUNT = ChangeHistoryResourceTypeEnum.CART_DISCOUNT; - + /** +

for Category

*/ ChangeHistoryResourceType CATEGORY = ChangeHistoryResourceTypeEnum.CATEGORY; - + /** +

for Channel

*/ ChangeHistoryResourceType CHANNEL = ChangeHistoryResourceTypeEnum.CHANNEL; - + /** +

for Customer

*/ ChangeHistoryResourceType CUSTOMER = ChangeHistoryResourceTypeEnum.CUSTOMER; - + /** +

for CustomerGroup

*/ ChangeHistoryResourceType CUSTOMER_GROUP = ChangeHistoryResourceTypeEnum.CUSTOMER_GROUP; - + /** +

for DiscountCode

*/ ChangeHistoryResourceType DISCOUNT_CODE = ChangeHistoryResourceTypeEnum.DISCOUNT_CODE; - + /** +

for InventoryEntry

*/ ChangeHistoryResourceType INVENTORY_ENTRY = ChangeHistoryResourceTypeEnum.INVENTORY_ENTRY; - + /** +

for CustomObject

*/ ChangeHistoryResourceType KEY_VALUE_DOCUMENT = ChangeHistoryResourceTypeEnum.KEY_VALUE_DOCUMENT; - + /** +

for Order

*/ ChangeHistoryResourceType ORDER = ChangeHistoryResourceTypeEnum.ORDER; - + /** +

for Payment

*/ ChangeHistoryResourceType PAYMENT = ChangeHistoryResourceTypeEnum.PAYMENT; - + /** +

for Product

*/ ChangeHistoryResourceType PRODUCT = ChangeHistoryResourceTypeEnum.PRODUCT; - + /** +

for ProductDiscount

*/ ChangeHistoryResourceType PRODUCT_DISCOUNT = ChangeHistoryResourceTypeEnum.PRODUCT_DISCOUNT; - + /** +

for ProductSelection

*/ ChangeHistoryResourceType PRODUCT_SELECTION = ChangeHistoryResourceTypeEnum.PRODUCT_SELECTION; - + /** +

for ProductType

*/ ChangeHistoryResourceType PRODUCT_TYPE = ChangeHistoryResourceTypeEnum.PRODUCT_TYPE; - + /** +

for QuoteRequest

*/ ChangeHistoryResourceType QUOTE_REQUEST = ChangeHistoryResourceTypeEnum.QUOTE_REQUEST; - + /** +

for Quote

*/ ChangeHistoryResourceType QUOTE = ChangeHistoryResourceTypeEnum.QUOTE; - + /** +

for Review

*/ ChangeHistoryResourceType REVIEW = ChangeHistoryResourceTypeEnum.REVIEW; - + /** +

for ShoppingList

*/ ChangeHistoryResourceType SHOPPING_LIST = ChangeHistoryResourceTypeEnum.SHOPPING_LIST; - + /** +

for StagedQuote

*/ ChangeHistoryResourceType STAGED_QUOTE = ChangeHistoryResourceTypeEnum.STAGED_QUOTE; - + /** +

for State

*/ ChangeHistoryResourceType STATE = ChangeHistoryResourceTypeEnum.STATE; - + /** +

for Store

*/ ChangeHistoryResourceType STORE = ChangeHistoryResourceTypeEnum.STORE; - + /** +

for TaxCategory

*/ ChangeHistoryResourceType TAX_CATEGORY = ChangeHistoryResourceTypeEnum.TAX_CATEGORY; - + /** +

for Type

*/ ChangeHistoryResourceType TYPE = ChangeHistoryResourceTypeEnum.TYPE; - + /** +

for Zone

*/ ChangeHistoryResourceType ZONE = ChangeHistoryResourceTypeEnum.ZONE; /** diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java index 6a6e32373fb..bf8b19c2c9c 100644 --- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java +++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_history/Source.java @@ -11,15 +11,19 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *

Values for the Source enumeration.

+ *

Source of change for the resource.

*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public interface Source extends JsonEnum { + /** +

The change was made through the Merchant Center.

*/ Source MERCHANT_CENTER = SourceEnum.MERCHANT_CENTER; - + /** +

The change was made through ImpEx.

*/ Source IMP_EX = SourceEnum.IMP_EX; - + /** +

The change was made through an API Client.

*/ Source API_CLIENT = SourceEnum.API_CLIENT; /** diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java index 20ba183e88c..1c9764ad0fd 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeByIDTest.java @@ -143,7 +143,7 @@ public static Object[][] requestWithMethodParameters() { .withResourceTypeValue("test_resourceType") .withIDValue("test_ID") .get() - .withSource("source") + .withSource(com.commercetools.history.models.change_history.Source.findEnum("source")) .createHttpRequest(), "get", "test_projectKey/test_resourceType/test_ID?source=source", }, new Object[] { @@ -243,7 +243,7 @@ public static Object[][] executeMethodParameters() { .withResourceTypeValue("test_resourceType") .withIDValue("test_ID") .get() - .withSource("source"), }, + .withSource(com.commercetools.history.models.change_history.Source.findEnum("source")), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .withIDValue("test_ID") diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java index 253a4416ae4..5d5fdc78187 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyByResourceTypeTest.java @@ -130,7 +130,7 @@ public static Object[][] requestWithMethodParameters() { new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .get() - .withSource("source") + .withSource(com.commercetools.history.models.change_history.Source.findEnum("source")) .createHttpRequest(), "get", "test_projectKey/test_resourceType?source=source", }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") @@ -213,7 +213,7 @@ public static Object[][] executeMethodParameters() { new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .get() - .withSource("source"), }, + .withSource(com.commercetools.history.models.change_history.Source.findEnum("source")), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") .withResourceTypeValue("test_resourceType") .get() diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java index 40893775e25..966938568ce 100644 --- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java +++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/client/resource/ByProjectKeyTest.java @@ -110,9 +110,10 @@ public static Object[][] requestWithMethodParameters() { .get() .withResourceKey("resourceKey") .createHttpRequest(), "get", "test_projectKey?resourceKey=resourceKey", }, - new Object[] { - apiRoot.withProjectKeyValue("test_projectKey").get().withSource("source").createHttpRequest(), - "get", "test_projectKey?source=source", }, + new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .get() + .withSource(com.commercetools.history.models.change_history.Source.findEnum("source")) + .createHttpRequest(), "get", "test_projectKey?source=source", }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withChanges("changes").createHttpRequest(), "get", "test_projectKey?changes=changes", }, @@ -153,7 +154,9 @@ public static Object[][] executeMethodParameters() { new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withType("type"), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withResourceId("resourceId"), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withResourceKey("resourceKey"), }, - new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withSource("source"), }, + new Object[] { apiRoot.withProjectKeyValue("test_projectKey") + .get() + .withSource(com.commercetools.history.models.change_history.Source.findEnum("source")), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withChanges("changes"), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey").get().withStores("stores"), }, new Object[] { apiRoot.withProjectKeyValue("test_projectKey") diff --git a/references.txt b/references.txt index 8a0fc7d9383..65a7dc0276e 100644 --- a/references.txt +++ b/references.txt @@ -330,3 +330,4 @@ ccf4522140c12b0093aefe0e2a27d62bcc4834a6 f254d17f05343dcc4299fc53ff9b335b5ef63d69 6892be230f1ad73f1150dd544c9fa7fee0e6b123 a639dbb1cfe5b434c350e7b47ca717c69b3aa369 +6a8624fb41168a6a78ac836b7208c2790a686608 From cc9ba68bc8d84eadd1f068365c074131e1b443b5 Mon Sep 17 00:00:00 2001 From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com> Date: Mon, 18 Nov 2024 13:59:58 +0000 Subject: [PATCH 5/5] build(codegen): updating SDK --- .../com/commercetools/api/models/extension/Extension.java | 4 ++-- .../commercetools/api/models/extension/ExtensionBuilder.java | 4 ++-- .../commercetools/api/models/extension/ExtensionDraft.java | 4 ++-- .../api/models/extension/ExtensionDraftBuilder.java | 4 ++-- .../api/models/extension/ExtensionDraftImpl.java | 2 +- .../com/commercetools/api/models/extension/ExtensionImpl.java | 2 +- .../api/models/extension/ExtensionSetTimeoutInMsAction.java | 4 ++-- .../extension/ExtensionSetTimeoutInMsActionBuilder.java | 4 ++-- .../models/extension/ExtensionSetTimeoutInMsActionImpl.java | 2 +- references.txt | 1 + 10 files changed, 16 insertions(+), 15 deletions(-) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/Extension.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/Extension.java index bb113b05923..ed74a57b4c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/Extension.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/Extension.java @@ -118,7 +118,7 @@ public interface Extension extends BaseResource, com.commercetools.api.models.Do public List getTriggers(); /** - *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

* @return timeoutInMs */ @@ -197,7 +197,7 @@ public interface Extension extends BaseResource, com.commercetools.api.models.Do public void setTriggers(final List triggers); /** - *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

* @param timeoutInMs value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionBuilder.java index 051dbb0f68f..b1f5b02ace3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionBuilder.java @@ -291,7 +291,7 @@ public ExtensionBuilder setTriggers( } /** - *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

* @param timeoutInMs value to be set * @return Builder */ @@ -386,7 +386,7 @@ public java.util.List g } /** - *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

* @return timeoutInMs */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraft.java index a0c18dca025..79a3456e848 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraft.java @@ -62,7 +62,7 @@ public interface ExtensionDraft public List getTriggers(); /** - *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @return timeoutInMs */ @@ -100,7 +100,7 @@ public interface ExtensionDraft public void setTriggers(final List triggers); /** - *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @param timeoutInMs value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftBuilder.java index ec9033473ea..2865edb1fc2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftBuilder.java @@ -160,7 +160,7 @@ public ExtensionDraftBuilder setTriggers( } /** - *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @param timeoutInMs value to be set * @return Builder @@ -200,7 +200,7 @@ public java.util.List g } /** - *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @return timeoutInMs */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftImpl.java index 412c889076b..15aa27ecf47 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionDraftImpl.java @@ -75,7 +75,7 @@ public java.util.List g } /** - *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

*/ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionImpl.java index 610e517a6b8..d1c3d0d4ee7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionImpl.java @@ -146,7 +146,7 @@ public java.util.List g } /** - *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Maximum time (in milliseconds) that the Extension can respond within. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*/ public Integer getTimeoutInMs() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsAction.java index be5edbadd41..e270cee6c9e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsAction.java @@ -34,7 +34,7 @@ public interface ExtensionSetTimeoutInMsAction extends ExtensionUpdateAction { String SET_TIMEOUT_IN_MS = "setTimeoutInMs"; /** - *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @return timeoutInMs */ @@ -43,7 +43,7 @@ public interface ExtensionSetTimeoutInMsAction extends ExtensionUpdateAction { public Integer getTimeoutInMs(); /** - *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @param timeoutInMs value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionBuilder.java index a8c1f229236..fce59f5c85f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionBuilder.java @@ -26,7 +26,7 @@ public class ExtensionSetTimeoutInMsActionBuilder implements BuilderValue to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @param timeoutInMs value to be set * @return Builder @@ -38,7 +38,7 @@ public ExtensionSetTimeoutInMsActionBuilder timeoutInMs(@Nullable final Integer } /** - *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

* @return timeoutInMs */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionImpl.java index 613479b161e..893afb47367 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/extension/ExtensionSetTimeoutInMsActionImpl.java @@ -51,7 +51,7 @@ public String getAction() { } /** - *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

+ *

Value to set. If not defined, the maximum value is used. If no timeout is provided, the default value is used for all types of Extensions, including payment Extensions. The maximum value is 10000 ms (10 seconds) for payment Extensions and 2000 ms (2 seconds) for all other Extensions.

*

This limit can be increased per Project after we review the performance impact. Please contact the Composable Commerce support team and provide the Region, Project key, and use case.

*/ diff --git a/references.txt b/references.txt index 65a7dc0276e..3f4d07df0d0 100644 --- a/references.txt +++ b/references.txt @@ -331,3 +331,4 @@ f254d17f05343dcc4299fc53ff9b335b5ef63d69 6892be230f1ad73f1150dd544c9fa7fee0e6b123 a639dbb1cfe5b434c350e7b47ca717c69b3aa369 6a8624fb41168a6a78ac836b7208c2790a686608 +971c1b4ce06c29fcb8c2402dc2ca523b2907352c