-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #740 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
15 changed files
with
500 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,42 +1,8 @@ | ||
**Api changes** | ||
|
||
<details> | ||
<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` | ||
- added property `customers` to type `SearchIndexingConfiguration` | ||
</details> | ||
|
||
**Import changes** | ||
|
||
<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>Removed Type(s)</summary> | ||
|
||
- :warning: removed type `ProductSearchStatus` | ||
</details> | ||
|
||
|
||
<details> | ||
<summary>Added Enum(s)</summary> | ||
|
||
- added enum `customer-group` to type `ExtensionResourceTypeId` | ||
- added enum `product-tailoring` to type `MessageSubscriptionResourceTypeId` | ||
- added enum `product-tailoring` to type `ResourceTypeId` | ||
- added type `InvalidFieldsUpdateError` | ||
</details> | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
153 changes: 153 additions & 0 deletions
153
...in/java-generated/com/commercetools/importapi/models/errors/InvalidFieldsUpdateError.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,153 @@ | ||
|
||
package com.commercetools.importapi.models.errors; | ||
|
||
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 when a field cannot be updated.</p> | ||
* | ||
* <hr> | ||
* Example to create an instance using the builder pattern | ||
* <div class=code-example> | ||
* <pre><code class='java'> | ||
* InvalidFieldsUpdateError invalidFieldsUpdateError = InvalidFieldsUpdateError.builder() | ||
* .message("{message}") | ||
* .plusFields(fieldsBuilder -> fieldsBuilder) | ||
* .build() | ||
* </code></pre> | ||
* </div> | ||
*/ | ||
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") | ||
@JsonDeserialize(as = InvalidFieldsUpdateErrorImpl.class) | ||
public interface InvalidFieldsUpdateError extends ErrorObject { | ||
|
||
/** | ||
* discriminator value for InvalidFieldsUpdateError | ||
*/ | ||
String INVALID_FIELD_UPDATE = "InvalidFieldUpdate"; | ||
|
||
/** | ||
* <p><code>"The following fields are currently not supported for changes/updates"</code></p> | ||
* @return message | ||
*/ | ||
@NotNull | ||
@JsonProperty("message") | ||
public String getMessage(); | ||
|
||
/** | ||
* <p>Fields that cannot be updated.</p> | ||
* @return fields | ||
*/ | ||
@NotNull | ||
@JsonProperty("fields") | ||
public List<String> getFields(); | ||
|
||
/** | ||
* <p><code>"The following fields are currently not supported for changes/updates"</code></p> | ||
* @param message value to be set | ||
*/ | ||
|
||
public void setMessage(final String message); | ||
|
||
/** | ||
* <p>Fields that cannot be updated.</p> | ||
* @param fields values to be set | ||
*/ | ||
|
||
@JsonIgnore | ||
public void setFields(final String... fields); | ||
|
||
/** | ||
* <p>Fields that cannot be updated.</p> | ||
* @param fields values to be set | ||
*/ | ||
|
||
public void setFields(final List<String> fields); | ||
|
||
/** | ||
* factory method | ||
* @return instance of InvalidFieldsUpdateError | ||
*/ | ||
public static InvalidFieldsUpdateError of() { | ||
return new InvalidFieldsUpdateErrorImpl(); | ||
} | ||
|
||
/** | ||
* factory method to create a shallow copy InvalidFieldsUpdateError | ||
* @param template instance to be copied | ||
* @return copy instance | ||
*/ | ||
public static InvalidFieldsUpdateError of(final InvalidFieldsUpdateError template) { | ||
InvalidFieldsUpdateErrorImpl instance = new InvalidFieldsUpdateErrorImpl(); | ||
instance.setMessage(template.getMessage()); | ||
instance.setFields(template.getFields()); | ||
return instance; | ||
} | ||
|
||
/** | ||
* factory method to create a deep copy of InvalidFieldsUpdateError | ||
* @param template instance to be copied | ||
* @return copy instance | ||
*/ | ||
@Nullable | ||
public static InvalidFieldsUpdateError deepCopy(@Nullable final InvalidFieldsUpdateError template) { | ||
if (template == null) { | ||
return null; | ||
} | ||
InvalidFieldsUpdateErrorImpl instance = new InvalidFieldsUpdateErrorImpl(); | ||
instance.setMessage(template.getMessage()); | ||
instance.setFields(Optional.ofNullable(template.getFields()).map(ArrayList::new).orElse(null)); | ||
return instance; | ||
} | ||
|
||
/** | ||
* builder factory method for InvalidFieldsUpdateError | ||
* @return builder | ||
*/ | ||
public static InvalidFieldsUpdateErrorBuilder builder() { | ||
return InvalidFieldsUpdateErrorBuilder.of(); | ||
} | ||
|
||
/** | ||
* create builder for InvalidFieldsUpdateError instance | ||
* @param template instance with prefilled values for the builder | ||
* @return builder | ||
*/ | ||
public static InvalidFieldsUpdateErrorBuilder builder(final InvalidFieldsUpdateError template) { | ||
return InvalidFieldsUpdateErrorBuilder.of(template); | ||
} | ||
|
||
/** | ||
* accessor map function | ||
* @param <T> mapped type | ||
* @param helper function to map the object | ||
* @return mapped value | ||
*/ | ||
default <T> T withInvalidFieldsUpdateError(Function<InvalidFieldsUpdateError, T> helper) { | ||
return helper.apply(this); | ||
} | ||
|
||
/** | ||
* gives a TypeReference for usage with Jackson DataBind | ||
* @return TypeReference | ||
*/ | ||
public static com.fasterxml.jackson.core.type.TypeReference<InvalidFieldsUpdateError> typeReference() { | ||
return new com.fasterxml.jackson.core.type.TypeReference<InvalidFieldsUpdateError>() { | ||
@Override | ||
public String toString() { | ||
return "TypeReference<InvalidFieldsUpdateError>"; | ||
} | ||
}; | ||
} | ||
} |
Oops, something went wrong.