Skip to content

Commit

Permalink
Merge pull request #733 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 Sep 26, 2024
2 parents 5a06e86 + ca42d85 commit 2e4c00a
Show file tree
Hide file tree
Showing 54 changed files with 3,372 additions and 12 deletions.
16 changes: 16 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,30 @@
<summary>Added Property(s)</summary>

- added property `warnings` to type `ProductTailoring`
- added property `attributes` to type `ProductVariantTailoring`
- added property `attributes` to type `ProductVariantTailoringDraft`
- added property `attributes` to type `ProductTailoringAddVariantAction`
- added property `warnings` to type `Product`
</details>


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

- added type `SearchNotReadyError`
- added type `GraphQLSearchNotReadyError`
- added type `ProductTailoringAttribute`
- added type `ProductTailoringSetAttributeAction`
- added type `ProductTailoringSetAttributeInAllVariantsAction`
- added type `ImageProcessingOngoingWarning`
- added type `WarningObject`
</details>


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

- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId`
- added enum `product-tailoring` to type `ResourceTypeId`
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -352,6 +352,8 @@ input AddProductVariantTailoring {
id: Int
sku: String
images: [ImageInput!] = []
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributes: [ProductAttributeInput!] = []
assets: [AssetDraftInput!] = []
staged: Boolean = true
}
Expand Down Expand Up @@ -8638,6 +8640,11 @@ input ProductTailoringUpdateAction {
setAssetTags: SetProductTailoringAssetTags
setImages: SetProductTailoringImages
setDescription: SetProductTailoringDescription
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setAttribute: SetProductTailoringAttribute

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setAttributeInAllVariants: SetProductTailoringAttributeInAllVariants
setImageLabel: SetProductTailoringImageLabel
setMetaAttributes: SetProductTailoringMetaAttributes
setMetaDescription: SetProductTailoringMetaDescription
Expand Down Expand Up @@ -8908,6 +8915,8 @@ type ProductVariantTailoring {
id: Int!
images: [Image!]!
assets: [Asset!]!
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributesRaw: [RawProductAttribute!]!
}

type ProductVariantTailoringAdded implements MessagePayload {
Expand All @@ -8923,6 +8932,8 @@ input ProductVariantTailoringInput {
id: Int
sku: String
images: [ImageInput!] = []
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
attributes: [ProductAttributeInput!] = []
assets: [AssetDraftInput!] = []
}

Expand Down Expand Up @@ -11859,6 +11870,22 @@ input SetProductTailoringAssetTags {
assetId: String
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input SetProductTailoringAttribute {
variantId: Int
sku: String
name: String!
value: String
staged: Boolean = true
}

"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input SetProductTailoringAttributeInAllVariants {
name: String!
value: String
staged: Boolean = true
}

input SetProductTailoringDescription {
description: [LocalizedStringItemInputType!]
staged: Boolean = true
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,6 +101,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.error.SearchExecutionFailureErrorImpl.class, name = SearchExecutionFailureError.SEARCH_EXECUTION_FAILURE),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.SearchFacetPathNotFoundErrorImpl.class, name = SearchFacetPathNotFoundError.SEARCH_FACET_PATH_NOT_FOUND),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.SearchIndexingInProgressErrorImpl.class, name = SearchIndexingInProgressError.SEARCH_INDEXING_IN_PROGRESS),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.SearchNotReadyErrorImpl.class, name = SearchNotReadyError.SEARCH_NOT_READY),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.SemanticErrorErrorImpl.class, name = SemanticErrorError.SEMANTIC_ERROR),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.ShippingMethodDoesNotMatchCartErrorImpl.class, name = ShippingMethodDoesNotMatchCartError.SHIPPING_METHOD_DOES_NOT_MATCH_CART),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.StoreCartDiscountsLimitReachedErrorImpl.class, name = StoreCartDiscountsLimitReachedError.STORE_CART_DISCOUNTS_LIMIT_REACHED),
Expand Down Expand Up @@ -448,6 +449,10 @@ public static ErrorObject deepCopy(@Nullable final ErrorObject template) {
return com.commercetools.api.models.error.SearchIndexingInProgressError
.deepCopy((com.commercetools.api.models.error.SearchIndexingInProgressError) template);
}
if (template instanceof com.commercetools.api.models.error.SearchNotReadyError) {
return com.commercetools.api.models.error.SearchNotReadyError
.deepCopy((com.commercetools.api.models.error.SearchNotReadyError) template);
}
if (template instanceof com.commercetools.api.models.error.SemanticErrorError) {
return com.commercetools.api.models.error.SemanticErrorError
.deepCopy((com.commercetools.api.models.error.SemanticErrorError) template);
Expand Down Expand Up @@ -1046,6 +1051,14 @@ public static com.commercetools.api.models.error.SearchIndexingInProgressErrorBu
return com.commercetools.api.models.error.SearchIndexingInProgressErrorBuilder.of();
}

/**
* builder for searchNotReady subtype
* @return builder
*/
public static com.commercetools.api.models.error.SearchNotReadyErrorBuilder searchNotReadyBuilder() {
return com.commercetools.api.models.error.SearchNotReadyErrorBuilder.of();
}

/**
* builder for semanticError subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ public com.commercetools.api.models.error.SearchIndexingInProgressErrorBuilder s
return com.commercetools.api.models.error.SearchIndexingInProgressErrorBuilder.of();
}

public com.commercetools.api.models.error.SearchNotReadyErrorBuilder searchNotReadyBuilder() {
return com.commercetools.api.models.error.SearchNotReadyErrorBuilder.of();
}

public com.commercetools.api.models.error.SemanticErrorErrorBuilder semanticErrorBuilder() {
return com.commercetools.api.models.error.SemanticErrorErrorBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,7 @@
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLSearchExecutionFailureErrorImpl.class, name = GraphQLSearchExecutionFailureError.SEARCH_EXECUTION_FAILURE),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLSearchFacetPathNotFoundErrorImpl.class, name = GraphQLSearchFacetPathNotFoundError.SEARCH_FACET_PATH_NOT_FOUND),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLSearchIndexingInProgressErrorImpl.class, name = GraphQLSearchIndexingInProgressError.SEARCH_INDEXING_IN_PROGRESS),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLSearchNotReadyErrorImpl.class, name = GraphQLSearchNotReadyError.SEARCH_NOT_READY),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLSemanticErrorErrorImpl.class, name = GraphQLSemanticErrorError.SEMANTIC_ERROR),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLShippingMethodDoesNotMatchCartErrorImpl.class, name = GraphQLShippingMethodDoesNotMatchCartError.SHIPPING_METHOD_DOES_NOT_MATCH_CART),
@JsonSubTypes.Type(value = com.commercetools.api.models.error.GraphQLStoreCartDiscountsLimitReachedErrorImpl.class, name = GraphQLStoreCartDiscountsLimitReachedError.STORE_CART_DISCOUNTS_LIMIT_REACHED),
Expand Down Expand Up @@ -431,6 +432,10 @@ public static GraphQLErrorObject deepCopy(@Nullable final GraphQLErrorObject tem
return com.commercetools.api.models.error.GraphQLSearchIndexingInProgressError
.deepCopy((com.commercetools.api.models.error.GraphQLSearchIndexingInProgressError) template);
}
if (template instanceof com.commercetools.api.models.error.GraphQLSearchNotReadyError) {
return com.commercetools.api.models.error.GraphQLSearchNotReadyError
.deepCopy((com.commercetools.api.models.error.GraphQLSearchNotReadyError) template);
}
if (template instanceof com.commercetools.api.models.error.GraphQLSemanticErrorError) {
return com.commercetools.api.models.error.GraphQLSemanticErrorError
.deepCopy((com.commercetools.api.models.error.GraphQLSemanticErrorError) template);
Expand Down Expand Up @@ -1028,6 +1033,14 @@ public static com.commercetools.api.models.error.GraphQLSearchIndexingInProgress
return com.commercetools.api.models.error.GraphQLSearchIndexingInProgressErrorBuilder.of();
}

/**
* builder for searchNotReady subtype
* @return builder
*/
public static com.commercetools.api.models.error.GraphQLSearchNotReadyErrorBuilder searchNotReadyBuilder() {
return com.commercetools.api.models.error.GraphQLSearchNotReadyErrorBuilder.of();
}

/**
* builder for semanticError subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -299,6 +299,10 @@ public com.commercetools.api.models.error.GraphQLSearchIndexingInProgressErrorBu
return com.commercetools.api.models.error.GraphQLSearchIndexingInProgressErrorBuilder.of();
}

public com.commercetools.api.models.error.GraphQLSearchNotReadyErrorBuilder searchNotReadyBuilder() {
return com.commercetools.api.models.error.GraphQLSearchNotReadyErrorBuilder.of();
}

public com.commercetools.api.models.error.GraphQLSemanticErrorErrorBuilder semanticErrorBuilder() {
return com.commercetools.api.models.error.GraphQLSemanticErrorErrorBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,119 @@

package com.commercetools.api.models.error;

import java.time.*;
import java.util.*;
import java.util.function.Function;

import javax.annotation.Nullable;

import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;

import io.vrap.rmf.base.client.utils.Generated;

import jakarta.validation.constraints.NotNull;

/**
* <p>Returned if the requested search service is not ready. The search might be deactivated or indexing is in progress.</p>
*
* <hr>
* Example to create an instance using the builder pattern
* <div class=code-example>
* <pre><code class='java'>
* GraphQLSearchNotReadyError graphQLSearchNotReadyError = GraphQLSearchNotReadyError.builder()
* .build()
* </code></pre>
* </div>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
@JsonDeserialize(as = GraphQLSearchNotReadyErrorImpl.class)
public interface GraphQLSearchNotReadyError extends GraphQLErrorObject {

/**
* discriminator value for GraphQLSearchNotReadyError
*/
String SEARCH_NOT_READY = "SearchNotReady";

/**
*
* @return code
*/
@NotNull
@JsonProperty("code")
public String getCode();

/**
* factory method
* @return instance of GraphQLSearchNotReadyError
*/
public static GraphQLSearchNotReadyError of() {
return new GraphQLSearchNotReadyErrorImpl();
}

/**
* factory method to create a shallow copy GraphQLSearchNotReadyError
* @param template instance to be copied
* @return copy instance
*/
public static GraphQLSearchNotReadyError of(final GraphQLSearchNotReadyError template) {
GraphQLSearchNotReadyErrorImpl instance = new GraphQLSearchNotReadyErrorImpl();
Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue));
return instance;
}

/**
* factory method to create a deep copy of GraphQLSearchNotReadyError
* @param template instance to be copied
* @return copy instance
*/
@Nullable
public static GraphQLSearchNotReadyError deepCopy(@Nullable final GraphQLSearchNotReadyError template) {
if (template == null) {
return null;
}
GraphQLSearchNotReadyErrorImpl instance = new GraphQLSearchNotReadyErrorImpl();
Optional.ofNullable(template.values()).ifPresent(t -> t.forEach(instance::setValue));
return instance;
}

/**
* builder factory method for GraphQLSearchNotReadyError
* @return builder
*/
public static GraphQLSearchNotReadyErrorBuilder builder() {
return GraphQLSearchNotReadyErrorBuilder.of();
}

/**
* create builder for GraphQLSearchNotReadyError instance
* @param template instance with prefilled values for the builder
* @return builder
*/
public static GraphQLSearchNotReadyErrorBuilder builder(final GraphQLSearchNotReadyError template) {
return GraphQLSearchNotReadyErrorBuilder.of(template);
}

/**
* accessor map function
* @param <T> mapped type
* @param helper function to map the object
* @return mapped value
*/
default <T> T withGraphQLSearchNotReadyError(Function<GraphQLSearchNotReadyError, T> helper) {
return helper.apply(this);
}

/**
* gives a TypeReference for usage with Jackson DataBind
* @return TypeReference
*/
public static com.fasterxml.jackson.core.type.TypeReference<GraphQLSearchNotReadyError> typeReference() {
return new com.fasterxml.jackson.core.type.TypeReference<GraphQLSearchNotReadyError>() {
@Override
public String toString() {
return "TypeReference<GraphQLSearchNotReadyError>";
}
};
}
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,95 @@

package com.commercetools.api.models.error;

import java.util.*;

import io.vrap.rmf.base.client.Builder;
import io.vrap.rmf.base.client.utils.Generated;

/**
* GraphQLSearchNotReadyErrorBuilder
* <hr>
* Example to create an instance using the builder pattern
* <div class=code-example>
* <pre><code class='java'>
* GraphQLSearchNotReadyError graphQLSearchNotReadyError = GraphQLSearchNotReadyError.builder()
* .build()
* </code></pre>
* </div>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class GraphQLSearchNotReadyErrorBuilder implements Builder<GraphQLSearchNotReadyError> {

private Map<String, java.lang.Object> values = new HashMap<>();

/**
* <p>Error-specific additional fields.</p>
* @param values properties to be set
* @return Builder
*/

public GraphQLSearchNotReadyErrorBuilder values(final Map<String, java.lang.Object> values) {
this.values = values;
return this;
}

/**
* <p>Error-specific additional fields.</p>
* @param key property name
* @param value property value
* @return Builder
*/

public GraphQLSearchNotReadyErrorBuilder addValue(final String key, final java.lang.Object value) {
if (this.values == null) {
values = new HashMap<>();
}
values.put(key, value);
return this;
}

/**
* <p>Error-specific additional fields.</p>
* @return pattern properties
*/

public Map<String, java.lang.Object> getValues() {
return this.values;
}

/**
* builds GraphQLSearchNotReadyError with checking for non-null required values
* @return GraphQLSearchNotReadyError
*/
public GraphQLSearchNotReadyError build() {
return new GraphQLSearchNotReadyErrorImpl(values);
}

/**
* builds GraphQLSearchNotReadyError without checking for non-null required values
* @return GraphQLSearchNotReadyError
*/
public GraphQLSearchNotReadyError buildUnchecked() {
return new GraphQLSearchNotReadyErrorImpl(values);
}

/**
* factory method for an instance of GraphQLSearchNotReadyErrorBuilder
* @return builder
*/
public static GraphQLSearchNotReadyErrorBuilder of() {
return new GraphQLSearchNotReadyErrorBuilder();
}

/**
* create builder for GraphQLSearchNotReadyError instance
* @param template instance with prefilled values for the builder
* @return builder
*/
public static GraphQLSearchNotReadyErrorBuilder of(final GraphQLSearchNotReadyError template) {
GraphQLSearchNotReadyErrorBuilder builder = new GraphQLSearchNotReadyErrorBuilder();
builder.values = template.values();
return builder;
}

}
Loading

0 comments on commit 2e4c00a

Please sign in to comment.