Skip to content

Update generated SDKs #955

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jul 28, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
10 changes: 10 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,13 @@
<summary>Added Type(s)</summary>

- added type `RecurringOrderDeletedMessage`
- added type `RecurringOrderExpiresAtSetMessage`
- added type `RecurringOrderDeletedMessagePayload`
- added type `RecurringOrderExpiresAtSetMessagePayload`
- added type `ProductSearchFacetResultStats`
- added type `ProductSearchFacetStatsExpression`
- added type `ProductSearchFacetStatsValue`
- added type `RecurringOrderSetExpiresAtAction`
</details>


Expand All @@ -25,6 +28,13 @@
- added method `apiRoot.withProjectKey().recurringOrders().withKey().delete()`
</details>


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

- added property `expiresAt` to type `RecurringOrderDraft`
</details>

**History changes**

<details>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10872,6 +10872,12 @@ input RecurringOrderExpiredInput {
dummy: String
}

type RecurringOrderExpiresAtSet implements MessagePayload {
newExpiresAt: DateTime
oldExpiresAt: DateTime
type: String!
}

type RecurringOrderKeySet implements MessagePayload {
key: String
oldKey: String
Expand Down Expand Up @@ -10935,6 +10941,7 @@ type RecurringOrderStateTransition implements MessagePayload {
}

input RecurringOrderUpdateAction {
setExpiresAt: SetRecurringOrderExpiresAt
setKey: SetRecurringOrderKey
setOrderSkipConfiguration: SetRecurringOrderOrderSkipConfiguration
setCustomField: SetRecurringOrderCustomField
Expand Down Expand Up @@ -13430,6 +13437,10 @@ input SetRecurringOrderCustomType {
typeId: String
}

input SetRecurringOrderExpiresAt {
expiresAt: DateTime
}

input SetRecurringOrderKey {
key: String
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,8 +20,8 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates a Recurring Order in the Project. The Cart is validated to ensure that it is convertible to an Order. If validation fails, an error is returned.</p>
* <p>Produces the RecurringOrderCreated message.</p>
* <p>Creates a Recurring Order in the Project. Produces the RecurringOrderCreated message.</p>
* <p>The Cart is validated to ensure that it is convertible to an Order. If the validation fails, an error is returned. If the expiration date has been reached when the Recurring Order is processed, its RecurringOrderState will be updated to <code>Expired</code>, and no Order will be created.</p>
* <p>If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Recurring Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Recurring Order by querying a unique identifier supplied during the creation request, such as the key.</p>
*
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@
import org.apache.commons.lang3.builder.HashCodeBuilder;

/**
* <p>Creates a Recurring Order in the Project. The Cart is validated to ensure that it is convertible to an Order. If validation fails, an error is returned.</p>
* <p>Produces the RecurringOrderCreated message.</p>
* <p>Creates a Recurring Order in the Project. Produces the RecurringOrderCreated message.</p>
* <p>The Cart is validated to ensure that it is convertible to an Order. If the validation fails, an error is returned. If the expiration date has been reached when the Recurring Order is processed, its RecurringOrderState will be updated to <code>Expired</code>, and no Order will be created.</p>
* <p>If a server-side problem occurs, indicated by a 500 Internal Server Error HTTP response, the Recurring Order creation may still successfully complete after the error is returned. If you receive this error, you should verify the status of the Recurring Order by querying a unique identifier supplied during the creation request, such as the key.</p>
*
* <hr>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2253,6 +2253,14 @@ public static com.commercetools.api.models.message.RecurringOrderDeletedMessageB
return com.commercetools.api.models.message.RecurringOrderDeletedMessageBuilder.of();
}

/**
* builder for recurringOrderExpiresAtSet subtype
* @return builder
*/
public static com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBuilder recurringOrderExpiresAtSetBuilder() {
return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBuilder.of();
}

/**
* builder for recurringOrderKeySet subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,10 @@ public com.commercetools.api.models.message.RecurringOrderDeletedMessageBuilder
return com.commercetools.api.models.message.RecurringOrderDeletedMessageBuilder.of();
}

public com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBuilder recurringOrderExpiresAtSetBuilder() {
return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessageBuilder.of();
}

public com.commercetools.api.models.message.RecurringOrderKeySetMessageBuilder recurringOrderKeySetBuilder() {
return com.commercetools.api.models.message.RecurringOrderKeySetMessageBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2077,6 +2077,14 @@ public static com.commercetools.api.models.message.RecurringOrderDeletedMessageP
return com.commercetools.api.models.message.RecurringOrderDeletedMessagePayloadBuilder.of();
}

/**
* builder for recurringOrderExpiresAtSet subtype
* @return builder
*/
public static com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder recurringOrderExpiresAtSetBuilder() {
return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder.of();
}

/**
* builder for recurringOrderKeySet subtype
* @return builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1019,6 +1019,10 @@ public com.commercetools.api.models.message.RecurringOrderDeletedMessagePayloadB
return com.commercetools.api.models.message.RecurringOrderDeletedMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder recurringOrderExpiresAtSetBuilder() {
return com.commercetools.api.models.message.RecurringOrderExpiresAtSetMessagePayloadBuilder.of();
}

public com.commercetools.api.models.message.RecurringOrderKeySetMessagePayloadBuilder recurringOrderKeySetBuilder() {
return com.commercetools.api.models.message.RecurringOrderKeySetMessagePayloadBuilder.of();
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,179 @@

package com.commercetools.api.models.message;

import java.time.*;
import java.time.ZonedDateTime;
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>Generated after a successful Set Expires At update action.</p>
*
* <hr>
* Example to create an instance using the builder pattern
* <div class=code-example>
* <pre><code class='java'>
* RecurringOrderExpiresAtSetMessage recurringOrderExpiresAtSetMessage = RecurringOrderExpiresAtSetMessage.builder()
* .id("{id}")
* .version(0.3)
* .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
* .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
* .sequenceNumber(0.3)
* .resource(resourceBuilder -> resourceBuilder)
* .resourceVersion(0.3)
* .newExpiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
* .oldExpiresAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
* .build()
* </code></pre>
* </div>
*/
@io.vrap.rmf.base.client.utils.json.SubType("RecurringOrderExpiresAtSet")
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
@JsonDeserialize(as = RecurringOrderExpiresAtSetMessageImpl.class)
public interface RecurringOrderExpiresAtSetMessage extends Message {

/**
* discriminator value for RecurringOrderExpiresAtSetMessage
*/
String RECURRING_ORDER_EXPIRES_AT_SET = "RecurringOrderExpiresAtSet";

/**
* <p>Expiration date and time of the Recurring Order after the Set Expires At update action.</p>
* @return newExpiresAt
*/
@NotNull
@JsonProperty("newExpiresAt")
public ZonedDateTime getNewExpiresAt();

/**
* <p>Expiration date and time of the Recurring Order before the Set Expires At update action.</p>
* @return oldExpiresAt
*/
@NotNull
@JsonProperty("oldExpiresAt")
public ZonedDateTime getOldExpiresAt();

/**
* <p>Expiration date and time of the Recurring Order after the Set Expires At update action.</p>
* @param newExpiresAt value to be set
*/

public void setNewExpiresAt(final ZonedDateTime newExpiresAt);

/**
* <p>Expiration date and time of the Recurring Order before the Set Expires At update action.</p>
* @param oldExpiresAt value to be set
*/

public void setOldExpiresAt(final ZonedDateTime oldExpiresAt);

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

/**
* factory method to create a shallow copy RecurringOrderExpiresAtSetMessage
* @param template instance to be copied
* @return copy instance
*/
public static RecurringOrderExpiresAtSetMessage of(final RecurringOrderExpiresAtSetMessage template) {
RecurringOrderExpiresAtSetMessageImpl instance = new RecurringOrderExpiresAtSetMessageImpl();
instance.setId(template.getId());
instance.setVersion(template.getVersion());
instance.setCreatedAt(template.getCreatedAt());
instance.setLastModifiedAt(template.getLastModifiedAt());
instance.setLastModifiedBy(template.getLastModifiedBy());
instance.setCreatedBy(template.getCreatedBy());
instance.setSequenceNumber(template.getSequenceNumber());
instance.setResource(template.getResource());
instance.setResourceVersion(template.getResourceVersion());
instance.setResourceUserProvidedIdentifiers(template.getResourceUserProvidedIdentifiers());
instance.setNewExpiresAt(template.getNewExpiresAt());
instance.setOldExpiresAt(template.getOldExpiresAt());
return instance;
}

public RecurringOrderExpiresAtSetMessage copyDeep();

/**
* factory method to create a deep copy of RecurringOrderExpiresAtSetMessage
* @param template instance to be copied
* @return copy instance
*/
@Nullable
public static RecurringOrderExpiresAtSetMessage deepCopy(
@Nullable final RecurringOrderExpiresAtSetMessage template) {
if (template == null) {
return null;
}
RecurringOrderExpiresAtSetMessageImpl instance = new RecurringOrderExpiresAtSetMessageImpl();
instance.setId(template.getId());
instance.setVersion(template.getVersion());
instance.setCreatedAt(template.getCreatedAt());
instance.setLastModifiedAt(template.getLastModifiedAt());
instance.setLastModifiedBy(
com.commercetools.api.models.common.LastModifiedBy.deepCopy(template.getLastModifiedBy()));
instance.setCreatedBy(com.commercetools.api.models.common.CreatedBy.deepCopy(template.getCreatedBy()));
instance.setSequenceNumber(template.getSequenceNumber());
instance.setResource(com.commercetools.api.models.common.Reference.deepCopy(template.getResource()));
instance.setResourceVersion(template.getResourceVersion());
instance.setResourceUserProvidedIdentifiers(com.commercetools.api.models.message.UserProvidedIdentifiers
.deepCopy(template.getResourceUserProvidedIdentifiers()));
instance.setNewExpiresAt(template.getNewExpiresAt());
instance.setOldExpiresAt(template.getOldExpiresAt());
return instance;
}

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

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

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

/**
* gives a TypeReference for usage with Jackson DataBind
* @return TypeReference
*/
public static com.fasterxml.jackson.core.type.TypeReference<RecurringOrderExpiresAtSetMessage> typeReference() {
return new com.fasterxml.jackson.core.type.TypeReference<RecurringOrderExpiresAtSetMessage>() {
@Override
public String toString() {
return "TypeReference<RecurringOrderExpiresAtSetMessage>";
}
};
}
}
Loading