Skip to content

Commit

Permalink
build(codegen): updating SDK
Browse files Browse the repository at this point in the history
  • Loading branch information
ct-sdks[bot] committed Feb 19, 2024
1 parent ee58b00 commit 32ae9c7
Show file tree
Hide file tree
Showing 14 changed files with 35 additions and 26 deletions.
10 changes: 10 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,13 @@
- :warning: changed property `includedDiscounts` of type `DiscountedLineItemPriceDraft` from type `DiscountedLineItemPortion[]` to `DiscountedLineItemPortionDraft[]`
</details>


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

- 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
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import io.vrap.rmf.base.client.utils.Generated;

/**
* <p>Generated after a successful Set ReturnShipmentState update action.</p>
* <p>Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.</p>
*
* <hr>
* Example to create an instance using the builder pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>Generated after a successful Set ReturnShipmentState update action.</p>
* <p>Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class OrderReturnShipmentStateChangedMessageImpl implements OrderReturnShipmentStateChangedMessage, ModelBase {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import io.vrap.rmf.base.client.utils.Generated;

/**
* <p>Generated after a successful Set ReturnShipmentState update action.</p>
* <p>Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.</p>
*
* <hr>
* Example to create an instance using the builder pattern
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;

/**
* <p>Generated after a successful Set ReturnShipmentState update action.</p>
* <p>Generated after a successful Set ReturnShipmentState update action on Orders and Order Edits.</p>
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class OrderReturnShipmentStateChangedMessagePayloadImpl
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* .resource(resourceBuilder -> resourceBuilder)
* .resourceVersion(0.3)
* .shipmentState(ShipmentState.SHIPPED)
* .oldShipmentState(ShipmentState.SHIPPED)
* .build()
* </code></pre>
* </div>
Expand All @@ -56,7 +55,7 @@ public interface OrderShipmentStateChangedMessage extends OrderMessage {
* <p>ShipmentState before the Change Shipment State update action.</p>
* @return oldShipmentState
*/
@NotNull

@JsonProperty("oldShipmentState")
public ShipmentState getOldShipmentState();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* .resource(resourceBuilder -> resourceBuilder)
* .resourceVersion(0.3)
* .shipmentState(ShipmentState.SHIPPED)
* .oldShipmentState(ShipmentState.SHIPPED)
* .build()
* </code></pre>
* </div>
Expand Down Expand Up @@ -57,6 +56,7 @@ public class OrderShipmentStateChangedMessageBuilder implements Builder<OrderShi

private com.commercetools.api.models.order.ShipmentState shipmentState;

@Nullable
private com.commercetools.api.models.order.ShipmentState oldShipmentState;

/**
Expand Down Expand Up @@ -279,7 +279,7 @@ public OrderShipmentStateChangedMessageBuilder shipmentState(
*/

public OrderShipmentStateChangedMessageBuilder oldShipmentState(
final com.commercetools.api.models.order.ShipmentState oldShipmentState) {
@Nullable final com.commercetools.api.models.order.ShipmentState oldShipmentState) {
this.oldShipmentState = oldShipmentState;
return this;
}
Expand Down Expand Up @@ -391,6 +391,7 @@ public com.commercetools.api.models.order.ShipmentState getShipmentState() {
* @return oldShipmentState
*/

@Nullable
public com.commercetools.api.models.order.ShipmentState getOldShipmentState() {
return this.oldShipmentState;
}
Expand All @@ -409,8 +410,6 @@ public OrderShipmentStateChangedMessage build() {
Objects.requireNonNull(resourceVersion,
OrderShipmentStateChangedMessage.class + ": resourceVersion is missing");
Objects.requireNonNull(shipmentState, OrderShipmentStateChangedMessage.class + ": shipmentState is missing");
Objects.requireNonNull(oldShipmentState,
OrderShipmentStateChangedMessage.class + ": oldShipmentState is missing");
return new OrderShipmentStateChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy,
createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, shipmentState,
oldShipmentState);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* <pre><code class='java'>
* OrderShipmentStateChangedMessagePayload orderShipmentStateChangedMessagePayload = OrderShipmentStateChangedMessagePayload.builder()
* .shipmentState(ShipmentState.SHIPPED)
* .oldShipmentState(ShipmentState.SHIPPED)
* .build()
* </code></pre>
* </div>
Expand All @@ -49,7 +48,7 @@ public interface OrderShipmentStateChangedMessagePayload extends OrderMessagePay
* <p>ShipmentState before the Change Shipment State update action.</p>
* @return oldShipmentState
*/
@NotNull

@JsonProperty("oldShipmentState")
public ShipmentState getOldShipmentState();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -14,7 +16,6 @@
* <pre><code class='java'>
* OrderShipmentStateChangedMessagePayload orderShipmentStateChangedMessagePayload = OrderShipmentStateChangedMessagePayload.builder()
* .shipmentState(ShipmentState.SHIPPED)
* .oldShipmentState(ShipmentState.SHIPPED)
* .build()
* </code></pre>
* </div>
Expand All @@ -25,6 +26,7 @@ public class OrderShipmentStateChangedMessagePayloadBuilder

private com.commercetools.api.models.order.ShipmentState shipmentState;

@Nullable
private com.commercetools.api.models.order.ShipmentState oldShipmentState;

/**
Expand All @@ -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;
}
Expand All @@ -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;
}
Expand All @@ -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);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@
* .resource(resourceBuilder -> resourceBuilder)
* .resourceVersion(0.3)
* .orderState(OrderState.OPEN)
* .oldOrderState(OrderState.OPEN)
* .build()
* </code></pre>
* </div>
Expand All @@ -56,7 +55,7 @@ public interface OrderStateChangedMessage extends OrderMessage {
* <p>OrderState before the Change Order State update action.</p>
* @return oldOrderState
*/
@NotNull

@JsonProperty("oldOrderState")
public OrderState getOldOrderState();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
* .resource(resourceBuilder -> resourceBuilder)
* .resourceVersion(0.3)
* .orderState(OrderState.OPEN)
* .oldOrderState(OrderState.OPEN)
* .build()
* </code></pre>
* </div>
Expand Down Expand Up @@ -57,6 +56,7 @@ public class OrderStateChangedMessageBuilder implements Builder<OrderStateChange

private com.commercetools.api.models.order.OrderState orderState;

@Nullable
private com.commercetools.api.models.order.OrderState oldOrderState;

/**
Expand Down Expand Up @@ -277,7 +277,7 @@ public OrderStateChangedMessageBuilder orderState(final com.commercetools.api.mo
*/

public OrderStateChangedMessageBuilder oldOrderState(
final com.commercetools.api.models.order.OrderState oldOrderState) {
@Nullable final com.commercetools.api.models.order.OrderState oldOrderState) {
this.oldOrderState = oldOrderState;
return this;
}
Expand Down Expand Up @@ -389,6 +389,7 @@ public com.commercetools.api.models.order.OrderState getOrderState() {
* @return oldOrderState
*/

@Nullable
public com.commercetools.api.models.order.OrderState getOldOrderState() {
return this.oldOrderState;
}
Expand All @@ -406,7 +407,6 @@ public OrderStateChangedMessage build() {
Objects.requireNonNull(resource, OrderStateChangedMessage.class + ": resource is missing");
Objects.requireNonNull(resourceVersion, OrderStateChangedMessage.class + ": resourceVersion is missing");
Objects.requireNonNull(orderState, OrderStateChangedMessage.class + ": orderState is missing");
Objects.requireNonNull(oldOrderState, OrderStateChangedMessage.class + ": oldOrderState is missing");
return new OrderStateChangedMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy,
sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, orderState, oldOrderState);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
* <pre><code class='java'>
* OrderStateChangedMessagePayload orderStateChangedMessagePayload = OrderStateChangedMessagePayload.builder()
* .orderState(OrderState.OPEN)
* .oldOrderState(OrderState.OPEN)
* .build()
* </code></pre>
* </div>
Expand All @@ -49,7 +48,7 @@ public interface OrderStateChangedMessagePayload extends OrderMessagePayload {
* <p>OrderState before the Change Order State update action.</p>
* @return oldOrderState
*/
@NotNull

@JsonProperty("oldOrderState")
public OrderState getOldOrderState();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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;

Expand All @@ -14,7 +16,6 @@
* <pre><code class='java'>
* OrderStateChangedMessagePayload orderStateChangedMessagePayload = OrderStateChangedMessagePayload.builder()
* .orderState(OrderState.OPEN)
* .oldOrderState(OrderState.OPEN)
* .build()
* </code></pre>
* </div>
Expand All @@ -24,6 +25,7 @@ public class OrderStateChangedMessagePayloadBuilder implements Builder<OrderStat

private com.commercetools.api.models.order.OrderState orderState;

@Nullable
private com.commercetools.api.models.order.OrderState oldOrderState;

/**
Expand All @@ -45,7 +47,7 @@ public OrderStateChangedMessagePayloadBuilder orderState(
*/

public OrderStateChangedMessagePayloadBuilder oldOrderState(
final com.commercetools.api.models.order.OrderState oldOrderState) {
@Nullable final com.commercetools.api.models.order.OrderState oldOrderState) {
this.oldOrderState = oldOrderState;
return this;
}
Expand All @@ -64,6 +66,7 @@ public com.commercetools.api.models.order.OrderState getOrderState() {
* @return oldOrderState
*/

@Nullable
public com.commercetools.api.models.order.OrderState getOldOrderState() {
return this.oldOrderState;
}
Expand All @@ -74,7 +77,6 @@ public com.commercetools.api.models.order.OrderState getOldOrderState() {
*/
public OrderStateChangedMessagePayload build() {
Objects.requireNonNull(orderState, OrderStateChangedMessagePayload.class + ": orderState is missing");
Objects.requireNonNull(oldOrderState, OrderStateChangedMessagePayload.class + ": oldOrderState is missing");
return new OrderStateChangedMessagePayloadImpl(orderState, oldOrderState);
}

Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -197,3 +197,4 @@ d10443de67d8c8e684b4e63415b5720fc3bcf169
d281cfbc160ad09ae2b259b5d65336e7d8107455
be578831c2178be70f96067afc7f51dc08a513e3
ffed231e91d01608e1bb08ecc1883cf00d9d9293
2645451ae6aef245e333b2f30cf5cb3627f71403

0 comments on commit 32ae9c7

Please sign in to comment.