From 32ae9c746f878bf49f9cc231fcb4df5534ebbf33 Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 19 Feb 2024 15:29:32 +0000
Subject: [PATCH] build(codegen): updating SDK
---
changes.md | 10 ++++++++++
.../OrderReturnShipmentStateChangedMessage.java | 2 +-
.../OrderReturnShipmentStateChangedMessageImpl.java | 2 +-
.../OrderReturnShipmentStateChangedMessagePayload.java | 2 +-
...erReturnShipmentStateChangedMessagePayloadImpl.java | 2 +-
.../message/OrderShipmentStateChangedMessage.java | 3 +--
.../OrderShipmentStateChangedMessageBuilder.java | 7 +++----
.../OrderShipmentStateChangedMessagePayload.java | 3 +--
...OrderShipmentStateChangedMessagePayloadBuilder.java | 9 +++++----
.../api/models/message/OrderStateChangedMessage.java | 3 +--
.../message/OrderStateChangedMessageBuilder.java | 6 +++---
.../message/OrderStateChangedMessagePayload.java | 3 +--
.../OrderStateChangedMessagePayloadBuilder.java | 8 +++++---
references.txt | 1 +
14 files changed, 35 insertions(+), 26 deletions(-)
diff --git a/changes.md b/changes.md
index 667b540416c..0e9891fc092 100644
--- a/changes.md
+++ b/changes.md
@@ -13,3 +13,13 @@
- :warning: changed property `includedDiscounts` of type `DiscountedLineItemPriceDraft` from type `DiscountedLineItemPortion[]` to `DiscountedLineItemPortionDraft[]`
+
+Required Property(s)
+
+- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessage` to be optional
+- changed property `oldOrderState` of type `OrderStateChangedMessage` to be optional
+- changed property `oldShipmentState` of type `OrderShipmentStateChangedMessagePayload` to be optional
+- changed property `oldOrderState` of type `OrderStateChangedMessagePayload` to be optional
+
Generated after a successful Set ReturnShipmentState update action.
+ *Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.
* *Generated after a successful Set ReturnShipmentState update action.
+ *Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class OrderReturnShipmentStateChangedMessageImpl implements OrderReturnShipmentStateChangedMessage, ModelBase { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderReturnShipmentStateChangedMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderReturnShipmentStateChangedMessagePayload.java index b6d6cde03b7..87158ac0d72 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderReturnShipmentStateChangedMessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderReturnShipmentStateChangedMessagePayload.java @@ -15,7 +15,7 @@ import io.vrap.rmf.base.client.utils.Generated; /** - *Generated after a successful Set ReturnShipmentState update action.
+ *Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.
* *Generated after a successful Set ReturnShipmentState update action.
+ *Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.
*/ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class OrderReturnShipmentStateChangedMessagePayloadImpl diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessage.java index 0f8f31cdebc..db05887fac6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessage.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessage.java @@ -30,7 +30,6 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .shipmentState(ShipmentState.SHIPPED) - * .oldShipmentState(ShipmentState.SHIPPED) * .build() * * @@ -56,7 +55,7 @@ public interface OrderShipmentStateChangedMessage extends OrderMessage { *ShipmentState before the Change Shipment State update action.
* @return oldShipmentState */ - @NotNull + @JsonProperty("oldShipmentState") public ShipmentState getOldShipmentState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessageBuilder.java index 65749a966d3..65669df0ff4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessageBuilder.java @@ -24,7 +24,6 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .shipmentState(ShipmentState.SHIPPED) - * .oldShipmentState(ShipmentState.SHIPPED) * .build() * * @@ -57,6 +56,7 @@ public class OrderShipmentStateChangedMessageBuilder implements Builder
* OrderShipmentStateChangedMessagePayload orderShipmentStateChangedMessagePayload = OrderShipmentStateChangedMessagePayload.builder()
* .shipmentState(ShipmentState.SHIPPED)
- * .oldShipmentState(ShipmentState.SHIPPED)
* .build()
*
*
@@ -49,7 +48,7 @@ public interface OrderShipmentStateChangedMessagePayload extends OrderMessagePay
* ShipmentState before the Change Shipment State update action.
* @return oldShipmentState */ - @NotNull + @JsonProperty("oldShipmentState") public ShipmentState getOldShipmentState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessagePayloadBuilder.java index 8e535d0ca2d..5a48d660563 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderShipmentStateChangedMessagePayloadBuilder.java @@ -3,6 +3,8 @@ import java.util.*; +import javax.annotation.Nullable; + import io.vrap.rmf.base.client.Builder; import io.vrap.rmf.base.client.utils.Generated; @@ -14,7 +16,6 @@ *
* OrderShipmentStateChangedMessagePayload orderShipmentStateChangedMessagePayload = OrderShipmentStateChangedMessagePayload.builder()
* .shipmentState(ShipmentState.SHIPPED)
- * .oldShipmentState(ShipmentState.SHIPPED)
* .build()
*
*
@@ -25,6 +26,7 @@ public class OrderShipmentStateChangedMessagePayloadBuilder
private com.commercetools.api.models.order.ShipmentState shipmentState;
+ @Nullable
private com.commercetools.api.models.order.ShipmentState oldShipmentState;
/**
@@ -46,7 +48,7 @@ public OrderShipmentStateChangedMessagePayloadBuilder shipmentState(
*/
public OrderShipmentStateChangedMessagePayloadBuilder oldShipmentState(
- final com.commercetools.api.models.order.ShipmentState oldShipmentState) {
+ @Nullable final com.commercetools.api.models.order.ShipmentState oldShipmentState) {
this.oldShipmentState = oldShipmentState;
return this;
}
@@ -65,6 +67,7 @@ public com.commercetools.api.models.order.ShipmentState getShipmentState() {
* @return oldShipmentState
*/
+ @Nullable
public com.commercetools.api.models.order.ShipmentState getOldShipmentState() {
return this.oldShipmentState;
}
@@ -76,8 +79,6 @@ public com.commercetools.api.models.order.ShipmentState getOldShipmentState() {
public OrderShipmentStateChangedMessagePayload build() {
Objects.requireNonNull(shipmentState,
OrderShipmentStateChangedMessagePayload.class + ": shipmentState is missing");
- Objects.requireNonNull(oldShipmentState,
- OrderShipmentStateChangedMessagePayload.class + ": oldShipmentState is missing");
return new OrderShipmentStateChangedMessagePayloadImpl(shipmentState, oldShipmentState);
}
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessage.java
index cc9140fd8f8..0ef50bb23dd 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessage.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessage.java
@@ -30,7 +30,6 @@
* .resource(resourceBuilder -> resourceBuilder)
* .resourceVersion(0.3)
* .orderState(OrderState.OPEN)
- * .oldOrderState(OrderState.OPEN)
* .build()
*
*
@@ -56,7 +55,7 @@ public interface OrderStateChangedMessage extends OrderMessage {
* OrderState before the Change Order State update action.
* @return oldOrderState */ - @NotNull + @JsonProperty("oldOrderState") public OrderState getOldOrderState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessageBuilder.java index a5f6118db17..083718d5ec5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessageBuilder.java @@ -24,7 +24,6 @@ * .resource(resourceBuilder -> resourceBuilder) * .resourceVersion(0.3) * .orderState(OrderState.OPEN) - * .oldOrderState(OrderState.OPEN) * .build() * * @@ -57,6 +56,7 @@ public class OrderStateChangedMessageBuilder implements Builder
* OrderStateChangedMessagePayload orderStateChangedMessagePayload = OrderStateChangedMessagePayload.builder()
* .orderState(OrderState.OPEN)
- * .oldOrderState(OrderState.OPEN)
* .build()
*
*
@@ -49,7 +48,7 @@ public interface OrderStateChangedMessagePayload extends OrderMessagePayload {
* OrderState before the Change Order State update action.
* @return oldOrderState */ - @NotNull + @JsonProperty("oldOrderState") public OrderState getOldOrderState(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessagePayloadBuilder.java index a3022a3f8fa..b00438b972e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/OrderStateChangedMessagePayloadBuilder.java @@ -3,6 +3,8 @@ import java.util.*; +import javax.annotation.Nullable; + import io.vrap.rmf.base.client.Builder; import io.vrap.rmf.base.client.utils.Generated; @@ -14,7 +16,6 @@ *
* OrderStateChangedMessagePayload orderStateChangedMessagePayload = OrderStateChangedMessagePayload.builder()
* .orderState(OrderState.OPEN)
- * .oldOrderState(OrderState.OPEN)
* .build()
*
*
@@ -24,6 +25,7 @@ public class OrderStateChangedMessagePayloadBuilder implements Builder