Skip to content

Commit

Permalink
Merge pull request #756 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
kodiakhq[bot] authored Nov 18, 2024
2 parents 2d66879 + cc9ba68 commit fa7ebe0
Show file tree
Hide file tree
Showing 48 changed files with 429 additions and 223 deletions.
44 changes: 6 additions & 38 deletions changes.md
Original file line number Diff line number Diff line change
@@ -1,49 +1,17 @@
**Api changes**

<details>
<summary>Added Type(s)</summary>
<summary>Changed Property(s)</summary>

- added type `ApprovalRuleSetCustomFieldAction`
- added type `ApprovalRuleSetCustomTypeAction`
- :warning: changed property `line` of type `GraphQLErrorLocation` from type `integer` to `number`
- :warning: changed property `column` of type `GraphQLErrorLocation` from type `integer` to `number`
</details>


<details>
<summary>Added Property(s)</summary>
<summary>Added QueryParameter(s)</summary>

- added property `custom` to type `ApprovalRule`
- added property `source` to type `EventBridgeDestination`
</details>


<details>
<summary>Added Enum(s)</summary>

- added enum `approval-rule` to type `CustomFieldReferenceValue`
- added enum `approval-rule` to type `ResourceTypeId`
</details>


<details>
<summary>Added Method(s)</summary>

- added method `apiRoot.withProjectKey().productTailoring().head()`
</details>

**Import changes**

<details>
<summary>Added Type(s)</summary>

- added type `InvalidFieldsUpdateError`
- added type `NewMasterVariantAdditionNotAllowedError`
</details>

**History changes**

<details>
<summary>Required Property(s)</summary>

- changed property `id` of type `ModifiedBy` to be optional
- 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`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Execute a GraphQL query</p>
* <p>Execute a GraphQL request.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Execute a GraphQL query</p>
* <p>Execute a GraphQL request.</p>
*
* <hr>
* <div class=code-example>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public String getID() {
return this.ID;
}

public List<String> getWhere() {
return this.getQueryParam("where");
}

public List<String> getExpand() {
return this.getQueryParam("expand");
}
Expand Down Expand Up @@ -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 <TValue> value type
* @return ByProjectKeyProductSelectionsByIDProductsGet
*/
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet withWhere(final TValue where) {
return copy().withQueryParam("where", where);
}

/**
* add additional where query parameter
* @param where value to be added
* @param <TValue> value type
* @return ByProjectKeyProductSelectionsByIDProductsGet
*/
public <TValue> 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<String> 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<String> 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<StringBuilder, StringBuilder> 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<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("where", op.apply(new StringBuilder()));
}

/**
* set where with the specified values
* @param where values to be set
* @param <TValue> value type
* @return ByProjectKeyProductSelectionsByIDProductsGet
*/
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet withWhere(final Collection<TValue> 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 <TValue> value type
* @return ByProjectKeyProductSelectionsByIDProductsGet
*/
public <TValue> ByProjectKeyProductSelectionsByIDProductsGet addWhere(final Collection<TValue> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,10 @@ public String getKey() {
return this.key;
}

public List<String> getWhere() {
return this.getQueryParam("where");
}

public List<String> getExpand() {
return this.getQueryParam("expand");
}
Expand Down Expand Up @@ -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 <TValue> value type
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
*/
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final TValue where) {
return copy().withQueryParam("where", where);
}

/**
* add additional where query parameter
* @param where value to be added
* @param <TValue> value type
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
*/
public <TValue> 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<String> 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<String> 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<StringBuilder, StringBuilder> 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<StringBuilder, StringBuilder> op) {
return copy().addQueryParam("where", op.apply(new StringBuilder()));
}

/**
* set where with the specified values
* @param where values to be set
* @param <TValue> value type
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
*/
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet withWhere(final Collection<TValue> 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 <TValue> value type
* @return ByProjectKeyProductSelectionsKeyByKeyProductsGet
*/
public <TValue> ByProjectKeyProductSelectionsKeyByKeyProductsGet addWhere(final Collection<TValue> 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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -110,7 +110,7 @@
public interface GraphQLErrorObject {

/**
* <p>Error identifier.</p>
* <p>One of the error codes that is listed on the Errors page.</p>
* @return code
*/
@NotNull
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public GraphQLErrorObjectImpl() {
}

/**
* <p>Error identifier.</p>
* <p>One of the error codes that is listed on the Errors page.</p>
*/

public String getCode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public GraphQLInsufficientScopeErrorImpl() {
}

/**
* <p>Error identifier.</p>
* <p>One of the error codes that is listed on the Errors page.</p>
*/

public String getCode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public GraphQLInvalidSubjectErrorImpl() {
}

/**
* <p>Error identifier.</p>
* <p>One of the error codes that is listed on the Errors page.</p>
*/

public String getCode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public GraphQLInvalidTokenErrorImpl() {
}

/**
* <p>Error identifier.</p>
* <p>One of the error codes that is listed on the Errors page.</p>
*/

public String getCode() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -118,7 +118,7 @@ public interface Extension extends BaseResource, com.commercetools.api.models.Do
public List<ExtensionTrigger> getTriggers();

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* @return timeoutInMs
*/

Expand Down Expand Up @@ -197,7 +197,7 @@ public interface Extension extends BaseResource, com.commercetools.api.models.Do
public void setTriggers(final List<ExtensionTrigger> triggers);

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* @param timeoutInMs value to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -291,7 +291,7 @@ public ExtensionBuilder setTriggers(
}

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* @param timeoutInMs value to be set
* @return Builder
*/
Expand Down Expand Up @@ -386,7 +386,7 @@ public java.util.List<com.commercetools.api.models.extension.ExtensionTrigger> g
}

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* @return timeoutInMs
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public interface ExtensionDraft
public List<ExtensionTrigger> getTriggers();

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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.</p>
* @return timeoutInMs
*/
Expand Down Expand Up @@ -100,7 +100,7 @@ public interface ExtensionDraft
public void setTriggers(final List<ExtensionTrigger> triggers);

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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.</p>
* @param timeoutInMs value to be set
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -160,7 +160,7 @@ public ExtensionDraftBuilder setTriggers(
}

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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.</p>
* @param timeoutInMs value to be set
* @return Builder
Expand Down Expand Up @@ -200,7 +200,7 @@ public java.util.List<com.commercetools.api.models.extension.ExtensionTrigger> g
}

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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.</p>
* @return timeoutInMs
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public java.util.List<com.commercetools.api.models.extension.ExtensionTrigger> g
}

/**
* <p>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 <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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 <code>payment</code> Extensions. The maximum value is 10000 ms (10 seconds) for <code>payment</code> Extensions and 2000 ms (2 seconds) for all other Extensions.</p>
* <p>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.</p>
*/

Expand Down
Loading

0 comments on commit fa7ebe0

Please sign in to comment.