diff --git a/changes.md b/changes.md index a33b6305842..3dd7edcacbe 100644 --- a/changes.md +++ b/changes.md @@ -1,5 +1,43 @@ **Api changes** +
+Changed Type(s) + +- :warning: changed type `DeliveryPayload` from type `object` to `SubscriptionNotification` +
+ + +
+Added Type(s) + +- added type `BusinessUnitSetUnitTypeAction` +- added type `BaseEvent` +- added type `Event` +- added type `ImportContainerCreatedEvent` +- added type `ImportContainerCreatedEventData` +- added type `ImportContainerDeletedEvent` +- added type `ImportContainerDeletedEventData` +- added type `ImportOperationRejectedEvent` +- added type `ImportOperationRejectedEventData` +- added type `ImportUnresolvedEvent` +- added type `ImportUnresolvedEventData` +- added type `ImportValidationFailedEvent` +- added type `ImportValidationFailedEventData` +- added type `ImportWaitForMasterVariantEvent` +- added type `ImportWaitForMasterVariantEventData` +- added type `BusinessUnitTopLevelUnitSetMessage` +- added type `BusinessUnitTypeSetMessage` +- added type `BusinessUnitTopLevelUnitSetMessagePayload` +- added type `BusinessUnitTypeSetMessagePayload` +- added type `EventDeliveryPayload` +- added type `EventSubscription` +- added type `EventSubscriptionResourceTypeId` +- added type `EventType` +- added type `SubscriptionNotification` +- added type `SubscriptionSetEventsAction` +
+ +
Required Property(s) @@ -7,6 +45,14 @@
+
+Added Property(s) + +- added property `events` to type `Subscription` +- added property `events` to type `SubscriptionDraft` +
+ +
Removed QueryParameter(s) diff --git a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls index 9d8f44a18b6..5766b167135 100644 --- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls +++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls @@ -1667,11 +1667,31 @@ type BusinessUnitStoresSet implements MessagePayload { type: String! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitTopLevelUnitSet implements MessagePayload { + oldTopLevelUnit: BusinessUnit! + topLevelUnit: BusinessUnit! + oldTopLevelUnitRef: KeyReference + topLevelUnitRef: KeyReference + type: String! +} + enum BusinessUnitType { Company Division } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +type BusinessUnitTypeSet implements MessagePayload { + oldUnitType: BusinessUnitType! + unitType: BusinessUnitType! + parentUnit: BusinessUnit + oldParentUnit: BusinessUnit + parentUnitRef: KeyReference + oldParentUnitRef: KeyReference + type: String! +} + input BusinessUnitUpdateAction { addAddress: AddBusinessUnitAddress addAssociate: AddBusinessUnitAssociate @@ -1700,6 +1720,9 @@ input BusinessUnitUpdateAction { setStoreMode: SetBusinessUnitStoreMode changeAssociateMode: ChangeBusinessUnitAssociateMode changeApprovalRuleMode: ChangeBusinessUnitApprovalRuleMode + + "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" + setUnitType: SetBusinessUnitUnitType } input CancelQuoteRequest { @@ -10872,6 +10895,12 @@ input SetBusinessUnitStores { stores: [ResourceIdentifierInput!]! } +"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta" +input SetBusinessUnitUnitType { + unitType: BusinessUnitType! + parentUnit: ResourceIdentifierInput +} + input SetCartAnonymousId { anonymousId: String } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java index ea021f7038e..1ba582fb962 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an API Client exists for a given id. Returns a 200 OK status if the API Client exists or a 404 Not Found otherwise.

+ *

Checks if an API Client exists with the provided id. Returns a 200 OK status if the API Client exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java index 0b005b21ec0..de82cc894c1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyApiClientsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an API Client exists for a given Query Predicate. Returns a 200 OK status if any API Clients match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if an API Client exists for the provided query predicate. Returns a 200 OK status if any API Clients match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java index 36b20cc3d5b..c7163618d3d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ *

Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java index d9bb1e3eea9..def5ff1e85f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java index c70edc112c7..1f0789dc034 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdBusinessUnitsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ *

Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java index 0fc2654869f..1d1413cddc6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ *

Checks if a Cart exists with the provided id. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java index 715718e0f42..8b8f295b059 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for a given Query Predicate. Returns a 200 OK status if any Carts match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more Carts exist for the provided query predicate. Returns a 200 OK status if any Carts match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java index 7ca174c9095..41d6812fe8f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyCartsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for a given key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ *

Checks if a Cart exists with the provided key. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java index ab94e48df3c..3d161ca95bd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

+ *

Checks if an Order exists with the provided id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java index c1cc41304dd..81f7be3701d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyOrdersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if any Orders match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java index 132f66b73a6..4c499a72e9b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ *

Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java index ada4270078e..b6e2661ee9d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java index 1c1ae7840f5..22c3e3d20a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

+ *

Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java index 85a8849adb2..5666598758f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ *

Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java index 1082dea3e50..63b659ac976 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java index 8469370efab..c9e07dd60de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

+ *

Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsByIDHead.java index 8f935d2d78b..d620a8c21b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a ShoppingList exists for a given id. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.

+ *

Checks if a ShoppingList exists with the provided id. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsHead.java index 91612b4bda1..e7c4a56d78e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK if any ShoppingLists match the Query Predicate; otherwise, returns a ResourceNotFound error.

+ *

Checks if one or more ShoppingLists exist for the provided query predicate. Returns a 200 OK if any ShoppingLists match the Query Predicate; otherwise, returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsKeyByKeyHead.java index 3407e9b8e84..2621075a7e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAsAssociateByAssociateIdInBusinessUnitKeyByBusinessUnitKeyShoppingListsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a ShoppingList exists for a given key. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.

+ *

Checks if a ShoppingList exists with the provided key. Returns a 200 OK if the ShoppingList exists; otherwise, returns a ResourceNotFound error.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java index 6d9ee421d84..4206c493d1c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an AssociateRole exists for a given id. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.

+ *

Checks if an AssociateRole exists with the provided id. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java index 30dabebfa47..41fbdd80f50 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an AssociateRole exists for a given Query Predicate. Returns a 200 OK status if any AssociateRole match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more AssociateRoles exist for the provided query predicate. Returns a 200 OK status if any AssociateRole match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java index 481f5147dba..9bb0004bc51 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAssociateRolesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an AssociateRole exists for a given key. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.

+ *

Checks if an AssociateRole exists with the provided key. Returns a 200 OK status if the AssociateRole exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java index 564153e8a4a..d542081d8c0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an AttributeGroup exists for a given id. Returns a 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.

+ *

Checks if an AttributeGroup exists with the provided id. Returns a 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java index 0c037b0ee9c..cb52ae16641 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an AttributeGroup exists for a given Query Predicate. Returns 200 OK status if any AttributeGroups match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more AttributeGroups exist for the provided query predicate. Returns 200 OK status if any AttributeGroups match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java index a1faa732692..9639e5396f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyAttributeGroupsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an AttributeGroup exists for a given key. Returns 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.

+ *

Checks if an AttributeGroup exists with the provided key. Returns 200 OK status if the AttributeGroup exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java index 26f89b29569..dfc87e1d329 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ *

Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java index 5351bc78342..f627830ea02 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java index d2d00a4fd6a..a289d3c965c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyBusinessUnitsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ *

Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java index c4f1d94443d..4d3485c90f4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ *

Checks if a CartDiscount exists with the provided id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java index d0d1daef756..7ebb047a9ec 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CartDiscount exists for a given Query Predicate. Returns a 200 OK status if any CartDiscounts match the Query Predicate, or a 404 Not Found otherwise.

+ *

Checks if one or more CartDiscounts exist for the provided query predicate. Returns a 200 OK status if any CartDiscounts match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java index ff6e542c45d..a1a85df40c3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartDiscountsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CartDiscount exists for a given key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ *

Checks if a CartDiscount exists with the provided key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java index 1dac3d3b9ec..3226b9d3b5e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for the provided id. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ *

Checks if a Cart exists for the provided id. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java index b6012a67cc9..5c650a763bb 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsCustomerIdByCustomerIdHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for a Customer. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ *

Checks if a Cart exists for a Customer. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java index 40d3c9bb5c2..e1f3e7c57f3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Carts exist for the provided query predicate. Returns a 200 OK status if any Carts match the query predicate, or a 404 Not Found otherwise.

+ *

Checks if one or more Carts exist for the provided query predicate. Returns a 200 OK status if any Carts match the query predicate, or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java index b47e6e7ac58..f7e1ad4a5fa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCartsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for the provided key. Returns a 200 OK status if the Cart exists or a 404 Not Found otherwise.

+ *

Checks if a Cart exists with the provided key. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java index 560a4008612..0d3c0339e6c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Category exists for a given id. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.

+ *

Checks if a Category exists with the provided id. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java index 3bf53d3c98d..c11eb0f8292 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Category exists for on a given Query Predicate. Returns a 200 OK status if any Categories match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more Categories exist for the provided query predicate. Returns a 200 OK status if any Categories match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java index ce98448e1f1..208393c8b3d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCategoriesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Category exists for a given key. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.

+ *

Checks if a Category exists with the provided key. Returns a 200 OK status if the Category exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java index 4584a680752..ec585d35dc8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Channel exists for a given id. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.

+ *

Checks if a Channel exists with the provided id. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java index 2f70fec6328..4370c3b7242 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Channel exists for a given Query Predicate. Returns a 200 OK status if any Channels match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more Channels exist for the provided query predicate. Returns a 200 OK status if any Channels match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsKeyByKeyHead.java index 4d3a64e9cbc..e30881751de 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyChannelsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Channel exists for a given key. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.

+ *

Checks if a Channel exists with the provided key. Returns a 200 OK status if the Channel exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java index 7a712484ad3..c6926f18c78 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomObjectsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CustomObject exists for a given Query Predicate. Returns a 200 OK status if any CustomObjects match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more CustomObjects exist for the provided query predicate. Returns a 200 OK status if any CustomObjects match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java index 6df57654d82..3314b725e8a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CustomerGroup exists for a given id. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.

+ *

Checks if a CustomerGroup exists with the provided id. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java index d9f2f3b00da..383de234867 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CustomerGroup exists for a given Query Predicate. Returns a 200 OK status if any CustomerGroup match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more CustomerGroups exist for the provided query predicate. Returns a 200 OK status if any CustomerGroup match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java index 2211ff8dc18..3006d13145e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomerGroupsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CustomerGroup exists for a given key. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.

+ *

Checks if a CustomerGroup exists with the provided key. Returns a 200 OK status if the CustomerGroup exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java index 249ecbfc8df..e3e072286ca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Customer exists for a given id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ *

Checks if a Customer exists with the provided id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java index b06d10158ef..5c5d7d19661 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Customer exists for a given Query Predicate. Returns a 200 OK status if any Customers match the Query Predicate, or a 404 Not Found otherwise.

+ *

Checks if one or more Customers exist for the provided query predicate. Returns a 200 OK status if any Customers match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java index dd4fd4e925a..690a44dcbc5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyCustomersKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Customer exists for a given key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ *

Checks if a Customer exists with the provided key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java index 2d61170dec9..e6550813b23 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a DiscountCode exists for a given id. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.

+ *

Checks if a DiscountCode exists with the provided id. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java index ef7ed5fb500..aaf7acf6192 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a DiscountCode exists for a given Query Predicate. Returns a 200 OK status if any DiscountCodes match the Query Predicate, or a 404 Not Found otherwise.

+ *

Checks if one or more DiscountCodes exist for the provided query predicate. Returns a 200 OK status if any DiscountCodes match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesKeyByKeyHead.java index 38722fc67a2..871509cf212 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyDiscountCodesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a DiscountCode exists for a given key. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.

+ *

Checks if a DiscountCode exists with the provided key. Returns a 200 OK status if the DiscountCode exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java index ad235e8fc1c..1d39075a93a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an Extension exists for a given id. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.

+ *

Checks if an Extension exists with the provided id. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java index b23eeec43b9..b8448020083 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an Extension exists for a given Query Predicate. Returns a 200 OK status if any Extensions match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more Extensions exist for the provided query predicate. Returns a 200 OK status if any Extensions match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java index 8956be58a8b..b5efed0faa5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyExtensionsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an Extension exists for a given key. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.

+ *

Checks if an Extension exists with the provided key. Returns a 200 OK status if the Extension exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDHead.java index 26fce5d3373..098a6c342aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ *

Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsHead.java index f60d6e49e85..f7868bb175b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyHead.java index 1c29bbddf90..da6e6589c60 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

+ *

Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the BusinessUnit exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java index 04c40124bbd..3219f849a89 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CartDiscount exists for a given id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ *

Checks if a CartDiscount exists with the provided id. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java index 8989ea342c4..f09c88c5863 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CartDiscount exists for a given Query Predicate. Returns a 200 OK status if any CartDiscounts match the Query Predicate or a 404 Not Found otherwise.

+ *

Checks if one or more CartDiscounts exist for the provided query predicate. Returns a 200 OK status if any CartDiscounts match the query predicate, or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java index 45c27460546..fdbe2869ab9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartDiscountsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a CartDiscount exists for a given key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

+ *

Checks if a CartDiscount exists with the provided key. Returns a 200 OK status if the CartDiscount exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java index 7f3d6aaabfc..c72ecb33e6e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for the provided id in a Store. Returns a 200 OK status if the Cart exists or a ResourceNotFound error otherwise.

+ *

Checks if a Cart exists for the provided id in a Store. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java index e34df888d50..8e168665dff 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsCustomerIdByCustomerIdHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Carts exist for a Customer in a Store. Returns a 200 OK status if the Cart exists or a ResourceNotFound error otherwise.

+ *

Checks if one or more Carts exist for a Customer in a Store. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java index cc76a724f5e..478411af463 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if one or more Carts exist for the provided query predicate in a Store. Returns a 200 OK status if any Carts match the query predicate or a ResourceNotFound error otherwise.

+ *

Checks if one or more Carts exist for the provided query predicate in a Store. Returns a 200 OK status if any Carts match the query predicate, or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java index 57cff3cccb8..f7f4160e160 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCartsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for the provided key in a Store. Returns a 200 OK status if the Cart exists or a ResourceNotFound error otherwise.

+ *

Checks if a Cart exists with the provided key in a Store. Returns a 200 OK status if the Cart exists or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java index 2f2e0b50c14..8d9b5dff5ca 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Customer exists for a given id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ *

Checks if a Customer exists with the provided id. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java index c8d3feb51f4..ce0702ad47a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Customer exists for a given Query Predicate. Returns a 200 OK status if any Customers match the Query Predicate or a ResourceNotFound error otherwise.

+ *

Checks if one or more Customers exist for the provided query predicate. Returns a 200 OK status if any Customers match the query predicate, or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java index 46fed76806e..c8513bec2aa 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyCustomersKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Customer exists for a given key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

+ *

Checks if a Customer exists with the provided key. Returns a 200 OK status if the Customer exists or a 404 Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java index 585c8860c25..34ceaacfe93 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeCartsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching customerId or anonymousId. Returns a 200 OK status if any Carts match these conditions, or a ResourceNotFound error otherwise.

+ *

Checks if a Cart exists for a Store that matches the given Query Predicate, and contains a matching customerId or anonymousId. Returns a 200 OK status if any Carts match these conditions, or Not Found otherwise.

* *
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java index 7f2a10af53a..3616f3ee942 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

Checks if an Order exists for a given id in a Store. Returns a 200 OK status if successful.

+ *

Checks if an Order exists with the provided id in a Store. Returns a 200 OK status if successful.

*

A ResourceNotFound error is returned in the following scenarios:

*
    *
  • If no Order exists in the Store for the given id.
  • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java index 811bb94660b..a7750ee5fc1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeOrdersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

    Checks if an Order exists for a given Query Predicate in a Store. Returns a 200 OK status if successful.

    + *

    Checks if one or more Orders exist for the provided query predicate in a Store. Returns a 200 OK status if successful.

    *

    A ResourceNotFound error is returned in the following scenarios:

    *
      *
    • If no Orders exist in the Store that match the Query Predicate.
    • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java index 5bbb96bd4b9..798cf3ab312 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

      Checks if a ShoppingList exists for a given id in a Store. Returns a 200 OK status if successful.

      + *

      Checks if a ShoppingList exists with the provided id in a Store. Returns a 200 OK status if successful.

      *

      A ResourceNotFound error is returned in the following scenarios:

      *
        *
      • If no ShoppingList matches the given id in a Store.
      • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java index 7fde7860614..4f67d194bdc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyMeShoppingListsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

        Checks if a ShoppingList exists for a given key in a Store. Returns a 200 OK status if successful.

        + *

        Checks if a ShoppingList exists with the provided key in a Store. Returns a 200 OK status if successful.

        *

        A ResourceNotFound error is returned in the following scenarios:

        *
          *
        • If no ShoppingList exists that matches the given key in a Store.
        • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java index 18146b6c9fe..74c109ea3a4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a ResourceNotFound error otherwise.

          + *

          Checks if an Order exists with the provided id. Returns a 200 OK status if the Order exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java index bec5a646064..1ef90361b21 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a ResourceNotFound error otherwise.

          + *

          Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if any Orders match the query predicate, or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java index 7b2da2caad5..3730f617933 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyOrdersOrderNumberByOrderNumberHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or a ResourceNotFound error otherwise.

          + *

          Checks if an Order exists for a given orderNumber. Returns a 200 OK status if the Order exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java index 0ce2e02bee4..e3f63d23013 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if the current or staged representations of a Product exists for a given id in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

          + *

          Checks if the current or staged representations of a Product exists with the provided id in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java index b37b9f44966..b871716f3c8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyProductProjectionsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if the current or staged representations of a Product exists for a given key in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

          + *

          Checks if the current or staged representations of a Product exists with the provided key in the specified Store. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java index 9296ea56912..76d50e5e5ea 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

          + *

          Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java index f304fddbeca..7ec66b5003b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a ResourceNotFound error otherwise.

          + *

          Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java index 37a47dd1fab..4951d2eccad 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

          + *

          Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java index e784ea7760b..2119f4cafef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

          + *

          Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java index edfe0165dee..949121ec14b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a ResourceNotFound error otherwise.

          + *

          Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java index 1f584c65d10..74f4192d38b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

          + *

          Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java index 8e0776381f8..13804fcc3ae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a ResourceNotFound error otherwise.

          + *

          Checks if a ShoppingList exists with the provided id. Returns a 200 OK status if the ShoppingList exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java index c0820ee9594..3c1c81fa976 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a ResourceNotFound error otherwise.

          + *

          Checks if one or more ShoppingLists exist for the provided query predicate. Returns a 200 OK status if any ShoppingLists match the query predicate, or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java index f8cfebe6d8d..dc0a20cef20 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyShoppingListsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a ResourceNotFound error otherwise.

          + *

          Checks if a ShoppingList exists with the provided key. Returns a 200 OK status if the ShoppingList exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java index ed76fd70b63..ac2f8eb081c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a StagedQuote exists for a given id. Returns a 200 OK status if the StagedQuote exists or a ResourceNotFound error otherwise.

          + *

          Checks if a StagedQuote exists with the provided id. Returns a 200 OK status if the StagedQuote exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java index 76021ec9491..b40dd99c020 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK status if any StagedQuotes match the Query Predicate or a ResourceNotFound error otherwise.

          + *

          Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 OK status if any StagedQuotes match the query predicate, or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java index c86338da4af..aa54d720b65 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInStoreKeyByStoreKeyStagedQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a StagedQuote exists for a given key. Returns a 200 OK status if the StagedQuote exists or a ResourceNotFound error otherwise.

          + *

          Checks if a StagedQuote exists with the provided key. Returns a 200 OK status if the StagedQuote exists or Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java index 3a91cdbcd41..21acddafa06 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an InventoryEntry exists for a given id. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.

          + *

          Checks if an InventoryEntry exists with the provided id. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java index 89b7de22680..127f45b6173 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an InventoryEntry exists for a given Query Predicate. Returns a 200 OK status if any Inventory Entries match the Query Predicate, a 404 Not Found otherwise.

          + *

          Checks if one or more InventoryEntries exist for the provided query predicate. Returns a 200 OK status if any Inventory Entries match the Query Predicate, a 404 Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java index b9385c6d67b..f02b8ed5d33 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyInventoryKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an InventoryEntry exists for a given key. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.

          + *

          Checks if an InventoryEntry exists with the provided key. Returns a 200 OK status if the InventoryEntry exists or a 404 Not Found otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java index 1a5fa82f414..8a8d9040e60 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a BusinessUnit exists for a given id. Returns a 200 OK status if the BusinessUnit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

          + *

          Checks if a BusinessUnit exists with the provided id. Returns a 200 OK status if the BusinessUnit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java index d349f195c9e..f06244f33e5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a BusinessUnit exists for a given Query Predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate and the Customer has access to them, or a ResourceNotFound error otherwise.

          + *

          Checks if one or more BusinessUnits exist for the provided query predicate. Returns a 200 OK status if any BusinessUnits match the Query Predicate and the Customer has access to them, or a ResourceNotFound error otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java index 4817cb1f71f..b15852880f6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeBusinessUnitsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a BusinessUnit exists for a given key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

          + *

          Checks if a BusinessUnit exists with the provided key. Returns a 200 OK status if the Business Unit exists and the Customer has access to it, or a ResourceNotFound error otherwise.

          * *
          *
          diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDDelete.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDDelete.java index b1639dd0e63..c240f5c80a5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDDelete.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDDelete.java @@ -23,7 +23,7 @@ *

          Deletes the Cart for a given id. Returns a 200 OK status if successful.

          *

          A ResourceNotFound error is returned in the following scenarios:

          *
            - *
          • If no Cart exists for a given id.
          • + *
          • If no Cart exists with the provided id.
          • *
          • If the Cart exists but does not have a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.
          • *
          * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDGet.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDGet.java index fac45e2d87c..b0bfe53c916 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDGet.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDGet.java @@ -23,7 +23,7 @@ *

          Returns a Cart for a given id. Returns a 200 OK status if successful.

          *

          A ResourceNotFound error is returned in the following scenarios:

          *
            - *
          • If no Cart exists for a given id.
          • + *
          • If no Cart exists with the provided id.
          • *
          • If the Cart exists but does not have a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.
          • *
          * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java index 554b56ae8a6..c9420d5308a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDHead.java @@ -16,10 +16,10 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if a Cart exists for a given id. Returns a 200 OK status if the Cart exists.

          + *

          Checks if a Cart exists with the provided id. Returns a 200 OK status if the Cart exists.

          *

          A ResourceNotFound error is returned in the following scenarios:

          *
            - *
          • If no Cart exists for a given id.
          • + *
          • If no Cart exists with the provided id.
          • *
          • If the Cart exists but does not have a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.
          • *
          * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPost.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPost.java index 0af34f5ca54..094b48d6aae 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPost.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPost.java @@ -23,7 +23,7 @@ *

          Updates the Cart for a given id. Returns a 200 OK status if successful.

          *

          A ResourceNotFound error is returned in the following scenarios:

          *
            - *
          • If no Cart exists for a given id.
          • + *
          • If no Cart exists with the provided id.
          • *
          • If the Cart exists but does not have a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.
          • *
          * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPostString.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPostString.java index 161f8c961ba..366a575299b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPostString.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeCartsByIDPostString.java @@ -24,7 +24,7 @@ *

          Updates the Cart for a given id. Returns a 200 OK status if successful.

          *

          A ResourceNotFound error is returned in the following scenarios:

          *
            - *
          • If no Cart exists for a given id.
          • + *
          • If no Cart exists with the provided id.
          • *
          • If the Cart exists but does not have a customerId that matches the customer:{id} scope, or anonymousId that matches the anonymous_id:{id} scope.
          • *
          * diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java index a0bb2b415bf..d8cf16204b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

          Checks if an Order exists for a given id. Returns a 200 OK status if successful.

          + *

          Checks if an Order exists with the provided id. Returns a 200 OK status if successful.

          *

          A ResourceNotFound error is returned in the following scenarios:

          *
            *
          • If no Order exists for the given id.
          • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java index 1091006dccd..4d4b44a83d6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeOrdersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

            Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if successful.

            + *

            Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if successful.

            *

            A ResourceNotFound error is returned in the following scenarios:

            *
              *
            • If no Order exists that matches the Query Predicate.
            • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java index 62863194b2d..d358f2cd604 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a Payment exists for a given id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

              + *

              Checks if a Payment exists with the provided id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java index 12a8c4df8a9..50b83a0b240 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMePaymentsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.

              + *

              Checks if a Payment exists for the provided query predicate. Returns a 200 OK status if any Payments match the query predicate, or a 404 Not Found otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java index 2d2d9054ffd..8b9f5f530f7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

              + *

              Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java index f139c3b941c..0fea5c5772c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a ResourceNotFound error otherwise.

              + *

              Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a ResourceNotFound error otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java index 5ea7f39e3f0..21cb4f5a3d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

              + *

              Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or a ResourceNotFound error otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java index f8e65333d15..17de12ec928 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

              + *

              Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java index b78c3f8cb92..6afe6746dfc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a ResourceNotFound error otherwise.

              + *

              Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a ResourceNotFound error otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java index 2264cd1d9bb..cf92e9a40a5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

              + *

              Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or a ResourceNotFound error otherwise.

              * *
              *
              diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java index e46269cd50a..1d7339b4000 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

              Checks if a ShoppingList exists for a given id. Returns a 200 OK status if successful.

              + *

              Checks if a ShoppingList exists with the provided id. Returns a 200 OK status if successful.

              *

              A ResourceNotFound error is returned in the following scenarios:

              *
                *
              • If no ShoppingList exists for the given id.
              • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java index 13e47cf165d..ebb00cb0374 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMeShoppingListsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                Checks if a ShoppingList exists for a given key. Returns a 200 OK status if successful.

                + *

                Checks if a ShoppingList exists with the provided key. Returns a 200 OK status if successful.

                *

                A ResourceNotFound error is returned in the following scenarios:

                *
                  *
                • If no ShoppingList exists for the given key.
                • diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java index ea661334ec8..2eb1156f02e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Message exists for a given id. Returns a 200 OK status if the Message exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Message exists with the provided id. Returns a 200 OK status if the Message exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java index 18e2976f3aa..21f8831e3a3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyMessagesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Message exists for a given Query Predicate. Returns a 200 OK status if any Messages match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Messages exist for the provided query predicate. Returns a 200 OK status if any Messages match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java index 4c0776724f6..39b52b26fb9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if an Order exists for a given id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

                  + *

                  Checks if an Order exists with the provided id. Returns a 200 OK status if the Order exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java index 8e513b88b07..708da8c0af1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if an OrderEdit exists for a given id. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.

                  + *

                  Checks if an OrderEdit exists with the provided id. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java index 6436ee7699e..2e8f749f66b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if an OrderEdit exists for a given Query Predicate. Returns a 200 OK status if any OrderEdits match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more OrderEdits exist for the provided query predicate. Returns a 200 OK status if any OrderEdits match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java index ddc3f3cf96e..336aac3f57a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersEditsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if an OrderEdit exists for a given key. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.

                  + *

                  Checks if an OrderEdit exists with the provided key. Returns a 200 OK status if the OrderEdit exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java index 1fc7b3d0413..9c7eadab0b1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyOrdersHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if an Order exists for a given Query Predicate. Returns a 200 OK status if any Orders match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Orders exist for the provided query predicate. Returns a 200 OK status if any Orders match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java index f411c6ee40e..24c9a706fb2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Payment exists for a given id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Payment exists with the provided id. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java index cbf464ffeb2..0fb08c6629a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Payment exists for a given Query Predicate. Returns a 200 OK status if any Payments match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Payments exist for the provided query predicate. Returns a 200 OK status if any Payments match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java index d9a6cf3a34a..c35dffa48cc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyPaymentsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Payment exists for a given key. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Payment exists with the provided key. Returns a 200 OK status if the Payment exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java index cfae2a6f0ab..4c1d7b130a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductDiscount exists for a given id. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ProductDiscount exists with the provided id. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java index 1f474565ef9..931eccb6ef8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductDiscount exists for a given Query Predicate. Returns a 200 OK status if any ProductDiscounts match the Query Predicate, or a 404 Not Found otherwise.

                  + *

                  Checks if one or more ProductDiscounts exist for the provided query predicate. Returns a 200 OK status if any ProductDiscounts match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java index a3ced9fe6fb..1bb6c79eaa2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductDiscountsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductDiscount exists for a given key. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ProductDiscount exists with the provided key. Returns a 200 OK status if the ProductDiscount exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java index 83c37b96daa..d255fa1048f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if the current or staged representation of a Product exists for a given id. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

                  + *

                  Checks if the current or staged representation of a Product exists with the provided id. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java index eac29dd2bb3..e8389a83180 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if the current or staged representation of a Product exists for a given Query Predicate. Returns a 200 OK status if any ProductProjections match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if the current or staged representation of a Product exists for the provided query predicate. Returns a 200 OK status if any ProductProjections match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java index f72ec0233b2..0ff72e707c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductProjectionsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if the current or staged representation of a Product exists for a given key. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

                  + *

                  Checks if the current or staged representation of a Product exists with the provided key. Returns a 200 OK status if the ProductProjection exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java index b276f8e47a5..95216fff060 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductSelection exists for a given id. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ProductSelection exists with the provided id. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java index 03ce14d169a..622da413802 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductSelection exists for a given Query Predicate. Returns a 200 OK status if any ProductSelections match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more ProductSelections exist for the provided query predicate. Returns a 200 OK status if any ProductSelections match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java index d0fe1a8138c..a469a3c68b9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductSelectionsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductSelection exists for a given key. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ProductSelection exists with the provided key. Returns a 200 OK status if the ProductSelection exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTailoringHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTailoringHead.java index 2e0c8f77a0a..e431f4c54e8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTailoringHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTailoringHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductTailoring exists for a given Query Predicate. Returns a 200 OK status if any ProductTailoring match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more ProductTailorings exist for the provided query predicate. Returns a 200 OK status if any ProductTailoring match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java index 00dacc03f82..88f86392f0b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductType exists for a given id. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ProductType exists with the provided id. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java index 148427ba83e..48f52f2d5d3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductType exists for a given Query Predicate. Returns a 200 OK status if any ProductTypes match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more ProductTypes exist for the provided query predicate. Returns a 200 OK status if any ProductTypes match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java index d7f868a9718..c8c43ddd20d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductTypesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ProductType exists for a given key. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ProductType exists with the provided key. Returns a 200 OK status if the ProductType exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java index 19fee198556..3619ea25013 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Product exists for a given id. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Product exists with the provided id. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java index a91c86119cf..9d47f25a266 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Product exists for a given Query Predicate. Returns a 200 OK status if any Products match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Products exist for the provided query predicate. Returns a 200 OK status if any Products match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java index 643ecabd498..bb8e2ddb719 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyProductsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Product exists for a given key. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Product exists with the provided key. Returns a 200 OK status if the Product exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java index 84fdf7c08c8..420fd48c4a9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a QuoteRequest exists for a given id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

                  + *

                  Checks if a QuoteRequest exists with the provided id. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java index 54d5182294d..d2b3c4b9877 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a QuoteRequest exists for a given Query Predicate. Returns a 200 OK status if any QuoteRequests match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more QuoteRequests exist for the provided query predicate. Returns a 200 OK status if any QuoteRequests match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java index 230ff7fdc08..d0473fed18e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuoteRequestsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a QuoteRequest exists for a given key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

                  + *

                  Checks if a QuoteRequest exists with the provided key. Returns a 200 OK status if the QuoteRequest exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java index 72500f2290e..f48bc4b1e69 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Quote exists for a given id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Quote exists with the provided id. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java index 018b4588b0a..6b0d09afc71 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Quote exists for a given Query Predicate. Returns a 200 OK status if any Quotes match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Quotes exist for the provided query predicate. Returns a 200 OK status if any Quotes match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java index bf52f1c2965..a20ab771653 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Quote exists for a given key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Quote exists with the provided key. Returns a 200 OK status if the Quote exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java index 196d58a064a..2e484f09fdf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Review exists for a given id. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Review exists with the provided id. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java index 6b4f09adc1d..4cb1d892781 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Review exists for a given Query Predicate. Returns a 200 OK status if any Reviews match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Reviews exist for the provided query predicate. Returns a 200 OK status if any Reviews match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java index def9b563352..3af934cde96 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyReviewsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Review exists for a given key. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Review exists with the provided key. Returns a 200 OK status if the Review exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java index 0160e013647..cb44b22bf8b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ShippingMethod exists for a given id. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ShippingMethod exists with the provided id. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java index 2012c41929c..3f893af2b72 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ShippingMethod exists for a given Query Predicate. Returns a 200 OK status if any ShippingMethods match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more ShippingMethods exist for the provided query predicate. Returns a 200 OK status if any ShippingMethods match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java index 9e28189f0b9..571a8cbc0d9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShippingMethodsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ShippingMethod exists for a given key. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ShippingMethod exists with the provided key. Returns a 200 OK status if the ShippingMethod exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java index c1c52cc1871..9ffe2e49b29 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ShoppingList exists for a given id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ShoppingList exists with the provided id. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java index e16b9685b92..76d5d65b5a8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ShoppingList exists for a given Query Predicate. Returns a 200 OK status if any ShoppingLists match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more ShoppingLists exist for the provided query predicate. Returns a 200 OK status if any ShoppingLists match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java index e3fb2a76259..5651995ce0f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyShoppingListsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a ShoppingList exists for a given key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

                  + *

                  Checks if a ShoppingList exists with the provided key. Returns a 200 OK status if the ShoppingList exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java index 4a2caacff2e..045fa24c828 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a StagedQuote exists for a given id. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.

                  + *

                  Checks if a StagedQuote exists with the provided id. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java index 660b01ad757..862cabcf71b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a StagedQuote exists for a given Query Predicate. Returns a 200 OK status if any StagedQuotes match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more StagedQuotes exist for the provided query predicate. Returns a 200 OK status if any StagedQuotes match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java index 9f90ea6b202..de0e1110518 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStagedQuotesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a StagedQuote exists for a given key. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.

                  + *

                  Checks if a StagedQuote exists with the provided key. Returns a 200 OK status if the StagedQuote exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java index e568dc0e858..d4841b57bc2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a StandalonePrice exists for a given id. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.

                  + *

                  Checks if a StandalonePrice exists with the provided id. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java index 17006a4dd18..5a52746b9a5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a StandalonePrice exists for a given Query Predicate. Returns a 200 OK status if any StandalonePrices match the Query Predicate, or a 404 Not Found otherwise.

                  + *

                  Checks if one or more StandalonePrices exist for the provided query predicate. Returns a 200 OK status if any StandalonePrices match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java index 54cbb08f5c5..73eecd216fc 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStandalonePricesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a StandalonePrice exists for a given key. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.

                  + *

                  Checks if a StandalonePrice exists with the provided key. Returns a 200 OK status if the StandalonePrice exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java index 1aa2ef9308e..daf95340558 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a State exists for a given id. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.

                  + *

                  Checks if a State exists with the provided id. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java index 03b1294969f..3c0a7ae9a17 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a State exists for a given Query Predicate. Returns a 200 OK status if any States match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more States exist for the provided query predicate. Returns a 200 OK status if any States match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java index 6156282b0e7..f6890c79d3c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStatesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a State exists for a given key. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.

                  + *

                  Checks if a State exists with the provided key. Returns a 200 OK status if the State exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java index 78d97bea2e8..f99f60d43ee 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Store exists for a given id. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Store exists with the provided id. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java index f1b83effed0..859ca080540 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Store exists for a given Query Predicate. Returns a 200 OK status if any Stores match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Stores exist for the provided query predicate. Returns a 200 OK status if any Stores match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java index ef36f781d64..65e874a48f2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyStoresKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Store exists for a given key. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Store exists with the provided key. Returns a 200 OK status if the Store exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java index 138eda1fec4..3518d6bfe8e 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Subscription exists for a given id. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Subscription exists with the provided id. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java index fd7c39b52d2..be0afac6e51 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Subscription exists for a given Query Predicate. Returns a 200 OK status if any Subscriptions match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Subscriptions exist for the provided query predicate. Returns a 200 OK status if any Subscriptions match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java index 8e0b969ee4f..049e4118893 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeySubscriptionsKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Subscription exists for a given key. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Subscription exists with the provided key. Returns a 200 OK status if the Subscription exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java index 3a3b7442e7d..4af20b5e92b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a TaxCategory exists for a given id. Returns a 200 OK status if the TaxCategory exists or a 404 Not Found otherwise.

                  + *

                  Checks if a TaxCategory exists with the provided id. Returns a 200 OK status if the TaxCategory exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java index 60e6422daac..e526140cc65 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a TaxCategory exists for a given Query Predicate. Returns a 200 OK status if any TaxCategories match the Query Predicate, or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Tax Categories exist for the provided query predicate. Returns a 200 OK status if any TaxCategories match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java index f552a420234..5083e1ae2cf 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTaxCategoriesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a TaxCategory exists for a given key. Returns a 200 OK status if the Tax Category exists or a 404 Not Found otherwise.

                  + *

                  Checks if a TaxCategory exists with the provided key. Returns a 200 OK status if the Tax Category exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java index d85d819f55c..d827f91d565 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Type exists for a given id. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Type exists with the provided id. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java index 5f5cfa25bf0..28d19ae2ebe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Type exists for a given Query Predicate. Returns a 200 OK status if any Types match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Types exist for the provided query predicate. Returns a 200 OK status if any Types match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java index ad6dde06c96..b78b2dd5bc3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyTypesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Type exists for a given key. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Type exists with the provided key. Returns a 200 OK status if the Type exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java index 01da1b45f1f..ffd633ce533 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesByIDHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Zone exists for a given id. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Zone exists with the provided id. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java index 97afeb21a88..6d3430c639d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesHead.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Zone exists for a given Query Predicate. Returns a 200 OK status if any Zones match the Query Predicate or a 404 Not Found otherwise.

                  + *

                  Checks if one or more Zones exist for the provided query predicate. Returns a 200 OK status if any Zones match the query predicate, or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java index 5e99f9ec8a0..ef29d8b1a6c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/client/ByProjectKeyZonesKeyByKeyHead.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Checks if a Zone exists for a given key. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.

                  + *

                  Checks if a Zone exists with the provided key. Returns a 200 OK status if the Zone exists or a 404 Not Found otherwise.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitAction.java index eb99b554b87..4abe7c3fbc0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitAction.java @@ -16,7 +16,7 @@ import jakarta.validation.constraints.NotNull; /** - *

                  Changing the parent of a Business Unit generates a BusinessUnitParentChanged Message.

                  + *

                  This action generates a BusinessUnitParentChanged Message.

                  * *
                  * Example to create an instance using the builder pattern @@ -38,7 +38,8 @@ public interface BusinessUnitChangeParentUnitAction extends BusinessUnitUpdateAc String CHANGE_PARENT_UNIT = "changeParentUnit"; /** - *

                  New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  * @return parentUnit */ @NotNull @@ -47,7 +48,8 @@ public interface BusinessUnitChangeParentUnitAction extends BusinessUnitUpdateAc public BusinessUnitResourceIdentifier getParentUnit(); /** - *

                  New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  * @param parentUnit value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionBuilder.java index 9c77ea3f343..7a516f07ed2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionBuilder.java @@ -25,7 +25,8 @@ public class BusinessUnitChangeParentUnitActionBuilder implements BuilderNew parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  * @param builder function to build the parentUnit value * @return Builder */ @@ -39,7 +40,8 @@ public BusinessUnitChangeParentUnitActionBuilder parentUnit( } /** - *

                  New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  * @param builder function to build the parentUnit value * @return Builder */ @@ -52,7 +54,8 @@ public BusinessUnitChangeParentUnitActionBuilder withParentUnit( } /** - *

                  New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  * @param parentUnit value to be set * @return Builder */ @@ -64,7 +67,8 @@ public BusinessUnitChangeParentUnitActionBuilder parentUnit( } /** - *

                  New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  * @return parentUnit */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionImpl.java index 79cc1c3bdfa..0ba4b01e9f1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitChangeParentUnitActionImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

                  Changing the parent of a Business Unit generates a BusinessUnitParentChanged Message.

                  + *

                  This action generates a BusinessUnitParentChanged Message.

                  */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class BusinessUnitChangeParentUnitActionImpl implements BusinessUnitChangeParentUnitAction, ModelBase { @@ -52,7 +52,8 @@ public String getAction() { } /** - *

                  New parent unit of the Business Unit. The new parent unit must have the same top-level unit as the old parent unit.

                  + *

                  New parent unit of the Business Unit. It must be associated with the same Stores, as the old parent unit.

                  + *

                  The Business Unit inheritedAssociates and inheritedStores field values will be eventually consistent.

                  */ public com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier getParentUnit() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeAction.java new file mode 100644 index 00000000000..a4bcd8c7941 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeAction.java @@ -0,0 +1,148 @@ + +package com.commercetools.api.models.business_unit; + +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.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  This action generates a BusinessUnitTypeSet Message.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitSetUnitTypeAction businessUnitSetUnitTypeAction = BusinessUnitSetUnitTypeAction.builder()
                  + *             .unitType(BusinessUnitType.COMPANY)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitSetUnitTypeActionImpl.class) +public interface BusinessUnitSetUnitTypeAction extends BusinessUnitUpdateAction { + + /** + * discriminator value for BusinessUnitSetUnitTypeAction + */ + String SET_UNIT_TYPE = "setUnitType"; + + /** + *

                  New type of the Business Unit.

                  + *

                  If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.

                  + * @return unitType + */ + @NotNull + @JsonProperty("unitType") + public BusinessUnitType getUnitType(); + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + * @return parentUnit + */ + @Valid + @JsonProperty("parentUnit") + public BusinessUnitResourceIdentifier getParentUnit(); + + /** + *

                  New type of the Business Unit.

                  + *

                  If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.

                  + * @param unitType value to be set + */ + + public void setUnitType(final BusinessUnitType unitType); + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + * @param parentUnit value to be set + */ + + public void setParentUnit(final BusinessUnitResourceIdentifier parentUnit); + + /** + * factory method + * @return instance of BusinessUnitSetUnitTypeAction + */ + public static BusinessUnitSetUnitTypeAction of() { + return new BusinessUnitSetUnitTypeActionImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitSetUnitTypeAction + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitSetUnitTypeAction of(final BusinessUnitSetUnitTypeAction template) { + BusinessUnitSetUnitTypeActionImpl instance = new BusinessUnitSetUnitTypeActionImpl(); + instance.setUnitType(template.getUnitType()); + instance.setParentUnit(template.getParentUnit()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitSetUnitTypeAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitSetUnitTypeAction deepCopy(@Nullable final BusinessUnitSetUnitTypeAction template) { + if (template == null) { + return null; + } + BusinessUnitSetUnitTypeActionImpl instance = new BusinessUnitSetUnitTypeActionImpl(); + instance.setUnitType(template.getUnitType()); + instance.setParentUnit(com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier + .deepCopy(template.getParentUnit())); + return instance; + } + + /** + * builder factory method for BusinessUnitSetUnitTypeAction + * @return builder + */ + public static BusinessUnitSetUnitTypeActionBuilder builder() { + return BusinessUnitSetUnitTypeActionBuilder.of(); + } + + /** + * create builder for BusinessUnitSetUnitTypeAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSetUnitTypeActionBuilder builder(final BusinessUnitSetUnitTypeAction template) { + return BusinessUnitSetUnitTypeActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitSetUnitTypeAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionBuilder.java new file mode 100644 index 00000000000..669b3509278 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionBuilder.java @@ -0,0 +1,141 @@ + +package com.commercetools.api.models.business_unit; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitSetUnitTypeActionBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitSetUnitTypeAction businessUnitSetUnitTypeAction = BusinessUnitSetUnitTypeAction.builder()
                  + *             .unitType(BusinessUnitType.COMPANY)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSetUnitTypeActionBuilder implements Builder { + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + @Nullable + private com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit; + + /** + *

                  New type of the Business Unit.

                  + *

                  If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.

                  + * @param unitType value to be set + * @return Builder + */ + + public BusinessUnitSetUnitTypeActionBuilder unitType( + final com.commercetools.api.models.business_unit.BusinessUnitType unitType) { + this.unitType = unitType; + return this; + } + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + * @param builder function to build the parentUnit value + * @return Builder + */ + + public BusinessUnitSetUnitTypeActionBuilder parentUnit( + Function builder) { + this.parentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder.of()) + .build(); + return this; + } + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + * @param builder function to build the parentUnit value + * @return Builder + */ + + public BusinessUnitSetUnitTypeActionBuilder withParentUnit( + Function builder) { + this.parentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierBuilder.of()); + return this; + } + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + * @param parentUnit value to be set + * @return Builder + */ + + public BusinessUnitSetUnitTypeActionBuilder parentUnit( + @Nullable final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit) { + this.parentUnit = parentUnit; + return this; + } + + /** + *

                  New type of the Business Unit.

                  + *

                  If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.

                  + * @return unitType + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getUnitType() { + return this.unitType; + } + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + * @return parentUnit + */ + + @Nullable + public com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier getParentUnit() { + return this.parentUnit; + } + + /** + * builds BusinessUnitSetUnitTypeAction with checking for non-null required values + * @return BusinessUnitSetUnitTypeAction + */ + public BusinessUnitSetUnitTypeAction build() { + Objects.requireNonNull(unitType, BusinessUnitSetUnitTypeAction.class + ": unitType is missing"); + return new BusinessUnitSetUnitTypeActionImpl(unitType, parentUnit); + } + + /** + * builds BusinessUnitSetUnitTypeAction without checking for non-null required values + * @return BusinessUnitSetUnitTypeAction + */ + public BusinessUnitSetUnitTypeAction buildUnchecked() { + return new BusinessUnitSetUnitTypeActionImpl(unitType, parentUnit); + } + + /** + * factory method for an instance of BusinessUnitSetUnitTypeActionBuilder + * @return builder + */ + public static BusinessUnitSetUnitTypeActionBuilder of() { + return new BusinessUnitSetUnitTypeActionBuilder(); + } + + /** + * create builder for BusinessUnitSetUnitTypeAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitSetUnitTypeActionBuilder of(final BusinessUnitSetUnitTypeAction template) { + BusinessUnitSetUnitTypeActionBuilder builder = new BusinessUnitSetUnitTypeActionBuilder(); + builder.unitType = template.getUnitType(); + builder.parentUnit = template.getParentUnit(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionImpl.java new file mode 100644 index 00000000000..29fc0e0fdde --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionImpl.java @@ -0,0 +1,116 @@ + +package com.commercetools.api.models.business_unit; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  This action generates a BusinessUnitTypeSet Message.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitSetUnitTypeActionImpl implements BusinessUnitSetUnitTypeAction, ModelBase { + + private String action; + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + private com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitSetUnitTypeActionImpl( + @JsonProperty("unitType") final com.commercetools.api.models.business_unit.BusinessUnitType unitType, + @JsonProperty("parentUnit") final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit) { + this.unitType = unitType; + this.parentUnit = parentUnit; + this.action = SET_UNIT_TYPE; + } + + /** + * create empty instance + */ + public BusinessUnitSetUnitTypeActionImpl() { + this.action = SET_UNIT_TYPE; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

                  New type of the Business Unit.

                  + *

                  If unitType="Company", the Business Unit storeMode, associateMode, and approvalRuleMode field values must be Explicit.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getUnitType() { + return this.unitType; + } + + /** + *

                  New parent unit for the Business Unit, if unitType="Division".

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier getParentUnit() { + return this.parentUnit; + } + + public void setUnitType(final com.commercetools.api.models.business_unit.BusinessUnitType unitType) { + this.unitType = unitType; + } + + public void setParentUnit( + final com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifier parentUnit) { + this.parentUnit = parentUnit; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitSetUnitTypeActionImpl that = (BusinessUnitSetUnitTypeActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(unitType, that.unitType) + .append(parentUnit, that.parentUnit) + .append(action, that.action) + .append(unitType, that.unitType) + .append(parentUnit, that.parentUnit) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(unitType).append(parentUnit).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("unitType", unitType) + .append("parentUnit", parentUnit) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java index 092e5dc1462..98e523e0a0d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateAction.java @@ -54,7 +54,8 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitSetDefaultBillingAddressActionImpl.class, name = BusinessUnitSetDefaultBillingAddressAction.SET_DEFAULT_BILLING_ADDRESS), @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitSetDefaultShippingAddressActionImpl.class, name = BusinessUnitSetDefaultShippingAddressAction.SET_DEFAULT_SHIPPING_ADDRESS), @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitSetStoreModeActionImpl.class, name = BusinessUnitSetStoreModeAction.SET_STORE_MODE), - @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitSetStoresActionImpl.class, name = BusinessUnitSetStoresAction.SET_STORES) }) + @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitSetStoresActionImpl.class, name = BusinessUnitSetStoresAction.SET_STORES), + @JsonSubTypes.Type(value = com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeActionImpl.class, name = BusinessUnitSetUnitTypeAction.SET_UNIT_TYPE) }) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "action", defaultImpl = BusinessUnitUpdateActionImpl.class, visible = true) @JsonDeserialize(as = BusinessUnitUpdateActionImpl.class) @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") @@ -187,6 +188,10 @@ public static BusinessUnitUpdateAction deepCopy(@Nullable final BusinessUnitUpda return com.commercetools.api.models.business_unit.BusinessUnitSetStoresAction .deepCopy((com.commercetools.api.models.business_unit.BusinessUnitSetStoresAction) template); } + if (template instanceof com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeAction) { + return com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeAction + .deepCopy((com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeAction) template); + } BusinessUnitUpdateActionImpl instance = new BusinessUnitUpdateActionImpl(); return instance; } @@ -407,6 +412,14 @@ public static com.commercetools.api.models.business_unit.BusinessUnitSetStoresAc return com.commercetools.api.models.business_unit.BusinessUnitSetStoresActionBuilder.of(); } + /** + * builder for setUnitType subtype + * @return builder + */ + public static com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeActionBuilder setUnitTypeBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeActionBuilder.of(); + } + /** * accessor map function * @param mapped type diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java index 18fc6c89883..ed7c45eb2e4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitUpdateActionBuilder.java @@ -119,6 +119,10 @@ public com.commercetools.api.models.business_unit.BusinessUnitSetStoresActionBui return com.commercetools.api.models.business_unit.BusinessUnitSetStoresActionBuilder.of(); } + public com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeActionBuilder setUnitTypeBuilder() { + return com.commercetools.api.models.business_unit.BusinessUnitSetUnitTypeActionBuilder.of(); + } + /** * factory method for an instance of BusinessUnitUpdateActionBuilder * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraft.java index f4caf14daf9..e24e3eb075a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraft.java @@ -74,7 +74,7 @@ public interface CartDraft extends com.commercetools.api.models.CustomizableDraf /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  * @return customerGroup */ @Valid @@ -313,7 +313,7 @@ public interface CartDraft extends com.commercetools.api.models.CustomizableDraf /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  * @param customerGroup value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftBuilder.java index 36315e37551..ea24117d0ec 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftBuilder.java @@ -156,7 +156,7 @@ public CartDraftBuilder customerEmail(@Nullable final String customerEmail) { /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  * @param builder function to build the customerGroup value * @return Builder */ @@ -171,7 +171,7 @@ public CartDraftBuilder customerGroup( /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  * @param builder function to build the customerGroup value * @return Builder */ @@ -185,7 +185,7 @@ public CartDraftBuilder withCustomerGroup( /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  * @param customerGroup value to be set * @return Builder */ @@ -1139,7 +1139,7 @@ public String getCustomerEmail() { /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  * @return customerGroup */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftImpl.java index 5a8c3a60e28..8717eaaee5c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart/CartDraftImpl.java @@ -182,7 +182,7 @@ public String getCustomerEmail() { /** *

                  ResourceIdentifier to the Customer Group of the Customer that the Cart belongs to. Used for Line Item price selection.

                  - *

                  It is automatically set if the Customer referenced in customerId belongs to a Customer Group. It can also be set explicitly when no customerId is present.

                  + *

                  You can set either a customerId or a customerGroup. If the Customer referenced in customerId belongs to a Customer Group then customerGroup is set automatically.

                  */ public com.commercetools.api.models.customer_group.CustomerGroupResourceIdentifier getCustomerGroup() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEvent.java new file mode 100644 index 00000000000..1826d5bd418 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEvent.java @@ -0,0 +1,217 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Base representation of an Event containing common fields to all Event Types.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BaseEvent baseEvent = BaseEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .type(EventType.IMPORT_CONTAINER_CREATED)
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BaseEventImpl.class) +public interface BaseEvent { + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + * + * @return notificationType + */ + @NotNull + @JsonProperty("notificationType") + public String getNotificationType(); + + /** + *

                  The type of resource targeted by the Event.

                  + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  The type of Event that has occurred.

                  + * @return type + */ + @NotNull + @JsonProperty("type") + public EventType getType(); + + /** + *

                  An object containing details related to the Event.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public Object getData(); + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + * set notificationType + * @param notificationType value to be set + */ + + public void setNotificationType(final String notificationType); + + /** + *

                  The type of resource targeted by the Event.

                  + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  The type of Event that has occurred.

                  + * @param type value to be set + */ + + public void setType(final EventType type); + + /** + *

                  An object containing details related to the Event.

                  + * @param data value to be set + */ + + public void setData(final Object data); + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + * factory method + * @return instance of BaseEvent + */ + public static BaseEvent of() { + return new BaseEventImpl(); + } + + /** + * factory method to create a shallow copy BaseEvent + * @param template instance to be copied + * @return copy instance + */ + public static BaseEvent of(final BaseEvent template) { + BaseEventImpl instance = new BaseEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setType(template.getType()); + instance.setData(template.getData()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * factory method to create a deep copy of BaseEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BaseEvent deepCopy(@Nullable final BaseEvent template) { + if (template == null) { + return null; + } + BaseEventImpl instance = new BaseEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setType(template.getType()); + instance.setData(template.getData()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * builder factory method for BaseEvent + * @return builder + */ + public static BaseEventBuilder builder() { + return BaseEventBuilder.of(); + } + + /** + * create builder for BaseEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BaseEventBuilder builder(final BaseEvent template) { + return BaseEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBaseEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventBuilder.java new file mode 100644 index 00000000000..64073c9d63b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventBuilder.java @@ -0,0 +1,208 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BaseEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BaseEvent baseEvent = BaseEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .type(EventType.IMPORT_CONTAINER_CREATED)
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BaseEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.lang.Object data; + + private java.time.ZonedDateTime createdAt; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public BaseEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public BaseEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + *

                  The type of resource targeted by the Event.

                  + * @param resourceType value to be set + * @return Builder + */ + + public BaseEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  The type of Event that has occurred.

                  + * @param type value to be set + * @return Builder + */ + + public BaseEventBuilder type(final com.commercetools.api.models.subscription.EventType type) { + this.type = type; + return this; + } + + /** + *

                  An object containing details related to the Event.

                  + * @param data value to be set + * @return Builder + */ + + public BaseEventBuilder data(final java.lang.Object data) { + this.data = data; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public BaseEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *

                  The type of resource targeted by the Event.

                  + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + * @return type + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  An object containing details related to the Event.

                  + * @return data + */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + * builds BaseEvent with checking for non-null required values + * @return BaseEvent + */ + public BaseEvent build() { + Objects.requireNonNull(id, BaseEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, BaseEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, BaseEvent.class + ": resourceType is missing"); + Objects.requireNonNull(type, BaseEvent.class + ": type is missing"); + Objects.requireNonNull(data, BaseEvent.class + ": data is missing"); + Objects.requireNonNull(createdAt, BaseEvent.class + ": createdAt is missing"); + return new BaseEventImpl(id, notificationType, resourceType, type, data, createdAt); + } + + /** + * builds BaseEvent without checking for non-null required values + * @return BaseEvent + */ + public BaseEvent buildUnchecked() { + return new BaseEventImpl(id, notificationType, resourceType, type, data, createdAt); + } + + /** + * factory method for an instance of BaseEventBuilder + * @return builder + */ + public static BaseEventBuilder of() { + return new BaseEventBuilder(); + } + + /** + * create builder for BaseEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BaseEventBuilder of(final BaseEvent template) { + BaseEventBuilder builder = new BaseEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.type = template.getType(); + builder.data = template.getData(); + builder.createdAt = template.getCreatedAt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventImpl.java new file mode 100644 index 00000000000..4465961ccc6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/BaseEventImpl.java @@ -0,0 +1,180 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Base representation of an Event containing common fields to all Event Types.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BaseEventImpl implements BaseEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.lang.Object data; + + private java.time.ZonedDateTime createdAt; + + /** + * create instance with all properties + */ + @JsonCreator + BaseEventImpl(@JsonProperty("id") final String id, @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("type") final com.commercetools.api.models.subscription.EventType type, + @JsonProperty("data") final java.lang.Object data, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.type = type; + this.data = data; + this.createdAt = createdAt; + } + + /** + * create empty instance + */ + public BaseEventImpl() { + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *

                  The type of resource targeted by the Event.

                  + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  An object containing details related to the Event.

                  + */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setType(final com.commercetools.api.models.subscription.EventType type) { + this.type = type; + } + + public void setData(final java.lang.Object data) { + this.data = data; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BaseEventImpl that = (BaseEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(data, that.data) + .append(createdAt, that.createdAt) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(data, that.data) + .append(createdAt, that.createdAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(data) + .append(createdAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("data", data) + .append("createdAt", createdAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/Event.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/Event.java new file mode 100644 index 00000000000..c6b8cf4e5f8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/Event.java @@ -0,0 +1,229 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.time.ZonedDateTime; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.constraints.NotNull; + +/** + *

                  Base representation of an Event containing common fields to all Event Types.

                  + * + *
                  + * Example to create a subtype instance using the builder pattern + *
                  + *
                  
                  + *     Event event = Event.importContainerCreatedBuilder()
                  + *             id("{id}")
                  + *             notificationType("{notificationType}")
                  + *             resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.commercetools.api.models.event.ImportContainerCreatedEventImpl.class, name = ImportContainerCreatedEvent.IMPORT_CONTAINER_CREATED), + @JsonSubTypes.Type(value = com.commercetools.api.models.event.ImportContainerDeletedEventImpl.class, name = ImportContainerDeletedEvent.IMPORT_CONTAINER_DELETED), + @JsonSubTypes.Type(value = com.commercetools.api.models.event.ImportOperationRejectedEventImpl.class, name = ImportOperationRejectedEvent.IMPORT_OPERATION_REJECTED), + @JsonSubTypes.Type(value = com.commercetools.api.models.event.ImportUnresolvedEventImpl.class, name = ImportUnresolvedEvent.IMPORT_UNRESOLVED), + @JsonSubTypes.Type(value = com.commercetools.api.models.event.ImportValidationFailedEventImpl.class, name = ImportValidationFailedEvent.IMPORT_VALIDATION_FAILED), + @JsonSubTypes.Type(value = com.commercetools.api.models.event.ImportWaitForMasterVariantEventImpl.class, name = ImportWaitForMasterVariantEvent.IMPORT_WAIT_FOR_MASTER_VARIANT) }) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "type", defaultImpl = EventImpl.class, visible = true) +@JsonDeserialize(as = EventImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface Event { + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + * + * @return notificationType + */ + @NotNull + @JsonProperty("notificationType") + public String getNotificationType(); + + /** + *

                  The type of resource targeted by the Event.

                  + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  The type of Event that has occurred.

                  + * @return type + */ + @NotNull + @JsonProperty("type") + public EventType getType(); + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + * set notificationType + * @param notificationType value to be set + */ + + public void setNotificationType(final String notificationType); + + /** + *

                  The type of resource targeted by the Event.

                  + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + * factory method to create a deep copy of Event + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static Event deepCopy(@Nullable final Event template) { + if (template == null) { + return null; + } + if (template instanceof com.commercetools.api.models.event.ImportContainerCreatedEvent) { + return com.commercetools.api.models.event.ImportContainerCreatedEvent + .deepCopy((com.commercetools.api.models.event.ImportContainerCreatedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportContainerDeletedEvent) { + return com.commercetools.api.models.event.ImportContainerDeletedEvent + .deepCopy((com.commercetools.api.models.event.ImportContainerDeletedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportOperationRejectedEvent) { + return com.commercetools.api.models.event.ImportOperationRejectedEvent + .deepCopy((com.commercetools.api.models.event.ImportOperationRejectedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportUnresolvedEvent) { + return com.commercetools.api.models.event.ImportUnresolvedEvent + .deepCopy((com.commercetools.api.models.event.ImportUnresolvedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportValidationFailedEvent) { + return com.commercetools.api.models.event.ImportValidationFailedEvent + .deepCopy((com.commercetools.api.models.event.ImportValidationFailedEvent) template); + } + if (template instanceof com.commercetools.api.models.event.ImportWaitForMasterVariantEvent) { + return com.commercetools.api.models.event.ImportWaitForMasterVariantEvent + .deepCopy((com.commercetools.api.models.event.ImportWaitForMasterVariantEvent) template); + } + EventImpl instance = new EventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * builder for importContainerCreated subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportContainerCreatedEventBuilder importContainerCreatedBuilder() { + return com.commercetools.api.models.event.ImportContainerCreatedEventBuilder.of(); + } + + /** + * builder for importContainerDeleted subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportContainerDeletedEventBuilder importContainerDeletedBuilder() { + return com.commercetools.api.models.event.ImportContainerDeletedEventBuilder.of(); + } + + /** + * builder for importOperationRejected subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportOperationRejectedEventBuilder importOperationRejectedBuilder() { + return com.commercetools.api.models.event.ImportOperationRejectedEventBuilder.of(); + } + + /** + * builder for importUnresolved subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportUnresolvedEventBuilder importUnresolvedBuilder() { + return com.commercetools.api.models.event.ImportUnresolvedEventBuilder.of(); + } + + /** + * builder for importValidationFailed subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportValidationFailedEventBuilder importValidationFailedBuilder() { + return com.commercetools.api.models.event.ImportValidationFailedEventBuilder.of(); + } + + /** + * builder for importWaitForMasterVariant subtype + * @return builder + */ + public static com.commercetools.api.models.event.ImportWaitForMasterVariantEventBuilder importWaitForMasterVariantBuilder() { + return com.commercetools.api.models.event.ImportWaitForMasterVariantEventBuilder.of(); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/EventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/EventBuilder.java new file mode 100644 index 00000000000..0419d197bd9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/EventBuilder.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.utils.Generated; + +/** + * EventBuilder + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventBuilder { + + public com.commercetools.api.models.event.ImportContainerCreatedEventBuilder importContainerCreatedBuilder() { + return com.commercetools.api.models.event.ImportContainerCreatedEventBuilder.of(); + } + + public com.commercetools.api.models.event.ImportContainerDeletedEventBuilder importContainerDeletedBuilder() { + return com.commercetools.api.models.event.ImportContainerDeletedEventBuilder.of(); + } + + public com.commercetools.api.models.event.ImportOperationRejectedEventBuilder importOperationRejectedBuilder() { + return com.commercetools.api.models.event.ImportOperationRejectedEventBuilder.of(); + } + + public com.commercetools.api.models.event.ImportUnresolvedEventBuilder importUnresolvedBuilder() { + return com.commercetools.api.models.event.ImportUnresolvedEventBuilder.of(); + } + + public com.commercetools.api.models.event.ImportValidationFailedEventBuilder importValidationFailedBuilder() { + return com.commercetools.api.models.event.ImportValidationFailedEventBuilder.of(); + } + + public com.commercetools.api.models.event.ImportWaitForMasterVariantEventBuilder importWaitForMasterVariantBuilder() { + return com.commercetools.api.models.event.ImportWaitForMasterVariantEventBuilder.of(); + } + + /** + * factory method for an instance of EventBuilder + * @return builder + */ + public static EventBuilder of() { + return new EventBuilder(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/EventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/EventImpl.java new file mode 100644 index 00000000000..504b1d8d1e6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/EventImpl.java @@ -0,0 +1,156 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Base representation of an Event containing common fields to all Event Types.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventImpl implements Event, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + /** + * create instance with all properties + */ + @JsonCreator + EventImpl(@JsonProperty("id") final String id, @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("type") final com.commercetools.api.models.subscription.EventType type, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.type = type; + this.createdAt = createdAt; + } + + /** + * create empty instance + */ + public EventImpl() { + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *

                  The type of resource targeted by the Event.

                  + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + EventImpl that = (EventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEvent.java new file mode 100644 index 00000000000..777d6c7e677 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when an Import Container is created.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerCreatedEvent importContainerCreatedEvent = ImportContainerCreatedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportContainerCreatedEventImpl.class) +public interface ImportContainerCreatedEvent extends Event { + + /** + * discriminator value for ImportContainerCreatedEvent + */ + String IMPORT_CONTAINER_CREATED = "ImportContainerCreated"; + + /** + * + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  An object containing details of the created Import Container.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportContainerCreatedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  An object containing details of the created Import Container.

                  + * @param data value to be set + */ + + public void setData(final ImportContainerCreatedEventData data); + + /** + * factory method + * @return instance of ImportContainerCreatedEvent + */ + public static ImportContainerCreatedEvent of() { + return new ImportContainerCreatedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerCreatedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerCreatedEvent of(final ImportContainerCreatedEvent template) { + ImportContainerCreatedEventImpl instance = new ImportContainerCreatedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerCreatedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerCreatedEvent deepCopy(@Nullable final ImportContainerCreatedEvent template) { + if (template == null) { + return null; + } + ImportContainerCreatedEventImpl instance = new ImportContainerCreatedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportContainerCreatedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportContainerCreatedEvent + * @return builder + */ + public static ImportContainerCreatedEventBuilder builder() { + return ImportContainerCreatedEventBuilder.of(); + } + + /** + * create builder for ImportContainerCreatedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventBuilder builder(final ImportContainerCreatedEvent template) { + return ImportContainerCreatedEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportContainerCreatedEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventBuilder.java new file mode 100644 index 00000000000..40c12602a44 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventBuilder.java @@ -0,0 +1,210 @@ + +package com.commercetools.api.models.event; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportContainerCreatedEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerCreatedEvent importContainerCreatedEvent = ImportContainerCreatedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerCreatedEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportContainerCreatedEventData data; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  An object containing details of the created Import Container.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerCreatedEventBuilder data( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportContainerCreatedEventDataBuilder.of()) + .build(); + return this; + } + + /** + *

                  An object containing details of the created Import Container.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerCreatedEventBuilder withData( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportContainerCreatedEventDataBuilder.of()); + return this; + } + + /** + *

                  An object containing details of the created Import Container.

                  + * @param data value to be set + * @return Builder + */ + + public ImportContainerCreatedEventBuilder data( + final com.commercetools.api.models.event.ImportContainerCreatedEventData data) { + this.data = data; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the created Import Container.

                  + * @return data + */ + + public com.commercetools.api.models.event.ImportContainerCreatedEventData getData() { + return this.data; + } + + /** + * builds ImportContainerCreatedEvent with checking for non-null required values + * @return ImportContainerCreatedEvent + */ + public ImportContainerCreatedEvent build() { + Objects.requireNonNull(id, ImportContainerCreatedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportContainerCreatedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportContainerCreatedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportContainerCreatedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportContainerCreatedEvent.class + ": data is missing"); + return new ImportContainerCreatedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportContainerCreatedEvent without checking for non-null required values + * @return ImportContainerCreatedEvent + */ + public ImportContainerCreatedEvent buildUnchecked() { + return new ImportContainerCreatedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportContainerCreatedEventBuilder + * @return builder + */ + public static ImportContainerCreatedEventBuilder of() { + return new ImportContainerCreatedEventBuilder(); + } + + /** + * create builder for ImportContainerCreatedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventBuilder of(final ImportContainerCreatedEvent template) { + ImportContainerCreatedEventBuilder builder = new ImportContainerCreatedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventData.java new file mode 100644 index 00000000000..7b16c8cbcde --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventData.java @@ -0,0 +1,177 @@ + +package com.commercetools.api.models.event; + +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; + +/** + *

                  The data of the Import Container Created Event.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerCreatedEventData importContainerCreatedEventData = ImportContainerCreatedEventData.builder()
                  + *             .key("{key}")
                  + *             .version(1)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportContainerCreatedEventDataImpl.class) +public interface ImportContainerCreatedEventData { + + /** + *

                  The key of the created Import Container.

                  + * @return key + */ + @NotNull + @JsonProperty("key") + public String getKey(); + + /** + *

                  The version of the created Import Container.

                  + * @return version + */ + @NotNull + @JsonProperty("version") + public Integer getVersion(); + + /** + *

                  Date and time (UTC) the Import Container was created.

                  + * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *

                  Date and time (UTC) the Import Container was last updated.

                  + * @return lastModifiedAt + */ + @NotNull + @JsonProperty("lastModifiedAt") + public ZonedDateTime getLastModifiedAt(); + + /** + *

                  The key of the created Import Container.

                  + * @param key value to be set + */ + + public void setKey(final String key); + + /** + *

                  The version of the created Import Container.

                  + * @param version value to be set + */ + + public void setVersion(final Integer version); + + /** + *

                  Date and time (UTC) the Import Container was created.

                  + * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + *

                  Date and time (UTC) the Import Container was last updated.

                  + * @param lastModifiedAt value to be set + */ + + public void setLastModifiedAt(final ZonedDateTime lastModifiedAt); + + /** + * factory method + * @return instance of ImportContainerCreatedEventData + */ + public static ImportContainerCreatedEventData of() { + return new ImportContainerCreatedEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerCreatedEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerCreatedEventData of(final ImportContainerCreatedEventData template) { + ImportContainerCreatedEventDataImpl instance = new ImportContainerCreatedEventDataImpl(); + instance.setKey(template.getKey()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerCreatedEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerCreatedEventData deepCopy(@Nullable final ImportContainerCreatedEventData template) { + if (template == null) { + return null; + } + ImportContainerCreatedEventDataImpl instance = new ImportContainerCreatedEventDataImpl(); + instance.setKey(template.getKey()); + instance.setVersion(template.getVersion()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setLastModifiedAt(template.getLastModifiedAt()); + return instance; + } + + /** + * builder factory method for ImportContainerCreatedEventData + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder builder() { + return ImportContainerCreatedEventDataBuilder.of(); + } + + /** + * create builder for ImportContainerCreatedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder builder(final ImportContainerCreatedEventData template) { + return ImportContainerCreatedEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportContainerCreatedEventData(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataBuilder.java new file mode 100644 index 00000000000..3483d0a65a5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataBuilder.java @@ -0,0 +1,157 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportContainerCreatedEventDataBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerCreatedEventData importContainerCreatedEventData = ImportContainerCreatedEventData.builder()
                  + *             .key("{key}")
                  + *             .version(1)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .lastModifiedAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerCreatedEventDataBuilder implements Builder { + + private String key; + + private Integer version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + /** + *

                  The key of the created Import Container.

                  + * @param key value to be set + * @return Builder + */ + + public ImportContainerCreatedEventDataBuilder key(final String key) { + this.key = key; + return this; + } + + /** + *

                  The version of the created Import Container.

                  + * @param version value to be set + * @return Builder + */ + + public ImportContainerCreatedEventDataBuilder version(final Integer version) { + this.version = version; + return this; + } + + /** + *

                  Date and time (UTC) the Import Container was created.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportContainerCreatedEventDataBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  Date and time (UTC) the Import Container was last updated.

                  + * @param lastModifiedAt value to be set + * @return Builder + */ + + public ImportContainerCreatedEventDataBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

                  The key of the created Import Container.

                  + * @return key + */ + + public String getKey() { + return this.key; + } + + /** + *

                  The version of the created Import Container.

                  + * @return version + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  Date and time (UTC) the Import Container was created.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  Date and time (UTC) the Import Container was last updated.

                  + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + * builds ImportContainerCreatedEventData with checking for non-null required values + * @return ImportContainerCreatedEventData + */ + public ImportContainerCreatedEventData build() { + Objects.requireNonNull(key, ImportContainerCreatedEventData.class + ": key is missing"); + Objects.requireNonNull(version, ImportContainerCreatedEventData.class + ": version is missing"); + Objects.requireNonNull(createdAt, ImportContainerCreatedEventData.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, ImportContainerCreatedEventData.class + ": lastModifiedAt is missing"); + return new ImportContainerCreatedEventDataImpl(key, version, createdAt, lastModifiedAt); + } + + /** + * builds ImportContainerCreatedEventData without checking for non-null required values + * @return ImportContainerCreatedEventData + */ + public ImportContainerCreatedEventData buildUnchecked() { + return new ImportContainerCreatedEventDataImpl(key, version, createdAt, lastModifiedAt); + } + + /** + * factory method for an instance of ImportContainerCreatedEventDataBuilder + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder of() { + return new ImportContainerCreatedEventDataBuilder(); + } + + /** + * create builder for ImportContainerCreatedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerCreatedEventDataBuilder of(final ImportContainerCreatedEventData template) { + ImportContainerCreatedEventDataBuilder builder = new ImportContainerCreatedEventDataBuilder(); + builder.key = template.getKey(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataImpl.java new file mode 100644 index 00000000000..9a8284eb9dc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataImpl.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  The data of the Import Container Created Event.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerCreatedEventDataImpl implements ImportContainerCreatedEventData, ModelBase { + + private String key; + + private Integer version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + /** + * create instance with all properties + */ + @JsonCreator + ImportContainerCreatedEventDataImpl(@JsonProperty("key") final String key, + @JsonProperty("version") final Integer version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt) { + this.key = key; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + } + + /** + * create empty instance + */ + public ImportContainerCreatedEventDataImpl() { + } + + /** + *

                  The key of the created Import Container.

                  + */ + + public String getKey() { + return this.key; + } + + /** + *

                  The version of the created Import Container.

                  + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  Date and time (UTC) the Import Container was created.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  Date and time (UTC) the Import Container was last updated.

                  + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setVersion(final Integer version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerCreatedEventDataImpl that = (ImportContainerCreatedEventDataImpl) o; + + return new EqualsBuilder().append(key, that.key) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(key, that.key) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(key) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventImpl.java new file mode 100644 index 00000000000..6c21c8f312b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when an Import Container is created.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerCreatedEventImpl implements ImportContainerCreatedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportContainerCreatedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportContainerCreatedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportContainerCreatedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportContainerCreated"); + } + + /** + * create empty instance + */ + public ImportContainerCreatedEventImpl() { + this.type = EventType.findEnum("ImportContainerCreated"); + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the created Import Container.

                  + */ + + public com.commercetools.api.models.event.ImportContainerCreatedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportContainerCreatedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerCreatedEventImpl that = (ImportContainerCreatedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEvent.java new file mode 100644 index 00000000000..cf55c509ce5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when an Import Container is deleted.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerDeletedEvent importContainerDeletedEvent = ImportContainerDeletedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportContainerDeletedEventImpl.class) +public interface ImportContainerDeletedEvent extends Event { + + /** + * discriminator value for ImportContainerDeletedEvent + */ + String IMPORT_CONTAINER_DELETED = "ImportContainerDeleted"; + + /** + * + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  An object containing details of the deleted Import Container.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportContainerDeletedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  An object containing details of the deleted Import Container.

                  + * @param data value to be set + */ + + public void setData(final ImportContainerDeletedEventData data); + + /** + * factory method + * @return instance of ImportContainerDeletedEvent + */ + public static ImportContainerDeletedEvent of() { + return new ImportContainerDeletedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerDeletedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerDeletedEvent of(final ImportContainerDeletedEvent template) { + ImportContainerDeletedEventImpl instance = new ImportContainerDeletedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerDeletedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerDeletedEvent deepCopy(@Nullable final ImportContainerDeletedEvent template) { + if (template == null) { + return null; + } + ImportContainerDeletedEventImpl instance = new ImportContainerDeletedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportContainerDeletedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportContainerDeletedEvent + * @return builder + */ + public static ImportContainerDeletedEventBuilder builder() { + return ImportContainerDeletedEventBuilder.of(); + } + + /** + * create builder for ImportContainerDeletedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerDeletedEventBuilder builder(final ImportContainerDeletedEvent template) { + return ImportContainerDeletedEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportContainerDeletedEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventBuilder.java new file mode 100644 index 00000000000..290d391eb6f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventBuilder.java @@ -0,0 +1,210 @@ + +package com.commercetools.api.models.event; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportContainerDeletedEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerDeletedEvent importContainerDeletedEvent = ImportContainerDeletedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerDeletedEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportContainerDeletedEventData data; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  An object containing details of the deleted Import Container.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerDeletedEventBuilder data( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportContainerDeletedEventDataBuilder.of()) + .build(); + return this; + } + + /** + *

                  An object containing details of the deleted Import Container.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportContainerDeletedEventBuilder withData( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportContainerDeletedEventDataBuilder.of()); + return this; + } + + /** + *

                  An object containing details of the deleted Import Container.

                  + * @param data value to be set + * @return Builder + */ + + public ImportContainerDeletedEventBuilder data( + final com.commercetools.api.models.event.ImportContainerDeletedEventData data) { + this.data = data; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the deleted Import Container.

                  + * @return data + */ + + public com.commercetools.api.models.event.ImportContainerDeletedEventData getData() { + return this.data; + } + + /** + * builds ImportContainerDeletedEvent with checking for non-null required values + * @return ImportContainerDeletedEvent + */ + public ImportContainerDeletedEvent build() { + Objects.requireNonNull(id, ImportContainerDeletedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportContainerDeletedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportContainerDeletedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportContainerDeletedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportContainerDeletedEvent.class + ": data is missing"); + return new ImportContainerDeletedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportContainerDeletedEvent without checking for non-null required values + * @return ImportContainerDeletedEvent + */ + public ImportContainerDeletedEvent buildUnchecked() { + return new ImportContainerDeletedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportContainerDeletedEventBuilder + * @return builder + */ + public static ImportContainerDeletedEventBuilder of() { + return new ImportContainerDeletedEventBuilder(); + } + + /** + * create builder for ImportContainerDeletedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerDeletedEventBuilder of(final ImportContainerDeletedEvent template) { + ImportContainerDeletedEventBuilder builder = new ImportContainerDeletedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventData.java new file mode 100644 index 00000000000..b745ae3f95f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventData.java @@ -0,0 +1,140 @@ + +package com.commercetools.api.models.event; + +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; + +/** + *

                  The data of the Import Container Deleted Event.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerDeletedEventData importContainerDeletedEventData = ImportContainerDeletedEventData.builder()
                  + *             .key("{key}")
                  + *             .version(1)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportContainerDeletedEventDataImpl.class) +public interface ImportContainerDeletedEventData { + + /** + *

                  The key of the deleted Import Container.

                  + * @return key + */ + @NotNull + @JsonProperty("key") + public String getKey(); + + /** + *

                  The version of the deleted Import Container.

                  + * @return version + */ + @NotNull + @JsonProperty("version") + public Integer getVersion(); + + /** + *

                  The key of the deleted Import Container.

                  + * @param key value to be set + */ + + public void setKey(final String key); + + /** + *

                  The version of the deleted Import Container.

                  + * @param version value to be set + */ + + public void setVersion(final Integer version); + + /** + * factory method + * @return instance of ImportContainerDeletedEventData + */ + public static ImportContainerDeletedEventData of() { + return new ImportContainerDeletedEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportContainerDeletedEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportContainerDeletedEventData of(final ImportContainerDeletedEventData template) { + ImportContainerDeletedEventDataImpl instance = new ImportContainerDeletedEventDataImpl(); + instance.setKey(template.getKey()); + instance.setVersion(template.getVersion()); + return instance; + } + + /** + * factory method to create a deep copy of ImportContainerDeletedEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportContainerDeletedEventData deepCopy(@Nullable final ImportContainerDeletedEventData template) { + if (template == null) { + return null; + } + ImportContainerDeletedEventDataImpl instance = new ImportContainerDeletedEventDataImpl(); + instance.setKey(template.getKey()); + instance.setVersion(template.getVersion()); + return instance; + } + + /** + * builder factory method for ImportContainerDeletedEventData + * @return builder + */ + public static ImportContainerDeletedEventDataBuilder builder() { + return ImportContainerDeletedEventDataBuilder.of(); + } + + /** + * create builder for ImportContainerDeletedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerDeletedEventDataBuilder builder(final ImportContainerDeletedEventData template) { + return ImportContainerDeletedEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportContainerDeletedEventData(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataBuilder.java new file mode 100644 index 00000000000..70fec44834b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataBuilder.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportContainerDeletedEventDataBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportContainerDeletedEventData importContainerDeletedEventData = ImportContainerDeletedEventData.builder()
                  + *             .key("{key}")
                  + *             .version(1)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerDeletedEventDataBuilder implements Builder { + + private String key; + + private Integer version; + + /** + *

                  The key of the deleted Import Container.

                  + * @param key value to be set + * @return Builder + */ + + public ImportContainerDeletedEventDataBuilder key(final String key) { + this.key = key; + return this; + } + + /** + *

                  The version of the deleted Import Container.

                  + * @param version value to be set + * @return Builder + */ + + public ImportContainerDeletedEventDataBuilder version(final Integer version) { + this.version = version; + return this; + } + + /** + *

                  The key of the deleted Import Container.

                  + * @return key + */ + + public String getKey() { + return this.key; + } + + /** + *

                  The version of the deleted Import Container.

                  + * @return version + */ + + public Integer getVersion() { + return this.version; + } + + /** + * builds ImportContainerDeletedEventData with checking for non-null required values + * @return ImportContainerDeletedEventData + */ + public ImportContainerDeletedEventData build() { + Objects.requireNonNull(key, ImportContainerDeletedEventData.class + ": key is missing"); + Objects.requireNonNull(version, ImportContainerDeletedEventData.class + ": version is missing"); + return new ImportContainerDeletedEventDataImpl(key, version); + } + + /** + * builds ImportContainerDeletedEventData without checking for non-null required values + * @return ImportContainerDeletedEventData + */ + public ImportContainerDeletedEventData buildUnchecked() { + return new ImportContainerDeletedEventDataImpl(key, version); + } + + /** + * factory method for an instance of ImportContainerDeletedEventDataBuilder + * @return builder + */ + public static ImportContainerDeletedEventDataBuilder of() { + return new ImportContainerDeletedEventDataBuilder(); + } + + /** + * create builder for ImportContainerDeletedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportContainerDeletedEventDataBuilder of(final ImportContainerDeletedEventData template) { + ImportContainerDeletedEventDataBuilder builder = new ImportContainerDeletedEventDataBuilder(); + builder.key = template.getKey(); + builder.version = template.getVersion(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataImpl.java new file mode 100644 index 00000000000..260fca45eca --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataImpl.java @@ -0,0 +1,98 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  The data of the Import Container Deleted Event.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerDeletedEventDataImpl implements ImportContainerDeletedEventData, ModelBase { + + private String key; + + private Integer version; + + /** + * create instance with all properties + */ + @JsonCreator + ImportContainerDeletedEventDataImpl(@JsonProperty("key") final String key, + @JsonProperty("version") final Integer version) { + this.key = key; + this.version = version; + } + + /** + * create empty instance + */ + public ImportContainerDeletedEventDataImpl() { + } + + /** + *

                  The key of the deleted Import Container.

                  + */ + + public String getKey() { + return this.key; + } + + /** + *

                  The version of the deleted Import Container.

                  + */ + + public Integer getVersion() { + return this.version; + } + + public void setKey(final String key) { + this.key = key; + } + + public void setVersion(final Integer version) { + this.version = version; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerDeletedEventDataImpl that = (ImportContainerDeletedEventDataImpl) o; + + return new EqualsBuilder().append(key, that.key) + .append(version, that.version) + .append(key, that.key) + .append(version, that.version) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(key).append(version).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key) + .append("version", version) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventImpl.java new file mode 100644 index 00000000000..ac1642170d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when an Import Container is deleted.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportContainerDeletedEventImpl implements ImportContainerDeletedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportContainerDeletedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportContainerDeletedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportContainerDeletedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportContainerDeleted"); + } + + /** + * create empty instance + */ + public ImportContainerDeletedEventImpl() { + this.type = EventType.findEnum("ImportContainerDeleted"); + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the deleted Import Container.

                  + */ + + public com.commercetools.api.models.event.ImportContainerDeletedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportContainerDeletedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportContainerDeletedEventImpl that = (ImportContainerDeletedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEvent.java new file mode 100644 index 00000000000..2c25b44144d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when an Import Operation has the rejected ProcessingState.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportOperationRejectedEvent importOperationRejectedEvent = ImportOperationRejectedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportOperationRejectedEventImpl.class) +public interface ImportOperationRejectedEvent extends Event { + + /** + * discriminator value for ImportOperationRejectedEvent + */ + String IMPORT_OPERATION_REJECTED = "ImportOperationRejected"; + + /** + * + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportOperationRejectedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + * @param data value to be set + */ + + public void setData(final ImportOperationRejectedEventData data); + + /** + * factory method + * @return instance of ImportOperationRejectedEvent + */ + public static ImportOperationRejectedEvent of() { + return new ImportOperationRejectedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportOperationRejectedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportOperationRejectedEvent of(final ImportOperationRejectedEvent template) { + ImportOperationRejectedEventImpl instance = new ImportOperationRejectedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportOperationRejectedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportOperationRejectedEvent deepCopy(@Nullable final ImportOperationRejectedEvent template) { + if (template == null) { + return null; + } + ImportOperationRejectedEventImpl instance = new ImportOperationRejectedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportOperationRejectedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportOperationRejectedEvent + * @return builder + */ + public static ImportOperationRejectedEventBuilder builder() { + return ImportOperationRejectedEventBuilder.of(); + } + + /** + * create builder for ImportOperationRejectedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportOperationRejectedEventBuilder builder(final ImportOperationRejectedEvent template) { + return ImportOperationRejectedEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportOperationRejectedEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventBuilder.java new file mode 100644 index 00000000000..c56ef64f259 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventBuilder.java @@ -0,0 +1,210 @@ + +package com.commercetools.api.models.event; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportOperationRejectedEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportOperationRejectedEvent importOperationRejectedEvent = ImportOperationRejectedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportOperationRejectedEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportOperationRejectedEventData data; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportOperationRejectedEventBuilder data( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportOperationRejectedEventDataBuilder.of()) + .build(); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportOperationRejectedEventBuilder withData( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportOperationRejectedEventDataBuilder.of()); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + * @param data value to be set + * @return Builder + */ + + public ImportOperationRejectedEventBuilder data( + final com.commercetools.api.models.event.ImportOperationRejectedEventData data) { + this.data = data; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + * @return data + */ + + public com.commercetools.api.models.event.ImportOperationRejectedEventData getData() { + return this.data; + } + + /** + * builds ImportOperationRejectedEvent with checking for non-null required values + * @return ImportOperationRejectedEvent + */ + public ImportOperationRejectedEvent build() { + Objects.requireNonNull(id, ImportOperationRejectedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportOperationRejectedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportOperationRejectedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportOperationRejectedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportOperationRejectedEvent.class + ": data is missing"); + return new ImportOperationRejectedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportOperationRejectedEvent without checking for non-null required values + * @return ImportOperationRejectedEvent + */ + public ImportOperationRejectedEvent buildUnchecked() { + return new ImportOperationRejectedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportOperationRejectedEventBuilder + * @return builder + */ + public static ImportOperationRejectedEventBuilder of() { + return new ImportOperationRejectedEventBuilder(); + } + + /** + * create builder for ImportOperationRejectedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportOperationRejectedEventBuilder of(final ImportOperationRejectedEvent template) { + ImportOperationRejectedEventBuilder builder = new ImportOperationRejectedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventData.java new file mode 100644 index 00000000000..1f9d7b13a56 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventData.java @@ -0,0 +1,122 @@ + +package com.commercetools.api.models.event; + +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; + +/** + *

                  The data of the Import Operation Rejected Event.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportOperationRejectedEventData importOperationRejectedEventData = ImportOperationRejectedEventData.builder()
                  + *             .id("{id}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportOperationRejectedEventDataImpl.class) +public interface ImportOperationRejectedEventData { + + /** + *

                  The id of the Import Operation with the rejected state.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

                  The id of the Import Operation with the rejected state.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + * factory method + * @return instance of ImportOperationRejectedEventData + */ + public static ImportOperationRejectedEventData of() { + return new ImportOperationRejectedEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportOperationRejectedEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportOperationRejectedEventData of(final ImportOperationRejectedEventData template) { + ImportOperationRejectedEventDataImpl instance = new ImportOperationRejectedEventDataImpl(); + instance.setId(template.getId()); + return instance; + } + + /** + * factory method to create a deep copy of ImportOperationRejectedEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportOperationRejectedEventData deepCopy(@Nullable final ImportOperationRejectedEventData template) { + if (template == null) { + return null; + } + ImportOperationRejectedEventDataImpl instance = new ImportOperationRejectedEventDataImpl(); + instance.setId(template.getId()); + return instance; + } + + /** + * builder factory method for ImportOperationRejectedEventData + * @return builder + */ + public static ImportOperationRejectedEventDataBuilder builder() { + return ImportOperationRejectedEventDataBuilder.of(); + } + + /** + * create builder for ImportOperationRejectedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportOperationRejectedEventDataBuilder builder(final ImportOperationRejectedEventData template) { + return ImportOperationRejectedEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportOperationRejectedEventData(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataBuilder.java new file mode 100644 index 00000000000..fb097c0e792 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataBuilder.java @@ -0,0 +1,82 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportOperationRejectedEventDataBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportOperationRejectedEventData importOperationRejectedEventData = ImportOperationRejectedEventData.builder()
                  + *             .id("{id}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportOperationRejectedEventDataBuilder implements Builder { + + private String id; + + /** + *

                  The id of the Import Operation with the rejected state.

                  + * @param id value to be set + * @return Builder + */ + + public ImportOperationRejectedEventDataBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  The id of the Import Operation with the rejected state.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * builds ImportOperationRejectedEventData with checking for non-null required values + * @return ImportOperationRejectedEventData + */ + public ImportOperationRejectedEventData build() { + Objects.requireNonNull(id, ImportOperationRejectedEventData.class + ": id is missing"); + return new ImportOperationRejectedEventDataImpl(id); + } + + /** + * builds ImportOperationRejectedEventData without checking for non-null required values + * @return ImportOperationRejectedEventData + */ + public ImportOperationRejectedEventData buildUnchecked() { + return new ImportOperationRejectedEventDataImpl(id); + } + + /** + * factory method for an instance of ImportOperationRejectedEventDataBuilder + * @return builder + */ + public static ImportOperationRejectedEventDataBuilder of() { + return new ImportOperationRejectedEventDataBuilder(); + } + + /** + * create builder for ImportOperationRejectedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportOperationRejectedEventDataBuilder of(final ImportOperationRejectedEventData template) { + ImportOperationRejectedEventDataBuilder builder = new ImportOperationRejectedEventDataBuilder(); + builder.id = template.getId(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataImpl.java new file mode 100644 index 00000000000..400846e7d8b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataImpl.java @@ -0,0 +1,76 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  The data of the Import Operation Rejected Event.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportOperationRejectedEventDataImpl implements ImportOperationRejectedEventData, ModelBase { + + private String id; + + /** + * create instance with all properties + */ + @JsonCreator + ImportOperationRejectedEventDataImpl(@JsonProperty("id") final String id) { + this.id = id; + } + + /** + * create empty instance + */ + public ImportOperationRejectedEventDataImpl() { + } + + /** + *

                  The id of the Import Operation with the rejected state.

                  + */ + + public String getId() { + return this.id; + } + + public void setId(final String id) { + this.id = id; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportOperationRejectedEventDataImpl that = (ImportOperationRejectedEventDataImpl) o; + + return new EqualsBuilder().append(id, that.id).append(id, that.id).isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id).build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventImpl.java new file mode 100644 index 00000000000..bd4db5f9364 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when an Import Operation has the rejected ProcessingState.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportOperationRejectedEventImpl implements ImportOperationRejectedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportOperationRejectedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportOperationRejectedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportOperationRejectedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportOperationRejected"); + } + + /** + * create empty instance + */ + public ImportOperationRejectedEventImpl() { + this.type = EventType.findEnum("ImportOperationRejected"); + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the rejected state.

                  + */ + + public com.commercetools.api.models.event.ImportOperationRejectedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportOperationRejectedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportOperationRejectedEventImpl that = (ImportOperationRejectedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEvent.java new file mode 100644 index 00000000000..54e1dde1d27 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEvent.java @@ -0,0 +1,157 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when an Import Operation has the unresolved ProcessingState.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportUnresolvedEvent importUnresolvedEvent = ImportUnresolvedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportUnresolvedEventImpl.class) +public interface ImportUnresolvedEvent extends Event { + + /** + * discriminator value for ImportUnresolvedEvent + */ + String IMPORT_UNRESOLVED = "ImportUnresolved"; + + /** + * + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportUnresolvedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + * @param data value to be set + */ + + public void setData(final ImportUnresolvedEventData data); + + /** + * factory method + * @return instance of ImportUnresolvedEvent + */ + public static ImportUnresolvedEvent of() { + return new ImportUnresolvedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportUnresolvedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportUnresolvedEvent of(final ImportUnresolvedEvent template) { + ImportUnresolvedEventImpl instance = new ImportUnresolvedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportUnresolvedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportUnresolvedEvent deepCopy(@Nullable final ImportUnresolvedEvent template) { + if (template == null) { + return null; + } + ImportUnresolvedEventImpl instance = new ImportUnresolvedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(com.commercetools.api.models.event.ImportUnresolvedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportUnresolvedEvent + * @return builder + */ + public static ImportUnresolvedEventBuilder builder() { + return ImportUnresolvedEventBuilder.of(); + } + + /** + * create builder for ImportUnresolvedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportUnresolvedEventBuilder builder(final ImportUnresolvedEvent template) { + return ImportUnresolvedEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportUnresolvedEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventBuilder.java new file mode 100644 index 00000000000..27458b0c234 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventBuilder.java @@ -0,0 +1,208 @@ + +package com.commercetools.api.models.event; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportUnresolvedEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportUnresolvedEvent importUnresolvedEvent = ImportUnresolvedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportUnresolvedEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportUnresolvedEventData data; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportUnresolvedEventBuilder data( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportUnresolvedEventDataBuilder.of()).build(); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportUnresolvedEventBuilder withData( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportUnresolvedEventDataBuilder.of()); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + * @param data value to be set + * @return Builder + */ + + public ImportUnresolvedEventBuilder data(final com.commercetools.api.models.event.ImportUnresolvedEventData data) { + this.data = data; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + * @return data + */ + + public com.commercetools.api.models.event.ImportUnresolvedEventData getData() { + return this.data; + } + + /** + * builds ImportUnresolvedEvent with checking for non-null required values + * @return ImportUnresolvedEvent + */ + public ImportUnresolvedEvent build() { + Objects.requireNonNull(id, ImportUnresolvedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportUnresolvedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportUnresolvedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportUnresolvedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportUnresolvedEvent.class + ": data is missing"); + return new ImportUnresolvedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportUnresolvedEvent without checking for non-null required values + * @return ImportUnresolvedEvent + */ + public ImportUnresolvedEvent buildUnchecked() { + return new ImportUnresolvedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportUnresolvedEventBuilder + * @return builder + */ + public static ImportUnresolvedEventBuilder of() { + return new ImportUnresolvedEventBuilder(); + } + + /** + * create builder for ImportUnresolvedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportUnresolvedEventBuilder of(final ImportUnresolvedEvent template) { + ImportUnresolvedEventBuilder builder = new ImportUnresolvedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventData.java new file mode 100644 index 00000000000..b420ee9f903 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventData.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +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; + +/** + *

                  The data of the Import Unresolved Event.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportUnresolvedEventData importUnresolvedEventData = ImportUnresolvedEventData.builder()
                  + *             .id("{id}")
                  + *             .version(1)
                  + *             .importContainerKey("{importContainerKey}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportUnresolvedEventDataImpl.class) +public interface ImportUnresolvedEventData { + + /** + *

                  The id of the Import Operation with the unresolved state.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

                  The version of the Import Operation with the unresolved state.

                  + * @return version + */ + @NotNull + @JsonProperty("version") + public Integer getVersion(); + + /** + *

                  The key of the Import Container.

                  + * @return importContainerKey + */ + @NotNull + @JsonProperty("importContainerKey") + public String getImportContainerKey(); + + /** + *

                  The id of the Import Operation with the unresolved state.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + *

                  The version of the Import Operation with the unresolved state.

                  + * @param version value to be set + */ + + public void setVersion(final Integer version); + + /** + *

                  The key of the Import Container.

                  + * @param importContainerKey value to be set + */ + + public void setImportContainerKey(final String importContainerKey); + + /** + * factory method + * @return instance of ImportUnresolvedEventData + */ + public static ImportUnresolvedEventData of() { + return new ImportUnresolvedEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportUnresolvedEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportUnresolvedEventData of(final ImportUnresolvedEventData template) { + ImportUnresolvedEventDataImpl instance = new ImportUnresolvedEventDataImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setImportContainerKey(template.getImportContainerKey()); + return instance; + } + + /** + * factory method to create a deep copy of ImportUnresolvedEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportUnresolvedEventData deepCopy(@Nullable final ImportUnresolvedEventData template) { + if (template == null) { + return null; + } + ImportUnresolvedEventDataImpl instance = new ImportUnresolvedEventDataImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setImportContainerKey(template.getImportContainerKey()); + return instance; + } + + /** + * builder factory method for ImportUnresolvedEventData + * @return builder + */ + public static ImportUnresolvedEventDataBuilder builder() { + return ImportUnresolvedEventDataBuilder.of(); + } + + /** + * create builder for ImportUnresolvedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportUnresolvedEventDataBuilder builder(final ImportUnresolvedEventData template) { + return ImportUnresolvedEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportUnresolvedEventData(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataBuilder.java new file mode 100644 index 00000000000..1e59cdf1262 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataBuilder.java @@ -0,0 +1,132 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportUnresolvedEventDataBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportUnresolvedEventData importUnresolvedEventData = ImportUnresolvedEventData.builder()
                  + *             .id("{id}")
                  + *             .version(1)
                  + *             .importContainerKey("{importContainerKey}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportUnresolvedEventDataBuilder implements Builder { + + private String id; + + private Integer version; + + private String importContainerKey; + + /** + *

                  The id of the Import Operation with the unresolved state.

                  + * @param id value to be set + * @return Builder + */ + + public ImportUnresolvedEventDataBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  The version of the Import Operation with the unresolved state.

                  + * @param version value to be set + * @return Builder + */ + + public ImportUnresolvedEventDataBuilder version(final Integer version) { + this.version = version; + return this; + } + + /** + *

                  The key of the Import Container.

                  + * @param importContainerKey value to be set + * @return Builder + */ + + public ImportUnresolvedEventDataBuilder importContainerKey(final String importContainerKey) { + this.importContainerKey = importContainerKey; + return this; + } + + /** + *

                  The id of the Import Operation with the unresolved state.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

                  The version of the Import Operation with the unresolved state.

                  + * @return version + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  The key of the Import Container.

                  + * @return importContainerKey + */ + + public String getImportContainerKey() { + return this.importContainerKey; + } + + /** + * builds ImportUnresolvedEventData with checking for non-null required values + * @return ImportUnresolvedEventData + */ + public ImportUnresolvedEventData build() { + Objects.requireNonNull(id, ImportUnresolvedEventData.class + ": id is missing"); + Objects.requireNonNull(version, ImportUnresolvedEventData.class + ": version is missing"); + Objects.requireNonNull(importContainerKey, ImportUnresolvedEventData.class + ": importContainerKey is missing"); + return new ImportUnresolvedEventDataImpl(id, version, importContainerKey); + } + + /** + * builds ImportUnresolvedEventData without checking for non-null required values + * @return ImportUnresolvedEventData + */ + public ImportUnresolvedEventData buildUnchecked() { + return new ImportUnresolvedEventDataImpl(id, version, importContainerKey); + } + + /** + * factory method for an instance of ImportUnresolvedEventDataBuilder + * @return builder + */ + public static ImportUnresolvedEventDataBuilder of() { + return new ImportUnresolvedEventDataBuilder(); + } + + /** + * create builder for ImportUnresolvedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportUnresolvedEventDataBuilder of(final ImportUnresolvedEventData template) { + ImportUnresolvedEventDataBuilder builder = new ImportUnresolvedEventDataBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.importContainerKey = template.getImportContainerKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataImpl.java new file mode 100644 index 00000000000..5e1305a69dd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataImpl.java @@ -0,0 +1,116 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  The data of the Import Unresolved Event.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportUnresolvedEventDataImpl implements ImportUnresolvedEventData, ModelBase { + + private String id; + + private Integer version; + + private String importContainerKey; + + /** + * create instance with all properties + */ + @JsonCreator + ImportUnresolvedEventDataImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Integer version, + @JsonProperty("importContainerKey") final String importContainerKey) { + this.id = id; + this.version = version; + this.importContainerKey = importContainerKey; + } + + /** + * create empty instance + */ + public ImportUnresolvedEventDataImpl() { + } + + /** + *

                  The id of the Import Operation with the unresolved state.

                  + */ + + public String getId() { + return this.id; + } + + /** + *

                  The version of the Import Operation with the unresolved state.

                  + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  The key of the Import Container.

                  + */ + + public String getImportContainerKey() { + return this.importContainerKey; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Integer version) { + this.version = version; + } + + public void setImportContainerKey(final String importContainerKey) { + this.importContainerKey = importContainerKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportUnresolvedEventDataImpl that = (ImportUnresolvedEventDataImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(importContainerKey, that.importContainerKey) + .append(id, that.id) + .append(version, that.version) + .append(importContainerKey, that.importContainerKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(version).append(importContainerKey).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("importContainerKey", importContainerKey) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventImpl.java new file mode 100644 index 00000000000..b760231e883 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when an Import Operation has the unresolved ProcessingState.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportUnresolvedEventImpl implements ImportUnresolvedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportUnresolvedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportUnresolvedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportUnresolvedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportUnresolved"); + } + + /** + * create empty instance + */ + public ImportUnresolvedEventImpl() { + this.type = EventType.findEnum("ImportUnresolved"); + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the unresolved state.

                  + */ + + public com.commercetools.api.models.event.ImportUnresolvedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportUnresolvedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportUnresolvedEventImpl that = (ImportUnresolvedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEvent.java new file mode 100644 index 00000000000..4d13fac45f5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when an Import Operation has the validationFailed ProcessingState.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportValidationFailedEvent importValidationFailedEvent = ImportValidationFailedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportValidationFailedEventImpl.class) +public interface ImportValidationFailedEvent extends Event { + + /** + * discriminator value for ImportValidationFailedEvent + */ + String IMPORT_VALIDATION_FAILED = "ImportValidationFailed"; + + /** + * + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportValidationFailedEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + * @param data value to be set + */ + + public void setData(final ImportValidationFailedEventData data); + + /** + * factory method + * @return instance of ImportValidationFailedEvent + */ + public static ImportValidationFailedEvent of() { + return new ImportValidationFailedEventImpl(); + } + + /** + * factory method to create a shallow copy ImportValidationFailedEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportValidationFailedEvent of(final ImportValidationFailedEvent template) { + ImportValidationFailedEventImpl instance = new ImportValidationFailedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportValidationFailedEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportValidationFailedEvent deepCopy(@Nullable final ImportValidationFailedEvent template) { + if (template == null) { + return null; + } + ImportValidationFailedEventImpl instance = new ImportValidationFailedEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportValidationFailedEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportValidationFailedEvent + * @return builder + */ + public static ImportValidationFailedEventBuilder builder() { + return ImportValidationFailedEventBuilder.of(); + } + + /** + * create builder for ImportValidationFailedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportValidationFailedEventBuilder builder(final ImportValidationFailedEvent template) { + return ImportValidationFailedEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportValidationFailedEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventBuilder.java new file mode 100644 index 00000000000..2091eed0051 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventBuilder.java @@ -0,0 +1,210 @@ + +package com.commercetools.api.models.event; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportValidationFailedEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportValidationFailedEvent importValidationFailedEvent = ImportValidationFailedEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportValidationFailedEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportValidationFailedEventData data; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public ImportValidationFailedEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportValidationFailedEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportValidationFailedEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportValidationFailedEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportValidationFailedEventBuilder data( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportValidationFailedEventDataBuilder.of()) + .build(); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportValidationFailedEventBuilder withData( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportValidationFailedEventDataBuilder.of()); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + * @param data value to be set + * @return Builder + */ + + public ImportValidationFailedEventBuilder data( + final com.commercetools.api.models.event.ImportValidationFailedEventData data) { + this.data = data; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + * @return data + */ + + public com.commercetools.api.models.event.ImportValidationFailedEventData getData() { + return this.data; + } + + /** + * builds ImportValidationFailedEvent with checking for non-null required values + * @return ImportValidationFailedEvent + */ + public ImportValidationFailedEvent build() { + Objects.requireNonNull(id, ImportValidationFailedEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, ImportValidationFailedEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportValidationFailedEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportValidationFailedEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportValidationFailedEvent.class + ": data is missing"); + return new ImportValidationFailedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportValidationFailedEvent without checking for non-null required values + * @return ImportValidationFailedEvent + */ + public ImportValidationFailedEvent buildUnchecked() { + return new ImportValidationFailedEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportValidationFailedEventBuilder + * @return builder + */ + public static ImportValidationFailedEventBuilder of() { + return new ImportValidationFailedEventBuilder(); + } + + /** + * create builder for ImportValidationFailedEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportValidationFailedEventBuilder of(final ImportValidationFailedEvent template) { + ImportValidationFailedEventBuilder builder = new ImportValidationFailedEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventData.java new file mode 100644 index 00000000000..dfeb3e6e9d6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventData.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +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; + +/** + *

                  The data of the Import Validation Failed Event.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportValidationFailedEventData importValidationFailedEventData = ImportValidationFailedEventData.builder()
                  + *             .id("{id}")
                  + *             .version(1)
                  + *             .importContainerKey("{importContainerKey}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportValidationFailedEventDataImpl.class) +public interface ImportValidationFailedEventData { + + /** + *

                  The id of the Import Operation with the validationFailed state.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

                  The version of the Import Operation with the validationFailed state.

                  + * @return version + */ + @NotNull + @JsonProperty("version") + public Integer getVersion(); + + /** + *

                  The key of the Import Container.

                  + * @return importContainerKey + */ + @NotNull + @JsonProperty("importContainerKey") + public String getImportContainerKey(); + + /** + *

                  The id of the Import Operation with the validationFailed state.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + *

                  The version of the Import Operation with the validationFailed state.

                  + * @param version value to be set + */ + + public void setVersion(final Integer version); + + /** + *

                  The key of the Import Container.

                  + * @param importContainerKey value to be set + */ + + public void setImportContainerKey(final String importContainerKey); + + /** + * factory method + * @return instance of ImportValidationFailedEventData + */ + public static ImportValidationFailedEventData of() { + return new ImportValidationFailedEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportValidationFailedEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportValidationFailedEventData of(final ImportValidationFailedEventData template) { + ImportValidationFailedEventDataImpl instance = new ImportValidationFailedEventDataImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setImportContainerKey(template.getImportContainerKey()); + return instance; + } + + /** + * factory method to create a deep copy of ImportValidationFailedEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportValidationFailedEventData deepCopy(@Nullable final ImportValidationFailedEventData template) { + if (template == null) { + return null; + } + ImportValidationFailedEventDataImpl instance = new ImportValidationFailedEventDataImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setImportContainerKey(template.getImportContainerKey()); + return instance; + } + + /** + * builder factory method for ImportValidationFailedEventData + * @return builder + */ + public static ImportValidationFailedEventDataBuilder builder() { + return ImportValidationFailedEventDataBuilder.of(); + } + + /** + * create builder for ImportValidationFailedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportValidationFailedEventDataBuilder builder(final ImportValidationFailedEventData template) { + return ImportValidationFailedEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportValidationFailedEventData(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataBuilder.java new file mode 100644 index 00000000000..745d48fa75a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataBuilder.java @@ -0,0 +1,133 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportValidationFailedEventDataBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportValidationFailedEventData importValidationFailedEventData = ImportValidationFailedEventData.builder()
                  + *             .id("{id}")
                  + *             .version(1)
                  + *             .importContainerKey("{importContainerKey}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportValidationFailedEventDataBuilder implements Builder { + + private String id; + + private Integer version; + + private String importContainerKey; + + /** + *

                  The id of the Import Operation with the validationFailed state.

                  + * @param id value to be set + * @return Builder + */ + + public ImportValidationFailedEventDataBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  The version of the Import Operation with the validationFailed state.

                  + * @param version value to be set + * @return Builder + */ + + public ImportValidationFailedEventDataBuilder version(final Integer version) { + this.version = version; + return this; + } + + /** + *

                  The key of the Import Container.

                  + * @param importContainerKey value to be set + * @return Builder + */ + + public ImportValidationFailedEventDataBuilder importContainerKey(final String importContainerKey) { + this.importContainerKey = importContainerKey; + return this; + } + + /** + *

                  The id of the Import Operation with the validationFailed state.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

                  The version of the Import Operation with the validationFailed state.

                  + * @return version + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  The key of the Import Container.

                  + * @return importContainerKey + */ + + public String getImportContainerKey() { + return this.importContainerKey; + } + + /** + * builds ImportValidationFailedEventData with checking for non-null required values + * @return ImportValidationFailedEventData + */ + public ImportValidationFailedEventData build() { + Objects.requireNonNull(id, ImportValidationFailedEventData.class + ": id is missing"); + Objects.requireNonNull(version, ImportValidationFailedEventData.class + ": version is missing"); + Objects.requireNonNull(importContainerKey, + ImportValidationFailedEventData.class + ": importContainerKey is missing"); + return new ImportValidationFailedEventDataImpl(id, version, importContainerKey); + } + + /** + * builds ImportValidationFailedEventData without checking for non-null required values + * @return ImportValidationFailedEventData + */ + public ImportValidationFailedEventData buildUnchecked() { + return new ImportValidationFailedEventDataImpl(id, version, importContainerKey); + } + + /** + * factory method for an instance of ImportValidationFailedEventDataBuilder + * @return builder + */ + public static ImportValidationFailedEventDataBuilder of() { + return new ImportValidationFailedEventDataBuilder(); + } + + /** + * create builder for ImportValidationFailedEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportValidationFailedEventDataBuilder of(final ImportValidationFailedEventData template) { + ImportValidationFailedEventDataBuilder builder = new ImportValidationFailedEventDataBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.importContainerKey = template.getImportContainerKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataImpl.java new file mode 100644 index 00000000000..fd94c5999c9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  The data of the Import Validation Failed Event.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportValidationFailedEventDataImpl implements ImportValidationFailedEventData, ModelBase { + + private String id; + + private Integer version; + + private String importContainerKey; + + /** + * create instance with all properties + */ + @JsonCreator + ImportValidationFailedEventDataImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Integer version, + @JsonProperty("importContainerKey") final String importContainerKey) { + this.id = id; + this.version = version; + this.importContainerKey = importContainerKey; + } + + /** + * create empty instance + */ + public ImportValidationFailedEventDataImpl() { + } + + /** + *

                  The id of the Import Operation with the validationFailed state.

                  + */ + + public String getId() { + return this.id; + } + + /** + *

                  The version of the Import Operation with the validationFailed state.

                  + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  The key of the Import Container.

                  + */ + + public String getImportContainerKey() { + return this.importContainerKey; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Integer version) { + this.version = version; + } + + public void setImportContainerKey(final String importContainerKey) { + this.importContainerKey = importContainerKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportValidationFailedEventDataImpl that = (ImportValidationFailedEventDataImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(importContainerKey, that.importContainerKey) + .append(id, that.id) + .append(version, that.version) + .append(importContainerKey, that.importContainerKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(version).append(importContainerKey).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("importContainerKey", importContainerKey) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventImpl.java new file mode 100644 index 00000000000..b2d8471fd1c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when an Import Operation has the validationFailed ProcessingState.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportValidationFailedEventImpl implements ImportValidationFailedEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportValidationFailedEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportValidationFailedEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportValidationFailedEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportValidationFailed"); + } + + /** + * create empty instance + */ + public ImportValidationFailedEventImpl() { + this.type = EventType.findEnum("ImportValidationFailed"); + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the validationFailed state.

                  + */ + + public com.commercetools.api.models.event.ImportValidationFailedEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportValidationFailedEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportValidationFailedEventImpl that = (ImportValidationFailedEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEvent.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEvent.java new file mode 100644 index 00000000000..1ac8fa6fe81 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEvent.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when an Import Operation has the waitForMasterVariant ProcessingState.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportWaitForMasterVariantEvent importWaitForMasterVariantEvent = ImportWaitForMasterVariantEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportWaitForMasterVariantEventImpl.class) +public interface ImportWaitForMasterVariantEvent extends Event { + + /** + * discriminator value for ImportWaitForMasterVariantEvent + */ + String IMPORT_WAIT_FOR_MASTER_VARIANT = "ImportWaitForMasterVariant"; + + /** + * + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public EventSubscriptionResourceTypeId getResourceType(); + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public ImportWaitForMasterVariantEventData getData(); + + /** + * set resourceType + * @param resourceType value to be set + */ + + public void setResourceType(final EventSubscriptionResourceTypeId resourceType); + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + * @param data value to be set + */ + + public void setData(final ImportWaitForMasterVariantEventData data); + + /** + * factory method + * @return instance of ImportWaitForMasterVariantEvent + */ + public static ImportWaitForMasterVariantEvent of() { + return new ImportWaitForMasterVariantEventImpl(); + } + + /** + * factory method to create a shallow copy ImportWaitForMasterVariantEvent + * @param template instance to be copied + * @return copy instance + */ + public static ImportWaitForMasterVariantEvent of(final ImportWaitForMasterVariantEvent template) { + ImportWaitForMasterVariantEventImpl instance = new ImportWaitForMasterVariantEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData(template.getData()); + return instance; + } + + /** + * factory method to create a deep copy of ImportWaitForMasterVariantEvent + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportWaitForMasterVariantEvent deepCopy(@Nullable final ImportWaitForMasterVariantEvent template) { + if (template == null) { + return null; + } + ImportWaitForMasterVariantEventImpl instance = new ImportWaitForMasterVariantEventImpl(); + instance.setId(template.getId()); + instance.setNotificationType(template.getNotificationType()); + instance.setResourceType(template.getResourceType()); + instance.setCreatedAt(template.getCreatedAt()); + instance.setData( + com.commercetools.api.models.event.ImportWaitForMasterVariantEventData.deepCopy(template.getData())); + return instance; + } + + /** + * builder factory method for ImportWaitForMasterVariantEvent + * @return builder + */ + public static ImportWaitForMasterVariantEventBuilder builder() { + return ImportWaitForMasterVariantEventBuilder.of(); + } + + /** + * create builder for ImportWaitForMasterVariantEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportWaitForMasterVariantEventBuilder builder(final ImportWaitForMasterVariantEvent template) { + return ImportWaitForMasterVariantEventBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportWaitForMasterVariantEvent(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventBuilder.java new file mode 100644 index 00000000000..e4f67cf64a7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventBuilder.java @@ -0,0 +1,211 @@ + +package com.commercetools.api.models.event; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportWaitForMasterVariantEventBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportWaitForMasterVariantEvent importWaitForMasterVariantEvent = ImportWaitForMasterVariantEvent.builder()
                  + *             .id("{id}")
                  + *             .notificationType("{notificationType}")
                  + *             .resourceType(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportWaitForMasterVariantEventBuilder implements Builder { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportWaitForMasterVariantEventData data; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder id(final String id) { + this.id = id; + return this; + } + + /** + * set the value to the notificationType + * @param notificationType value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder notificationType(final String notificationType) { + this.notificationType = notificationType; + return this; + } + + /** + * set the value to the resourceType + * @param resourceType value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder resourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder data( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportWaitForMasterVariantEventDataBuilder.of()) + .build(); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + * @param builder function to build the data value + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder withData( + Function builder) { + this.data = builder.apply(com.commercetools.api.models.event.ImportWaitForMasterVariantEventDataBuilder.of()); + return this; + } + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + * @param data value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventBuilder data( + final com.commercetools.api.models.event.ImportWaitForMasterVariantEventData data) { + this.data = data; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + * value of notificationType} + * @return notificationType + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * value of resourceType} + * @return resourceType + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + * @return data + */ + + public com.commercetools.api.models.event.ImportWaitForMasterVariantEventData getData() { + return this.data; + } + + /** + * builds ImportWaitForMasterVariantEvent with checking for non-null required values + * @return ImportWaitForMasterVariantEvent + */ + public ImportWaitForMasterVariantEvent build() { + Objects.requireNonNull(id, ImportWaitForMasterVariantEvent.class + ": id is missing"); + Objects.requireNonNull(notificationType, + ImportWaitForMasterVariantEvent.class + ": notificationType is missing"); + Objects.requireNonNull(resourceType, ImportWaitForMasterVariantEvent.class + ": resourceType is missing"); + Objects.requireNonNull(createdAt, ImportWaitForMasterVariantEvent.class + ": createdAt is missing"); + Objects.requireNonNull(data, ImportWaitForMasterVariantEvent.class + ": data is missing"); + return new ImportWaitForMasterVariantEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * builds ImportWaitForMasterVariantEvent without checking for non-null required values + * @return ImportWaitForMasterVariantEvent + */ + public ImportWaitForMasterVariantEvent buildUnchecked() { + return new ImportWaitForMasterVariantEventImpl(id, notificationType, resourceType, createdAt, data); + } + + /** + * factory method for an instance of ImportWaitForMasterVariantEventBuilder + * @return builder + */ + public static ImportWaitForMasterVariantEventBuilder of() { + return new ImportWaitForMasterVariantEventBuilder(); + } + + /** + * create builder for ImportWaitForMasterVariantEvent instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportWaitForMasterVariantEventBuilder of(final ImportWaitForMasterVariantEvent template) { + ImportWaitForMasterVariantEventBuilder builder = new ImportWaitForMasterVariantEventBuilder(); + builder.id = template.getId(); + builder.notificationType = template.getNotificationType(); + builder.resourceType = template.getResourceType(); + builder.createdAt = template.getCreatedAt(); + builder.data = template.getData(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventData.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventData.java new file mode 100644 index 00000000000..9aa4302c387 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventData.java @@ -0,0 +1,160 @@ + +package com.commercetools.api.models.event; + +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; + +/** + *

                  The data of the Import Wait For Master Variant Event.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportWaitForMasterVariantEventData importWaitForMasterVariantEventData = ImportWaitForMasterVariantEventData.builder()
                  + *             .id("{id}")
                  + *             .version(1)
                  + *             .importContainerKey("{importContainerKey}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = ImportWaitForMasterVariantEventDataImpl.class) +public interface ImportWaitForMasterVariantEventData { + + /** + *

                  The id of the Import Operation with the waitForMasterVariant state.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

                  The version of the Import Operation with the waitForMasterVariant state.

                  + * @return version + */ + @NotNull + @JsonProperty("version") + public Integer getVersion(); + + /** + *

                  The key of the Import Container.

                  + * @return importContainerKey + */ + @NotNull + @JsonProperty("importContainerKey") + public String getImportContainerKey(); + + /** + *

                  The id of the Import Operation with the waitForMasterVariant state.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + *

                  The version of the Import Operation with the waitForMasterVariant state.

                  + * @param version value to be set + */ + + public void setVersion(final Integer version); + + /** + *

                  The key of the Import Container.

                  + * @param importContainerKey value to be set + */ + + public void setImportContainerKey(final String importContainerKey); + + /** + * factory method + * @return instance of ImportWaitForMasterVariantEventData + */ + public static ImportWaitForMasterVariantEventData of() { + return new ImportWaitForMasterVariantEventDataImpl(); + } + + /** + * factory method to create a shallow copy ImportWaitForMasterVariantEventData + * @param template instance to be copied + * @return copy instance + */ + public static ImportWaitForMasterVariantEventData of(final ImportWaitForMasterVariantEventData template) { + ImportWaitForMasterVariantEventDataImpl instance = new ImportWaitForMasterVariantEventDataImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setImportContainerKey(template.getImportContainerKey()); + return instance; + } + + /** + * factory method to create a deep copy of ImportWaitForMasterVariantEventData + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static ImportWaitForMasterVariantEventData deepCopy( + @Nullable final ImportWaitForMasterVariantEventData template) { + if (template == null) { + return null; + } + ImportWaitForMasterVariantEventDataImpl instance = new ImportWaitForMasterVariantEventDataImpl(); + instance.setId(template.getId()); + instance.setVersion(template.getVersion()); + instance.setImportContainerKey(template.getImportContainerKey()); + return instance; + } + + /** + * builder factory method for ImportWaitForMasterVariantEventData + * @return builder + */ + public static ImportWaitForMasterVariantEventDataBuilder builder() { + return ImportWaitForMasterVariantEventDataBuilder.of(); + } + + /** + * create builder for ImportWaitForMasterVariantEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportWaitForMasterVariantEventDataBuilder builder( + final ImportWaitForMasterVariantEventData template) { + return ImportWaitForMasterVariantEventDataBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withImportWaitForMasterVariantEventData(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataBuilder.java new file mode 100644 index 00000000000..771ce8badab --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataBuilder.java @@ -0,0 +1,133 @@ + +package com.commercetools.api.models.event; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * ImportWaitForMasterVariantEventDataBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     ImportWaitForMasterVariantEventData importWaitForMasterVariantEventData = ImportWaitForMasterVariantEventData.builder()
                  + *             .id("{id}")
                  + *             .version(1)
                  + *             .importContainerKey("{importContainerKey}")
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportWaitForMasterVariantEventDataBuilder implements Builder { + + private String id; + + private Integer version; + + private String importContainerKey; + + /** + *

                  The id of the Import Operation with the waitForMasterVariant state.

                  + * @param id value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventDataBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  The version of the Import Operation with the waitForMasterVariant state.

                  + * @param version value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventDataBuilder version(final Integer version) { + this.version = version; + return this; + } + + /** + *

                  The key of the Import Container.

                  + * @param importContainerKey value to be set + * @return Builder + */ + + public ImportWaitForMasterVariantEventDataBuilder importContainerKey(final String importContainerKey) { + this.importContainerKey = importContainerKey; + return this; + } + + /** + *

                  The id of the Import Operation with the waitForMasterVariant state.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

                  The version of the Import Operation with the waitForMasterVariant state.

                  + * @return version + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  The key of the Import Container.

                  + * @return importContainerKey + */ + + public String getImportContainerKey() { + return this.importContainerKey; + } + + /** + * builds ImportWaitForMasterVariantEventData with checking for non-null required values + * @return ImportWaitForMasterVariantEventData + */ + public ImportWaitForMasterVariantEventData build() { + Objects.requireNonNull(id, ImportWaitForMasterVariantEventData.class + ": id is missing"); + Objects.requireNonNull(version, ImportWaitForMasterVariantEventData.class + ": version is missing"); + Objects.requireNonNull(importContainerKey, + ImportWaitForMasterVariantEventData.class + ": importContainerKey is missing"); + return new ImportWaitForMasterVariantEventDataImpl(id, version, importContainerKey); + } + + /** + * builds ImportWaitForMasterVariantEventData without checking for non-null required values + * @return ImportWaitForMasterVariantEventData + */ + public ImportWaitForMasterVariantEventData buildUnchecked() { + return new ImportWaitForMasterVariantEventDataImpl(id, version, importContainerKey); + } + + /** + * factory method for an instance of ImportWaitForMasterVariantEventDataBuilder + * @return builder + */ + public static ImportWaitForMasterVariantEventDataBuilder of() { + return new ImportWaitForMasterVariantEventDataBuilder(); + } + + /** + * create builder for ImportWaitForMasterVariantEventData instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static ImportWaitForMasterVariantEventDataBuilder of(final ImportWaitForMasterVariantEventData template) { + ImportWaitForMasterVariantEventDataBuilder builder = new ImportWaitForMasterVariantEventDataBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.importContainerKey = template.getImportContainerKey(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataImpl.java new file mode 100644 index 00000000000..f88d5d3d89b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  The data of the Import Wait For Master Variant Event.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportWaitForMasterVariantEventDataImpl implements ImportWaitForMasterVariantEventData, ModelBase { + + private String id; + + private Integer version; + + private String importContainerKey; + + /** + * create instance with all properties + */ + @JsonCreator + ImportWaitForMasterVariantEventDataImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Integer version, + @JsonProperty("importContainerKey") final String importContainerKey) { + this.id = id; + this.version = version; + this.importContainerKey = importContainerKey; + } + + /** + * create empty instance + */ + public ImportWaitForMasterVariantEventDataImpl() { + } + + /** + *

                  The id of the Import Operation with the waitForMasterVariant state.

                  + */ + + public String getId() { + return this.id; + } + + /** + *

                  The version of the Import Operation with the waitForMasterVariant state.

                  + */ + + public Integer getVersion() { + return this.version; + } + + /** + *

                  The key of the Import Container.

                  + */ + + public String getImportContainerKey() { + return this.importContainerKey; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Integer version) { + this.version = version; + } + + public void setImportContainerKey(final String importContainerKey) { + this.importContainerKey = importContainerKey; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportWaitForMasterVariantEventDataImpl that = (ImportWaitForMasterVariantEventDataImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(importContainerKey, that.importContainerKey) + .append(id, that.id) + .append(version, that.version) + .append(importContainerKey, that.importContainerKey) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id).append(version).append(importContainerKey).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("importContainerKey", importContainerKey) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventImpl.java new file mode 100644 index 00000000000..e05e5db7eb8 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventImpl.java @@ -0,0 +1,178 @@ + +package com.commercetools.api.models.event; + +import java.time.*; +import java.util.*; + +import com.commercetools.api.models.subscription.EventType; +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when an Import Operation has the waitForMasterVariant ProcessingState.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class ImportWaitForMasterVariantEventImpl implements ImportWaitForMasterVariantEvent, ModelBase { + + private String id; + + private String notificationType; + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType; + + private com.commercetools.api.models.subscription.EventType type; + + private java.time.ZonedDateTime createdAt; + + private com.commercetools.api.models.event.ImportWaitForMasterVariantEventData data; + + /** + * create instance with all properties + */ + @JsonCreator + ImportWaitForMasterVariantEventImpl(@JsonProperty("id") final String id, + @JsonProperty("notificationType") final String notificationType, + @JsonProperty("resourceType") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("data") final com.commercetools.api.models.event.ImportWaitForMasterVariantEventData data) { + this.id = id; + this.notificationType = notificationType; + this.resourceType = resourceType; + this.createdAt = createdAt; + this.data = data; + this.type = EventType.findEnum("ImportWaitForMasterVariant"); + } + + /** + * create empty instance + */ + public ImportWaitForMasterVariantEventImpl() { + this.type = EventType.findEnum("ImportWaitForMasterVariant"); + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + * + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + * + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceType() { + return this.resourceType; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  Date and time (UTC) the Event was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  An object containing details of the Import Operation with the waitForMasterVariant state.

                  + */ + + public com.commercetools.api.models.event.ImportWaitForMasterVariantEventData getData() { + return this.data; + } + + public void setId(final String id) { + this.id = id; + } + + public void setNotificationType(final String notificationType) { + this.notificationType = notificationType; + } + + public void setResourceType( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceType) { + this.resourceType = resourceType; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setData(final com.commercetools.api.models.event.ImportWaitForMasterVariantEventData data) { + this.data = data; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + ImportWaitForMasterVariantEventImpl that = (ImportWaitForMasterVariantEventImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .append(id, that.id) + .append(notificationType, that.notificationType) + .append(resourceType, that.resourceType) + .append(type, that.type) + .append(createdAt, that.createdAt) + .append(data, that.data) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(notificationType) + .append(resourceType) + .append(type) + .append(createdAt) + .append(data) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("notificationType", notificationType) + .append("resourceType", resourceType) + .append("type", type) + .append("createdAt", createdAt) + .append("data", data) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessage.java new file mode 100644 index 00000000000..d3abc04c015 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessage.java @@ -0,0 +1,181 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.business_unit.BusinessUnitKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when a Business Unit topLevelUnit is modified due to a hierarchy change after a successful Set Unit Type or Change Parent Unit update action.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTopLevelUnitSetMessage businessUnitTopLevelUnitSetMessage = BusinessUnitTopLevelUnitSetMessage.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)
                  + *             .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
                  + *             .oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitTopLevelUnitSetMessageImpl.class) +public interface BusinessUnitTopLevelUnitSetMessage extends Message { + + /** + * discriminator value for BusinessUnitTopLevelUnitSetMessage + */ + String BUSINESS_UNIT_TOP_LEVEL_UNIT_SET = "BusinessUnitTopLevelUnitSet"; + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @return topLevelUnit + */ + @NotNull + @Valid + @JsonProperty("topLevelUnit") + public BusinessUnitKeyReference getTopLevelUnit(); + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @return oldTopLevelUnit + */ + @NotNull + @Valid + @JsonProperty("oldTopLevelUnit") + public BusinessUnitKeyReference getOldTopLevelUnit(); + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param topLevelUnit value to be set + */ + + public void setTopLevelUnit(final BusinessUnitKeyReference topLevelUnit); + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param oldTopLevelUnit value to be set + */ + + public void setOldTopLevelUnit(final BusinessUnitKeyReference oldTopLevelUnit); + + /** + * factory method + * @return instance of BusinessUnitTopLevelUnitSetMessage + */ + public static BusinessUnitTopLevelUnitSetMessage of() { + return new BusinessUnitTopLevelUnitSetMessageImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitTopLevelUnitSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitTopLevelUnitSetMessage of(final BusinessUnitTopLevelUnitSetMessage template) { + BusinessUnitTopLevelUnitSetMessageImpl instance = new BusinessUnitTopLevelUnitSetMessageImpl(); + 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.setTopLevelUnit(template.getTopLevelUnit()); + instance.setOldTopLevelUnit(template.getOldTopLevelUnit()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitTopLevelUnitSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitTopLevelUnitSetMessage deepCopy( + @Nullable final BusinessUnitTopLevelUnitSetMessage template) { + if (template == null) { + return null; + } + BusinessUnitTopLevelUnitSetMessageImpl instance = new BusinessUnitTopLevelUnitSetMessageImpl(); + 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.setTopLevelUnit( + com.commercetools.api.models.business_unit.BusinessUnitKeyReference.deepCopy(template.getTopLevelUnit())); + instance.setOldTopLevelUnit(com.commercetools.api.models.business_unit.BusinessUnitKeyReference + .deepCopy(template.getOldTopLevelUnit())); + return instance; + } + + /** + * builder factory method for BusinessUnitTopLevelUnitSetMessage + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessageBuilder builder() { + return BusinessUnitTopLevelUnitSetMessageBuilder.of(); + } + + /** + * create builder for BusinessUnitTopLevelUnitSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessageBuilder builder(final BusinessUnitTopLevelUnitSetMessage template) { + return BusinessUnitTopLevelUnitSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitTopLevelUnitSetMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageBuilder.java new file mode 100644 index 00000000000..41ccd0d9715 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageBuilder.java @@ -0,0 +1,515 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitTopLevelUnitSetMessageBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTopLevelUnitSetMessage businessUnitTopLevelUnitSetMessage = BusinessUnitTopLevelUnitSetMessage.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)
                  + *             .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
                  + *             .oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTopLevelUnitSetMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit; + + /** + *

                  Unique identifier of the Message. Can be used to track which Messages have been processed.

                  + * @param id value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  Version of a resource. In case of Messages, this is always 1.

                  + * @param version value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

                  Date and time (UTC) the Message was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  Value of createdAt.

                  + * @param lastModifiedAt value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @param lastModifiedBy value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

                  IDs and references that created the Message.

                  + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

                  IDs and references that created the Message.

                  + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

                  IDs and references that created the Message.

                  + * @param createdBy value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

                  Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

                  + * @param sequenceNumber value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + * @param resource value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder resource( + final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + * @param builder function to build the resource value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

                  Version of the resource on which the change or action was performed.

                  + * @param resourceVersion value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the topLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder topLevelUnit( + Function builder) { + this.topLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the topLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder withTopLevelUnit( + Function builder) { + this.topLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param topLevelUnit value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder topLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit) { + this.topLevelUnit = topLevelUnit; + return this; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the oldTopLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder oldTopLevelUnit( + Function builder) { + this.oldTopLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the oldTopLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder withOldTopLevelUnit( + Function builder) { + this.oldTopLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param oldTopLevelUnit value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessageBuilder oldTopLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit) { + this.oldTopLevelUnit = oldTopLevelUnit; + return this; + } + + /** + *

                  Unique identifier of the Message. Can be used to track which Messages have been processed.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

                  Version of a resource. In case of Messages, this is always 1.

                  + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

                  Date and time (UTC) the Message was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  Value of createdAt.

                  + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

                  IDs and references that created the Message.

                  + * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

                  Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

                  + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

                  Version of the resource on which the change or action was performed.

                  + * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @return topLevelUnit + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getTopLevelUnit() { + return this.topLevelUnit; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @return oldTopLevelUnit + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldTopLevelUnit() { + return this.oldTopLevelUnit; + } + + /** + * builds BusinessUnitTopLevelUnitSetMessage with checking for non-null required values + * @return BusinessUnitTopLevelUnitSetMessage + */ + public BusinessUnitTopLevelUnitSetMessage build() { + Objects.requireNonNull(id, BusinessUnitTopLevelUnitSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, BusinessUnitTopLevelUnitSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, BusinessUnitTopLevelUnitSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, + BusinessUnitTopLevelUnitSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, + BusinessUnitTopLevelUnitSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, BusinessUnitTopLevelUnitSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, + BusinessUnitTopLevelUnitSetMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(topLevelUnit, BusinessUnitTopLevelUnitSetMessage.class + ": topLevelUnit is missing"); + Objects.requireNonNull(oldTopLevelUnit, + BusinessUnitTopLevelUnitSetMessage.class + ": oldTopLevelUnit is missing"); + return new BusinessUnitTopLevelUnitSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, topLevelUnit, + oldTopLevelUnit); + } + + /** + * builds BusinessUnitTopLevelUnitSetMessage without checking for non-null required values + * @return BusinessUnitTopLevelUnitSetMessage + */ + public BusinessUnitTopLevelUnitSetMessage buildUnchecked() { + return new BusinessUnitTopLevelUnitSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, + createdBy, sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, topLevelUnit, + oldTopLevelUnit); + } + + /** + * factory method for an instance of BusinessUnitTopLevelUnitSetMessageBuilder + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessageBuilder of() { + return new BusinessUnitTopLevelUnitSetMessageBuilder(); + } + + /** + * create builder for BusinessUnitTopLevelUnitSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessageBuilder of(final BusinessUnitTopLevelUnitSetMessage template) { + BusinessUnitTopLevelUnitSetMessageBuilder builder = new BusinessUnitTopLevelUnitSetMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.topLevelUnit = template.getTopLevelUnit(); + builder.oldTopLevelUnit = template.getOldTopLevelUnit(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageImpl.java new file mode 100644 index 00000000000..14bd442a82a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageImpl.java @@ -0,0 +1,319 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when a Business Unit topLevelUnit is modified due to a hierarchy change after a successful Set Unit Type or Change Parent Unit update action.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTopLevelUnitSetMessageImpl implements BusinessUnitTopLevelUnitSetMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitTopLevelUnitSetMessageImpl(@JsonProperty("id") final String id, + @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("topLevelUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit, + @JsonProperty("oldTopLevelUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.topLevelUnit = topLevelUnit; + this.oldTopLevelUnit = oldTopLevelUnit; + this.type = BUSINESS_UNIT_TOP_LEVEL_UNIT_SET; + } + + /** + * create empty instance + */ + public BusinessUnitTopLevelUnitSetMessageImpl() { + this.type = BUSINESS_UNIT_TOP_LEVEL_UNIT_SET; + } + + /** + *

                  Unique identifier of the Message. Can be used to track which Messages have been processed.

                  + */ + + public String getId() { + return this.id; + } + + /** + *

                  Version of a resource. In case of Messages, this is always 1.

                  + */ + + public Long getVersion() { + return this.version; + } + + /** + *

                  Date and time (UTC) the Message was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  Value of createdAt.

                  + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

                  IDs and references that last modified the Message.

                  + */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

                  IDs and references that created the Message.

                  + */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

                  Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

                  + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

                  Version of the resource on which the change or action was performed.

                  + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

                  Message Type of the Message.

                  + */ + + public String getType() { + return this.type; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getTopLevelUnit() { + return this.topLevelUnit; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldTopLevelUnit() { + return this.oldTopLevelUnit; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setTopLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit) { + this.topLevelUnit = topLevelUnit; + } + + public void setOldTopLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit) { + this.oldTopLevelUnit = oldTopLevelUnit; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitTopLevelUnitSetMessageImpl that = (BusinessUnitTopLevelUnitSetMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(topLevelUnit, that.topLevelUnit) + .append(oldTopLevelUnit, that.oldTopLevelUnit) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(topLevelUnit, that.topLevelUnit) + .append(oldTopLevelUnit, that.oldTopLevelUnit) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(topLevelUnit) + .append(oldTopLevelUnit) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("topLevelUnit", topLevelUnit) + .append("oldTopLevelUnit", oldTopLevelUnit) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayload.java new file mode 100644 index 00000000000..339a66b795a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayload.java @@ -0,0 +1,155 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.business_unit.BusinessUnitKeyReference; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated when a Business Unit topLevelUnit is modified due to a hierarchy change after a successful Set Unit Type or Change Parent Unit update action.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTopLevelUnitSetMessagePayload businessUnitTopLevelUnitSetMessagePayload = BusinessUnitTopLevelUnitSetMessagePayload.builder()
                  + *             .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
                  + *             .oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitTopLevelUnitSetMessagePayloadImpl.class) +public interface BusinessUnitTopLevelUnitSetMessagePayload extends MessagePayload { + + /** + * discriminator value for BusinessUnitTopLevelUnitSetMessagePayload + */ + String BUSINESS_UNIT_TOP_LEVEL_UNIT_SET = "BusinessUnitTopLevelUnitSet"; + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @return topLevelUnit + */ + @NotNull + @Valid + @JsonProperty("topLevelUnit") + public BusinessUnitKeyReference getTopLevelUnit(); + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @return oldTopLevelUnit + */ + @NotNull + @Valid + @JsonProperty("oldTopLevelUnit") + public BusinessUnitKeyReference getOldTopLevelUnit(); + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param topLevelUnit value to be set + */ + + public void setTopLevelUnit(final BusinessUnitKeyReference topLevelUnit); + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param oldTopLevelUnit value to be set + */ + + public void setOldTopLevelUnit(final BusinessUnitKeyReference oldTopLevelUnit); + + /** + * factory method + * @return instance of BusinessUnitTopLevelUnitSetMessagePayload + */ + public static BusinessUnitTopLevelUnitSetMessagePayload of() { + return new BusinessUnitTopLevelUnitSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitTopLevelUnitSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitTopLevelUnitSetMessagePayload of( + final BusinessUnitTopLevelUnitSetMessagePayload template) { + BusinessUnitTopLevelUnitSetMessagePayloadImpl instance = new BusinessUnitTopLevelUnitSetMessagePayloadImpl(); + instance.setTopLevelUnit(template.getTopLevelUnit()); + instance.setOldTopLevelUnit(template.getOldTopLevelUnit()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitTopLevelUnitSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitTopLevelUnitSetMessagePayload deepCopy( + @Nullable final BusinessUnitTopLevelUnitSetMessagePayload template) { + if (template == null) { + return null; + } + BusinessUnitTopLevelUnitSetMessagePayloadImpl instance = new BusinessUnitTopLevelUnitSetMessagePayloadImpl(); + instance.setTopLevelUnit( + com.commercetools.api.models.business_unit.BusinessUnitKeyReference.deepCopy(template.getTopLevelUnit())); + instance.setOldTopLevelUnit(com.commercetools.api.models.business_unit.BusinessUnitKeyReference + .deepCopy(template.getOldTopLevelUnit())); + return instance; + } + + /** + * builder factory method for BusinessUnitTopLevelUnitSetMessagePayload + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessagePayloadBuilder builder() { + return BusinessUnitTopLevelUnitSetMessagePayloadBuilder.of(); + } + + /** + * create builder for BusinessUnitTopLevelUnitSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessagePayloadBuilder builder( + final BusinessUnitTopLevelUnitSetMessagePayload template) { + return BusinessUnitTopLevelUnitSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitTopLevelUnitSetMessagePayload( + Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadBuilder.java new file mode 100644 index 00000000000..020efb77736 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadBuilder.java @@ -0,0 +1,168 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitTopLevelUnitSetMessagePayloadBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTopLevelUnitSetMessagePayload businessUnitTopLevelUnitSetMessagePayload = BusinessUnitTopLevelUnitSetMessagePayload.builder()
                  + *             .topLevelUnit(topLevelUnitBuilder -> topLevelUnitBuilder)
                  + *             .oldTopLevelUnit(oldTopLevelUnitBuilder -> oldTopLevelUnitBuilder)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTopLevelUnitSetMessagePayloadBuilder + implements Builder { + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit; + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the topLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessagePayloadBuilder topLevelUnit( + Function builder) { + this.topLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the topLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessagePayloadBuilder withTopLevelUnit( + Function builder) { + this.topLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @param topLevelUnit value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessagePayloadBuilder topLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit) { + this.topLevelUnit = topLevelUnit; + return this; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the oldTopLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessagePayloadBuilder oldTopLevelUnit( + Function builder) { + this.oldTopLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param builder function to build the oldTopLevelUnit value + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessagePayloadBuilder withOldTopLevelUnit( + Function builder) { + this.oldTopLevelUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @param oldTopLevelUnit value to be set + * @return Builder + */ + + public BusinessUnitTopLevelUnitSetMessagePayloadBuilder oldTopLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit) { + this.oldTopLevelUnit = oldTopLevelUnit; + return this; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + * @return topLevelUnit + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getTopLevelUnit() { + return this.topLevelUnit; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + * @return oldTopLevelUnit + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldTopLevelUnit() { + return this.oldTopLevelUnit; + } + + /** + * builds BusinessUnitTopLevelUnitSetMessagePayload with checking for non-null required values + * @return BusinessUnitTopLevelUnitSetMessagePayload + */ + public BusinessUnitTopLevelUnitSetMessagePayload build() { + Objects.requireNonNull(topLevelUnit, + BusinessUnitTopLevelUnitSetMessagePayload.class + ": topLevelUnit is missing"); + Objects.requireNonNull(oldTopLevelUnit, + BusinessUnitTopLevelUnitSetMessagePayload.class + ": oldTopLevelUnit is missing"); + return new BusinessUnitTopLevelUnitSetMessagePayloadImpl(topLevelUnit, oldTopLevelUnit); + } + + /** + * builds BusinessUnitTopLevelUnitSetMessagePayload without checking for non-null required values + * @return BusinessUnitTopLevelUnitSetMessagePayload + */ + public BusinessUnitTopLevelUnitSetMessagePayload buildUnchecked() { + return new BusinessUnitTopLevelUnitSetMessagePayloadImpl(topLevelUnit, oldTopLevelUnit); + } + + /** + * factory method for an instance of BusinessUnitTopLevelUnitSetMessagePayloadBuilder + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessagePayloadBuilder of() { + return new BusinessUnitTopLevelUnitSetMessagePayloadBuilder(); + } + + /** + * create builder for BusinessUnitTopLevelUnitSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTopLevelUnitSetMessagePayloadBuilder of( + final BusinessUnitTopLevelUnitSetMessagePayload template) { + BusinessUnitTopLevelUnitSetMessagePayloadBuilder builder = new BusinessUnitTopLevelUnitSetMessagePayloadBuilder(); + builder.topLevelUnit = template.getTopLevelUnit(); + builder.oldTopLevelUnit = template.getOldTopLevelUnit(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadImpl.java new file mode 100644 index 00000000000..52d302e1c27 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadImpl.java @@ -0,0 +1,117 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated when a Business Unit topLevelUnit is modified due to a hierarchy change after a successful Set Unit Type or Change Parent Unit update action.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTopLevelUnitSetMessagePayloadImpl + implements BusinessUnitTopLevelUnitSetMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitTopLevelUnitSetMessagePayloadImpl( + @JsonProperty("topLevelUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit, + @JsonProperty("oldTopLevelUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit) { + this.topLevelUnit = topLevelUnit; + this.oldTopLevelUnit = oldTopLevelUnit; + this.type = BUSINESS_UNIT_TOP_LEVEL_UNIT_SET; + } + + /** + * create empty instance + */ + public BusinessUnitTopLevelUnitSetMessagePayloadImpl() { + this.type = BUSINESS_UNIT_TOP_LEVEL_UNIT_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

                  Top-level unit of the Business Unit after the Set Unit Type or Change Parent Unit update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getTopLevelUnit() { + return this.topLevelUnit; + } + + /** + *

                  Top-level unit of the Business Unit before the Set Unit Type or Change Parent Unit update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldTopLevelUnit() { + return this.oldTopLevelUnit; + } + + public void setTopLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference topLevelUnit) { + this.topLevelUnit = topLevelUnit; + } + + public void setOldTopLevelUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldTopLevelUnit) { + this.oldTopLevelUnit = oldTopLevelUnit; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitTopLevelUnitSetMessagePayloadImpl that = (BusinessUnitTopLevelUnitSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(topLevelUnit, that.topLevelUnit) + .append(oldTopLevelUnit, that.oldTopLevelUnit) + .append(type, that.type) + .append(topLevelUnit, that.topLevelUnit) + .append(oldTopLevelUnit, that.oldTopLevelUnit) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type).append(topLevelUnit).append(oldTopLevelUnit).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("topLevelUnit", topLevelUnit) + .append("oldTopLevelUnit", oldTopLevelUnit) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessage.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessage.java new file mode 100644 index 00000000000..8881f37a5e0 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessage.java @@ -0,0 +1,213 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.business_unit.BusinessUnitKeyReference; +import com.commercetools.api.models.business_unit.BusinessUnitType; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated after a successful Set Unit Type update action.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTypeSetMessage businessUnitTypeSetMessage = BusinessUnitTypeSetMessage.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)
                  + *             .unitType(BusinessUnitType.COMPANY)
                  + *             .oldUnitType(BusinessUnitType.COMPANY)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitTypeSetMessageImpl.class) +public interface BusinessUnitTypeSetMessage extends Message { + + /** + * discriminator value for BusinessUnitTypeSetMessage + */ + String BUSINESS_UNIT_TYPE_SET = "BusinessUnitTypeSet"; + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @return parentUnit + */ + @Valid + @JsonProperty("parentUnit") + public BusinessUnitKeyReference getParentUnit(); + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @return oldParentUnit + */ + @Valid + @JsonProperty("oldParentUnit") + public BusinessUnitKeyReference getOldParentUnit(); + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @return unitType + */ + @NotNull + @JsonProperty("unitType") + public BusinessUnitType getUnitType(); + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @return oldUnitType + */ + @NotNull + @JsonProperty("oldUnitType") + public BusinessUnitType getOldUnitType(); + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param parentUnit value to be set + */ + + public void setParentUnit(final BusinessUnitKeyReference parentUnit); + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param oldParentUnit value to be set + */ + + public void setOldParentUnit(final BusinessUnitKeyReference oldParentUnit); + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @param unitType value to be set + */ + + public void setUnitType(final BusinessUnitType unitType); + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @param oldUnitType value to be set + */ + + public void setOldUnitType(final BusinessUnitType oldUnitType); + + /** + * factory method + * @return instance of BusinessUnitTypeSetMessage + */ + public static BusinessUnitTypeSetMessage of() { + return new BusinessUnitTypeSetMessageImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitTypeSetMessage + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitTypeSetMessage of(final BusinessUnitTypeSetMessage template) { + BusinessUnitTypeSetMessageImpl instance = new BusinessUnitTypeSetMessageImpl(); + 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.setParentUnit(template.getParentUnit()); + instance.setOldParentUnit(template.getOldParentUnit()); + instance.setUnitType(template.getUnitType()); + instance.setOldUnitType(template.getOldUnitType()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitTypeSetMessage + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitTypeSetMessage deepCopy(@Nullable final BusinessUnitTypeSetMessage template) { + if (template == null) { + return null; + } + BusinessUnitTypeSetMessageImpl instance = new BusinessUnitTypeSetMessageImpl(); + 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.setParentUnit( + com.commercetools.api.models.business_unit.BusinessUnitKeyReference.deepCopy(template.getParentUnit())); + instance.setOldParentUnit( + com.commercetools.api.models.business_unit.BusinessUnitKeyReference.deepCopy(template.getOldParentUnit())); + instance.setUnitType(template.getUnitType()); + instance.setOldUnitType(template.getOldUnitType()); + return instance; + } + + /** + * builder factory method for BusinessUnitTypeSetMessage + * @return builder + */ + public static BusinessUnitTypeSetMessageBuilder builder() { + return BusinessUnitTypeSetMessageBuilder.of(); + } + + /** + * create builder for BusinessUnitTypeSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTypeSetMessageBuilder builder(final BusinessUnitTypeSetMessage template) { + return BusinessUnitTypeSetMessageBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitTypeSetMessage(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageBuilder.java new file mode 100644 index 00000000000..fa8dce38499 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageBuilder.java @@ -0,0 +1,561 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitTypeSetMessageBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTypeSetMessage businessUnitTypeSetMessage = BusinessUnitTypeSetMessage.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)
                  + *             .unitType(BusinessUnitType.COMPANY)
                  + *             .oldUnitType(BusinessUnitType.COMPANY)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTypeSetMessageBuilder implements Builder { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + @Nullable + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + @Nullable + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + @Nullable + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + @Nullable + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit; + + @Nullable + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + private com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType; + + /** + *

                  Unique identifier of the Message. Can be used to track which Messages have been processed.

                  + * @param id value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  Version of a resource. In case of Messages, this is always 1.

                  + * @param version value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder version(final Long version) { + this.version = version; + return this; + } + + /** + *

                  Date and time (UTC) the Message was generated.

                  + * @param createdAt value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  Value of createdAt.

                  + * @param lastModifiedAt value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder lastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + return this; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder lastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()).build(); + return this; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @param builder function to build the lastModifiedBy value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder withLastModifiedBy( + Function builder) { + this.lastModifiedBy = builder.apply(com.commercetools.api.models.common.LastModifiedByBuilder.of()); + return this; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @param lastModifiedBy value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder lastModifiedBy( + @Nullable final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + return this; + } + + /** + *

                  IDs and references that created the Message.

                  + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder createdBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()).build(); + return this; + } + + /** + *

                  IDs and references that created the Message.

                  + * @param builder function to build the createdBy value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder withCreatedBy( + Function builder) { + this.createdBy = builder.apply(com.commercetools.api.models.common.CreatedByBuilder.of()); + return this; + } + + /** + *

                  IDs and references that created the Message.

                  + * @param createdBy value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder createdBy( + @Nullable final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + return this; + } + + /** + *

                  Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

                  + * @param sequenceNumber value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder sequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + return this; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + * @param resource value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder resource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + return this; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + * @param builder function to build the resource value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder resource( + Function> builder) { + this.resource = builder.apply(com.commercetools.api.models.common.ReferenceBuilder.of()).build(); + return this; + } + + /** + *

                  Version of the resource on which the change or action was performed.

                  + * @param resourceVersion value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder resourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + return this; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder resourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()) + .build(); + return this; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @param builder function to build the resourceUserProvidedIdentifiers value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder withResourceUserProvidedIdentifiers( + Function builder) { + this.resourceUserProvidedIdentifiers = builder + .apply(com.commercetools.api.models.message.UserProvidedIdentifiersBuilder.of()); + return this; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @param resourceUserProvidedIdentifiers value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder resourceUserProvidedIdentifiers( + @Nullable final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + return this; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param builder function to build the parentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder parentUnit( + Function builder) { + this.parentUnit = builder.apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param builder function to build the parentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder withParentUnit( + Function builder) { + this.parentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param parentUnit value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder parentUnit( + @Nullable final com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit) { + this.parentUnit = parentUnit; + return this; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param builder function to build the oldParentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder oldParentUnit( + Function builder) { + this.oldParentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param builder function to build the oldParentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder withOldParentUnit( + Function builder) { + this.oldParentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param oldParentUnit value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder oldParentUnit( + @Nullable final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit) { + this.oldParentUnit = oldParentUnit; + return this; + } + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @param unitType value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder unitType( + final com.commercetools.api.models.business_unit.BusinessUnitType unitType) { + this.unitType = unitType; + return this; + } + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @param oldUnitType value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessageBuilder oldUnitType( + final com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType) { + this.oldUnitType = oldUnitType; + return this; + } + + /** + *

                  Unique identifier of the Message. Can be used to track which Messages have been processed.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

                  Version of a resource. In case of Messages, this is always 1.

                  + * @return version + */ + + public Long getVersion() { + return this.version; + } + + /** + *

                  Date and time (UTC) the Message was generated.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  Value of createdAt.

                  + * @return lastModifiedAt + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

                  IDs and references that last modified the Message.

                  + * @return lastModifiedBy + */ + + @Nullable + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

                  IDs and references that created the Message.

                  + * @return createdBy + */ + + @Nullable + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

                  Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

                  + * @return sequenceNumber + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + * @return resource + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

                  Version of the resource on which the change or action was performed.

                  + * @return resourceVersion + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + * @return resourceUserProvidedIdentifiers + */ + + @Nullable + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @return parentUnit + */ + + @Nullable + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getParentUnit() { + return this.parentUnit; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @return oldParentUnit + */ + + @Nullable + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldParentUnit() { + return this.oldParentUnit; + } + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @return unitType + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getUnitType() { + return this.unitType; + } + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @return oldUnitType + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getOldUnitType() { + return this.oldUnitType; + } + + /** + * builds BusinessUnitTypeSetMessage with checking for non-null required values + * @return BusinessUnitTypeSetMessage + */ + public BusinessUnitTypeSetMessage build() { + Objects.requireNonNull(id, BusinessUnitTypeSetMessage.class + ": id is missing"); + Objects.requireNonNull(version, BusinessUnitTypeSetMessage.class + ": version is missing"); + Objects.requireNonNull(createdAt, BusinessUnitTypeSetMessage.class + ": createdAt is missing"); + Objects.requireNonNull(lastModifiedAt, BusinessUnitTypeSetMessage.class + ": lastModifiedAt is missing"); + Objects.requireNonNull(sequenceNumber, BusinessUnitTypeSetMessage.class + ": sequenceNumber is missing"); + Objects.requireNonNull(resource, BusinessUnitTypeSetMessage.class + ": resource is missing"); + Objects.requireNonNull(resourceVersion, BusinessUnitTypeSetMessage.class + ": resourceVersion is missing"); + Objects.requireNonNull(unitType, BusinessUnitTypeSetMessage.class + ": unitType is missing"); + Objects.requireNonNull(oldUnitType, BusinessUnitTypeSetMessage.class + ": oldUnitType is missing"); + return new BusinessUnitTypeSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, parentUnit, oldParentUnit, + unitType, oldUnitType); + } + + /** + * builds BusinessUnitTypeSetMessage without checking for non-null required values + * @return BusinessUnitTypeSetMessage + */ + public BusinessUnitTypeSetMessage buildUnchecked() { + return new BusinessUnitTypeSetMessageImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, + sequenceNumber, resource, resourceVersion, resourceUserProvidedIdentifiers, parentUnit, oldParentUnit, + unitType, oldUnitType); + } + + /** + * factory method for an instance of BusinessUnitTypeSetMessageBuilder + * @return builder + */ + public static BusinessUnitTypeSetMessageBuilder of() { + return new BusinessUnitTypeSetMessageBuilder(); + } + + /** + * create builder for BusinessUnitTypeSetMessage instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTypeSetMessageBuilder of(final BusinessUnitTypeSetMessage template) { + BusinessUnitTypeSetMessageBuilder builder = new BusinessUnitTypeSetMessageBuilder(); + builder.id = template.getId(); + builder.version = template.getVersion(); + builder.createdAt = template.getCreatedAt(); + builder.lastModifiedAt = template.getLastModifiedAt(); + builder.lastModifiedBy = template.getLastModifiedBy(); + builder.createdBy = template.getCreatedBy(); + builder.sequenceNumber = template.getSequenceNumber(); + builder.resource = template.getResource(); + builder.resourceVersion = template.getResourceVersion(); + builder.resourceUserProvidedIdentifiers = template.getResourceUserProvidedIdentifiers(); + builder.parentUnit = template.getParentUnit(); + builder.oldParentUnit = template.getOldParentUnit(); + builder.unitType = template.getUnitType(); + builder.oldUnitType = template.getOldUnitType(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageImpl.java new file mode 100644 index 00000000000..0d005b7002b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageImpl.java @@ -0,0 +1,357 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated after a successful Set Unit Type update action.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTypeSetMessageImpl implements BusinessUnitTypeSetMessage, ModelBase { + + private String id; + + private Long version; + + private java.time.ZonedDateTime createdAt; + + private java.time.ZonedDateTime lastModifiedAt; + + private com.commercetools.api.models.common.LastModifiedBy lastModifiedBy; + + private com.commercetools.api.models.common.CreatedBy createdBy; + + private Long sequenceNumber; + + private com.commercetools.api.models.common.Reference resource; + + private Long resourceVersion; + + private String type; + + private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + private com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitTypeSetMessageImpl(@JsonProperty("id") final String id, @JsonProperty("version") final Long version, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt, + @JsonProperty("lastModifiedAt") final java.time.ZonedDateTime lastModifiedAt, + @JsonProperty("lastModifiedBy") final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy, + @JsonProperty("createdBy") final com.commercetools.api.models.common.CreatedBy createdBy, + @JsonProperty("sequenceNumber") final Long sequenceNumber, + @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, + @JsonProperty("resourceVersion") final Long resourceVersion, + @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers, + @JsonProperty("parentUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit, + @JsonProperty("oldParentUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit, + @JsonProperty("unitType") final com.commercetools.api.models.business_unit.BusinessUnitType unitType, + @JsonProperty("oldUnitType") final com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType) { + this.id = id; + this.version = version; + this.createdAt = createdAt; + this.lastModifiedAt = lastModifiedAt; + this.lastModifiedBy = lastModifiedBy; + this.createdBy = createdBy; + this.sequenceNumber = sequenceNumber; + this.resource = resource; + this.resourceVersion = resourceVersion; + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + this.parentUnit = parentUnit; + this.oldParentUnit = oldParentUnit; + this.unitType = unitType; + this.oldUnitType = oldUnitType; + this.type = BUSINESS_UNIT_TYPE_SET; + } + + /** + * create empty instance + */ + public BusinessUnitTypeSetMessageImpl() { + this.type = BUSINESS_UNIT_TYPE_SET; + } + + /** + *

                  Unique identifier of the Message. Can be used to track which Messages have been processed.

                  + */ + + public String getId() { + return this.id; + } + + /** + *

                  Version of a resource. In case of Messages, this is always 1.

                  + */ + + public Long getVersion() { + return this.version; + } + + /** + *

                  Date and time (UTC) the Message was generated.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + *

                  Value of createdAt.

                  + */ + + public java.time.ZonedDateTime getLastModifiedAt() { + return this.lastModifiedAt; + } + + /** + *

                  IDs and references that last modified the Message.

                  + */ + + public com.commercetools.api.models.common.LastModifiedBy getLastModifiedBy() { + return this.lastModifiedBy; + } + + /** + *

                  IDs and references that created the Message.

                  + */ + + public com.commercetools.api.models.common.CreatedBy getCreatedBy() { + return this.createdBy; + } + + /** + *

                  Message number in relation to other Messages for a given resource. The sequenceNumber of the next Message for the resource is the successor of the sequenceNumber of the current Message. Meaning, the sequenceNumber of the next Message equals the sequenceNumber of the current Message + 1. sequenceNumber can be used to ensure that Messages are processed in the correct order for a particular resource.

                  + */ + + public Long getSequenceNumber() { + return this.sequenceNumber; + } + + /** + *

                  Reference to the resource on which the change or action was performed.

                  + */ + + public com.commercetools.api.models.common.Reference getResource() { + return this.resource; + } + + /** + *

                  Version of the resource on which the change or action was performed.

                  + */ + + public Long getResourceVersion() { + return this.resourceVersion; + } + + /** + *

                  Message Type of the Message.

                  + */ + + public String getType() { + return this.type; + } + + /** + *

                  User-provided identifiers of the resource, such as key or externalId. Only present if the resource has such identifiers.

                  + */ + + public com.commercetools.api.models.message.UserProvidedIdentifiers getResourceUserProvidedIdentifiers() { + return this.resourceUserProvidedIdentifiers; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getParentUnit() { + return this.parentUnit; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldParentUnit() { + return this.oldParentUnit; + } + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getUnitType() { + return this.unitType; + } + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getOldUnitType() { + return this.oldUnitType; + } + + public void setId(final String id) { + this.id = id; + } + + public void setVersion(final Long version) { + this.version = version; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + public void setLastModifiedAt(final java.time.ZonedDateTime lastModifiedAt) { + this.lastModifiedAt = lastModifiedAt; + } + + public void setLastModifiedBy(final com.commercetools.api.models.common.LastModifiedBy lastModifiedBy) { + this.lastModifiedBy = lastModifiedBy; + } + + public void setCreatedBy(final com.commercetools.api.models.common.CreatedBy createdBy) { + this.createdBy = createdBy; + } + + public void setSequenceNumber(final Long sequenceNumber) { + this.sequenceNumber = sequenceNumber; + } + + public void setResource(final com.commercetools.api.models.common.Reference resource) { + this.resource = resource; + } + + public void setResourceVersion(final Long resourceVersion) { + this.resourceVersion = resourceVersion; + } + + public void setResourceUserProvidedIdentifiers( + final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { + this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; + } + + public void setParentUnit(final com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit) { + this.parentUnit = parentUnit; + } + + public void setOldParentUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit) { + this.oldParentUnit = oldParentUnit; + } + + public void setUnitType(final com.commercetools.api.models.business_unit.BusinessUnitType unitType) { + this.unitType = unitType; + } + + public void setOldUnitType(final com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType) { + this.oldUnitType = oldUnitType; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitTypeSetMessageImpl that = (BusinessUnitTypeSetMessageImpl) o; + + return new EqualsBuilder().append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(parentUnit, that.parentUnit) + .append(oldParentUnit, that.oldParentUnit) + .append(unitType, that.unitType) + .append(oldUnitType, that.oldUnitType) + .append(id, that.id) + .append(version, that.version) + .append(createdAt, that.createdAt) + .append(lastModifiedAt, that.lastModifiedAt) + .append(lastModifiedBy, that.lastModifiedBy) + .append(createdBy, that.createdBy) + .append(sequenceNumber, that.sequenceNumber) + .append(resource, that.resource) + .append(resourceVersion, that.resourceVersion) + .append(type, that.type) + .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) + .append(parentUnit, that.parentUnit) + .append(oldParentUnit, that.oldParentUnit) + .append(unitType, that.unitType) + .append(oldUnitType, that.oldUnitType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(id) + .append(version) + .append(createdAt) + .append(lastModifiedAt) + .append(lastModifiedBy) + .append(createdBy) + .append(sequenceNumber) + .append(resource) + .append(resourceVersion) + .append(type) + .append(resourceUserProvidedIdentifiers) + .append(parentUnit) + .append(oldParentUnit) + .append(unitType) + .append(oldUnitType) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("id", id) + .append("version", version) + .append("createdAt", createdAt) + .append("lastModifiedAt", lastModifiedAt) + .append("lastModifiedBy", lastModifiedBy) + .append("createdBy", createdBy) + .append("sequenceNumber", sequenceNumber) + .append("resource", resource) + .append("resourceVersion", resourceVersion) + .append("type", type) + .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) + .append("parentUnit", parentUnit) + .append("oldParentUnit", oldParentUnit) + .append("unitType", unitType) + .append("oldUnitType", oldUnitType) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayload.java new file mode 100644 index 00000000000..6b2276eb466 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayload.java @@ -0,0 +1,185 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import com.commercetools.api.models.business_unit.BusinessUnitKeyReference; +import com.commercetools.api.models.business_unit.BusinessUnitType; +import com.fasterxml.jackson.annotation.*; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.utils.Generated; + +import jakarta.validation.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  Generated after a successful Set Unit Type update action.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTypeSetMessagePayload businessUnitTypeSetMessagePayload = BusinessUnitTypeSetMessagePayload.builder()
                  + *             .unitType(BusinessUnitType.COMPANY)
                  + *             .oldUnitType(BusinessUnitType.COMPANY)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = BusinessUnitTypeSetMessagePayloadImpl.class) +public interface BusinessUnitTypeSetMessagePayload extends MessagePayload { + + /** + * discriminator value for BusinessUnitTypeSetMessagePayload + */ + String BUSINESS_UNIT_TYPE_SET = "BusinessUnitTypeSet"; + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @return parentUnit + */ + @Valid + @JsonProperty("parentUnit") + public BusinessUnitKeyReference getParentUnit(); + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @return oldParentUnit + */ + @Valid + @JsonProperty("oldParentUnit") + public BusinessUnitKeyReference getOldParentUnit(); + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @return unitType + */ + @NotNull + @JsonProperty("unitType") + public BusinessUnitType getUnitType(); + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @return oldUnitType + */ + @NotNull + @JsonProperty("oldUnitType") + public BusinessUnitType getOldUnitType(); + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param parentUnit value to be set + */ + + public void setParentUnit(final BusinessUnitKeyReference parentUnit); + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param oldParentUnit value to be set + */ + + public void setOldParentUnit(final BusinessUnitKeyReference oldParentUnit); + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @param unitType value to be set + */ + + public void setUnitType(final BusinessUnitType unitType); + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @param oldUnitType value to be set + */ + + public void setOldUnitType(final BusinessUnitType oldUnitType); + + /** + * factory method + * @return instance of BusinessUnitTypeSetMessagePayload + */ + public static BusinessUnitTypeSetMessagePayload of() { + return new BusinessUnitTypeSetMessagePayloadImpl(); + } + + /** + * factory method to create a shallow copy BusinessUnitTypeSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + public static BusinessUnitTypeSetMessagePayload of(final BusinessUnitTypeSetMessagePayload template) { + BusinessUnitTypeSetMessagePayloadImpl instance = new BusinessUnitTypeSetMessagePayloadImpl(); + instance.setParentUnit(template.getParentUnit()); + instance.setOldParentUnit(template.getOldParentUnit()); + instance.setUnitType(template.getUnitType()); + instance.setOldUnitType(template.getOldUnitType()); + return instance; + } + + /** + * factory method to create a deep copy of BusinessUnitTypeSetMessagePayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static BusinessUnitTypeSetMessagePayload deepCopy( + @Nullable final BusinessUnitTypeSetMessagePayload template) { + if (template == null) { + return null; + } + BusinessUnitTypeSetMessagePayloadImpl instance = new BusinessUnitTypeSetMessagePayloadImpl(); + instance.setParentUnit( + com.commercetools.api.models.business_unit.BusinessUnitKeyReference.deepCopy(template.getParentUnit())); + instance.setOldParentUnit( + com.commercetools.api.models.business_unit.BusinessUnitKeyReference.deepCopy(template.getOldParentUnit())); + instance.setUnitType(template.getUnitType()); + instance.setOldUnitType(template.getOldUnitType()); + return instance; + } + + /** + * builder factory method for BusinessUnitTypeSetMessagePayload + * @return builder + */ + public static BusinessUnitTypeSetMessagePayloadBuilder builder() { + return BusinessUnitTypeSetMessagePayloadBuilder.of(); + } + + /** + * create builder for BusinessUnitTypeSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTypeSetMessagePayloadBuilder builder(final BusinessUnitTypeSetMessagePayload template) { + return BusinessUnitTypeSetMessagePayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withBusinessUnitTypeSetMessagePayload(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadBuilder.java new file mode 100644 index 00000000000..3c5e0623270 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadBuilder.java @@ -0,0 +1,217 @@ + +package com.commercetools.api.models.message; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * BusinessUnitTypeSetMessagePayloadBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     BusinessUnitTypeSetMessagePayload businessUnitTypeSetMessagePayload = BusinessUnitTypeSetMessagePayload.builder()
                  + *             .unitType(BusinessUnitType.COMPANY)
                  + *             .oldUnitType(BusinessUnitType.COMPANY)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTypeSetMessagePayloadBuilder implements Builder { + + @Nullable + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit; + + @Nullable + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + private com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType; + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param builder function to build the parentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder parentUnit( + Function builder) { + this.parentUnit = builder.apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param builder function to build the parentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder withParentUnit( + Function builder) { + this.parentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @param parentUnit value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder parentUnit( + @Nullable final com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit) { + this.parentUnit = parentUnit; + return this; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param builder function to build the oldParentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder oldParentUnit( + Function builder) { + this.oldParentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()) + .build(); + return this; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param builder function to build the oldParentUnit value + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder withOldParentUnit( + Function builder) { + this.oldParentUnit = builder + .apply(com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceBuilder.of()); + return this; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @param oldParentUnit value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder oldParentUnit( + @Nullable final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit) { + this.oldParentUnit = oldParentUnit; + return this; + } + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @param unitType value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder unitType( + final com.commercetools.api.models.business_unit.BusinessUnitType unitType) { + this.unitType = unitType; + return this; + } + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @param oldUnitType value to be set + * @return Builder + */ + + public BusinessUnitTypeSetMessagePayloadBuilder oldUnitType( + final com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType) { + this.oldUnitType = oldUnitType; + return this; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + * @return parentUnit + */ + + @Nullable + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getParentUnit() { + return this.parentUnit; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + * @return oldParentUnit + */ + + @Nullable + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldParentUnit() { + return this.oldParentUnit; + } + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + * @return unitType + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getUnitType() { + return this.unitType; + } + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + * @return oldUnitType + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getOldUnitType() { + return this.oldUnitType; + } + + /** + * builds BusinessUnitTypeSetMessagePayload with checking for non-null required values + * @return BusinessUnitTypeSetMessagePayload + */ + public BusinessUnitTypeSetMessagePayload build() { + Objects.requireNonNull(unitType, BusinessUnitTypeSetMessagePayload.class + ": unitType is missing"); + Objects.requireNonNull(oldUnitType, BusinessUnitTypeSetMessagePayload.class + ": oldUnitType is missing"); + return new BusinessUnitTypeSetMessagePayloadImpl(parentUnit, oldParentUnit, unitType, oldUnitType); + } + + /** + * builds BusinessUnitTypeSetMessagePayload without checking for non-null required values + * @return BusinessUnitTypeSetMessagePayload + */ + public BusinessUnitTypeSetMessagePayload buildUnchecked() { + return new BusinessUnitTypeSetMessagePayloadImpl(parentUnit, oldParentUnit, unitType, oldUnitType); + } + + /** + * factory method for an instance of BusinessUnitTypeSetMessagePayloadBuilder + * @return builder + */ + public static BusinessUnitTypeSetMessagePayloadBuilder of() { + return new BusinessUnitTypeSetMessagePayloadBuilder(); + } + + /** + * create builder for BusinessUnitTypeSetMessagePayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static BusinessUnitTypeSetMessagePayloadBuilder of(final BusinessUnitTypeSetMessagePayload template) { + BusinessUnitTypeSetMessagePayloadBuilder builder = new BusinessUnitTypeSetMessagePayloadBuilder(); + builder.parentUnit = template.getParentUnit(); + builder.oldParentUnit = template.getOldParentUnit(); + builder.unitType = template.getUnitType(); + builder.oldUnitType = template.getOldUnitType(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadImpl.java new file mode 100644 index 00000000000..c2bf5f7d39e --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadImpl.java @@ -0,0 +1,158 @@ + +package com.commercetools.api.models.message; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  Generated after a successful Set Unit Type update action.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class BusinessUnitTypeSetMessagePayloadImpl implements BusinessUnitTypeSetMessagePayload, ModelBase { + + private String type; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit; + + private com.commercetools.api.models.business_unit.BusinessUnitType unitType; + + private com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType; + + /** + * create instance with all properties + */ + @JsonCreator + BusinessUnitTypeSetMessagePayloadImpl( + @JsonProperty("parentUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit, + @JsonProperty("oldParentUnit") final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit, + @JsonProperty("unitType") final com.commercetools.api.models.business_unit.BusinessUnitType unitType, + @JsonProperty("oldUnitType") final com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType) { + this.parentUnit = parentUnit; + this.oldParentUnit = oldParentUnit; + this.unitType = unitType; + this.oldUnitType = oldUnitType; + this.type = BUSINESS_UNIT_TYPE_SET; + } + + /** + * create empty instance + */ + public BusinessUnitTypeSetMessagePayloadImpl() { + this.type = BUSINESS_UNIT_TYPE_SET; + } + + /** + * + */ + + public String getType() { + return this.type; + } + + /** + *

                  Parent unit of the Business Unit after the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getParentUnit() { + return this.parentUnit; + } + + /** + *

                  Parent unit of the Business Unit before the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitKeyReference getOldParentUnit() { + return this.oldParentUnit; + } + + /** + *

                  Type of the Business Unit after the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getUnitType() { + return this.unitType; + } + + /** + *

                  Type of the Business Unit before the Set Unit Type update action.

                  + */ + + public com.commercetools.api.models.business_unit.BusinessUnitType getOldUnitType() { + return this.oldUnitType; + } + + public void setParentUnit(final com.commercetools.api.models.business_unit.BusinessUnitKeyReference parentUnit) { + this.parentUnit = parentUnit; + } + + public void setOldParentUnit( + final com.commercetools.api.models.business_unit.BusinessUnitKeyReference oldParentUnit) { + this.oldParentUnit = oldParentUnit; + } + + public void setUnitType(final com.commercetools.api.models.business_unit.BusinessUnitType unitType) { + this.unitType = unitType; + } + + public void setOldUnitType(final com.commercetools.api.models.business_unit.BusinessUnitType oldUnitType) { + this.oldUnitType = oldUnitType; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + BusinessUnitTypeSetMessagePayloadImpl that = (BusinessUnitTypeSetMessagePayloadImpl) o; + + return new EqualsBuilder().append(type, that.type) + .append(parentUnit, that.parentUnit) + .append(oldParentUnit, that.oldParentUnit) + .append(unitType, that.unitType) + .append(oldUnitType, that.oldUnitType) + .append(type, that.type) + .append(parentUnit, that.parentUnit) + .append(oldParentUnit, that.oldParentUnit) + .append(unitType, that.unitType) + .append(oldUnitType, that.oldUnitType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(type) + .append(parentUnit) + .append(oldParentUnit) + .append(unitType) + .append(oldUnitType) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type) + .append("parentUnit", parentUnit) + .append("oldParentUnit", oldParentUnit) + .append("unitType", unitType) + .append("oldUnitType", oldUnitType) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java index cff9f033a1b..1374eea52b3 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/Message.java @@ -96,6 +96,8 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreModeChangedMessageImpl.class, name = BusinessUnitStoreModeChangedMessage.BUSINESS_UNIT_STORE_MODE_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreRemovedMessageImpl.class, name = BusinessUnitStoreRemovedMessage.BUSINESS_UNIT_STORE_REMOVED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoresSetMessageImpl.class, name = BusinessUnitStoresSetMessage.BUSINESS_UNIT_STORES_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessageImpl.class, name = BusinessUnitTopLevelUnitSetMessage.BUSINESS_UNIT_TOP_LEVEL_UNIT_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitTypeSetMessageImpl.class, name = BusinessUnitTypeSetMessage.BUSINESS_UNIT_TYPE_SET), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountCreatedMessageImpl.class, name = CartDiscountCreatedMessage.CART_DISCOUNT_CREATED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountDeletedMessageImpl.class, name = CartDiscountDeletedMessage.CART_DISCOUNT_DELETED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoreAddedMessageImpl.class, name = CartDiscountStoreAddedMessage.CART_DISCOUNT_STORE_ADDED), @@ -681,6 +683,14 @@ public static Message deepCopy(@Nullable final Message template) { return com.commercetools.api.models.message.BusinessUnitStoresSetMessage .deepCopy((com.commercetools.api.models.message.BusinessUnitStoresSetMessage) template); } + if (template instanceof com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessage) { + return com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessage + .deepCopy((com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessage) template); + } + if (template instanceof com.commercetools.api.models.message.BusinessUnitTypeSetMessage) { + return com.commercetools.api.models.message.BusinessUnitTypeSetMessage + .deepCopy((com.commercetools.api.models.message.BusinessUnitTypeSetMessage) template); + } if (template instanceof com.commercetools.api.models.message.CartDiscountCreatedMessage) { return com.commercetools.api.models.message.CartDiscountCreatedMessage .deepCopy((com.commercetools.api.models.message.CartDiscountCreatedMessage) template); @@ -1697,6 +1707,22 @@ public static com.commercetools.api.models.message.BusinessUnitStoresSetMessageB return com.commercetools.api.models.message.BusinessUnitStoresSetMessageBuilder.of(); } + /** + * builder for businessUnitTopLevelUnitSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessageBuilder businessUnitTopLevelUnitSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessageBuilder.of(); + } + + /** + * builder for businessUnitTypeSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitTypeSetMessageBuilder businessUnitTypeSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTypeSetMessageBuilder.of(); + } + /** * builder for cartDiscountCreated subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java index b3292a85503..45be2561cfe 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessageBuilder.java @@ -227,6 +227,14 @@ public com.commercetools.api.models.message.BusinessUnitStoresSetMessageBuilder return com.commercetools.api.models.message.BusinessUnitStoresSetMessageBuilder.of(); } + public com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessageBuilder businessUnitTopLevelUnitSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessageBuilder.of(); + } + + public com.commercetools.api.models.message.BusinessUnitTypeSetMessageBuilder businessUnitTypeSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTypeSetMessageBuilder.of(); + } + public com.commercetools.api.models.message.CartDiscountCreatedMessageBuilder cartDiscountCreatedBuilder() { return com.commercetools.api.models.message.CartDiscountCreatedMessageBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java index 431fc1f1632..ccb0614b2c9 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayload.java @@ -83,6 +83,8 @@ @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreModeChangedMessagePayloadImpl.class, name = BusinessUnitStoreModeChangedMessagePayload.BUSINESS_UNIT_STORE_MODE_CHANGED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoreRemovedMessagePayloadImpl.class, name = BusinessUnitStoreRemovedMessagePayload.BUSINESS_UNIT_STORE_REMOVED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadImpl.class, name = BusinessUnitStoresSetMessagePayload.BUSINESS_UNIT_STORES_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayloadImpl.class, name = BusinessUnitTopLevelUnitSetMessagePayload.BUSINESS_UNIT_TOP_LEVEL_UNIT_SET), + @JsonSubTypes.Type(value = com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayloadImpl.class, name = BusinessUnitTypeSetMessagePayload.BUSINESS_UNIT_TYPE_SET), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadImpl.class, name = CartDiscountCreatedMessagePayload.CART_DISCOUNT_CREATED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountDeletedMessagePayloadImpl.class, name = CartDiscountDeletedMessagePayload.CART_DISCOUNT_DELETED), @JsonSubTypes.Type(value = com.commercetools.api.models.message.CartDiscountStoreAddedMessagePayloadImpl.class, name = CartDiscountStoreAddedMessagePayload.CART_DISCOUNT_STORE_ADDED), @@ -518,6 +520,14 @@ public static MessagePayload deepCopy(@Nullable final MessagePayload template) { return com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayload .deepCopy((com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayload) template); } + if (template instanceof com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayload) { + return com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayload.deepCopy( + (com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayload) template); + } + if (template instanceof com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayload) { + return com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayload + .deepCopy((com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayload) template); + } if (template instanceof com.commercetools.api.models.message.CartDiscountCreatedMessagePayload) { return com.commercetools.api.models.message.CartDiscountCreatedMessagePayload .deepCopy((com.commercetools.api.models.message.CartDiscountCreatedMessagePayload) template); @@ -1526,6 +1536,22 @@ public static com.commercetools.api.models.message.BusinessUnitStoresSetMessageP return com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadBuilder.of(); } + /** + * builder for businessUnitTopLevelUnitSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayloadBuilder businessUnitTopLevelUnitSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayloadBuilder.of(); + } + + /** + * builder for businessUnitTypeSet subtype + * @return builder + */ + public static com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayloadBuilder businessUnitTypeSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayloadBuilder.of(); + } + /** * builder for cartDiscountCreated subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java index a4fa6031cd9..95e9d8d2ddd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/message/MessagePayloadBuilder.java @@ -227,6 +227,14 @@ public com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadB return com.commercetools.api.models.message.BusinessUnitStoresSetMessagePayloadBuilder.of(); } + public com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayloadBuilder businessUnitTopLevelUnitSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTopLevelUnitSetMessagePayloadBuilder.of(); + } + + public com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayloadBuilder businessUnitTypeSetBuilder() { + return com.commercetools.api.models.message.BusinessUnitTypeSetMessagePayloadBuilder.of(); + } + public com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadBuilder cartDiscountCreatedBuilder() { return com.commercetools.api.models.message.CartDiscountCreatedMessagePayloadBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java index ce2bae31af1..ce722e5df93 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayload.java @@ -117,7 +117,7 @@ public interface CloudEventsPayload { public String getDataref(); /** - *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

                  + *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload, EventDeliveryPayload.

                  * @return data */ @NotNull @@ -189,7 +189,7 @@ public interface CloudEventsPayload { public void setDataref(final String dataref); /** - *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

                  + *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload, EventDeliveryPayload.

                  * @param data value to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java index 903e9f3e826..a08291abeef 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadBuilder.java @@ -2,7 +2,6 @@ package com.commercetools.api.models.subscription; import java.util.*; -import java.util.function.Function; import javax.annotation.Nullable; @@ -153,7 +152,7 @@ public CloudEventsPayloadBuilder dataref(@Nullable final String dataref) { } /** - *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

                  + *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload, EventDeliveryPayload.

                  * @param data value to be set * @return Builder */ @@ -163,18 +162,6 @@ public CloudEventsPayloadBuilder data(final com.commercetools.api.models.subscri return this; } - /** - *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

                  - * @param builder function to build the data value - * @return Builder - */ - - public CloudEventsPayloadBuilder data( - Function> builder) { - this.data = builder.apply(com.commercetools.api.models.subscription.DeliveryPayloadBuilder.of()).build(); - return this; - } - /** *

                  The version of the CloudEvents specification which the event uses.

                  * @return specversion @@ -260,7 +247,7 @@ public String getDataref() { } /** - *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

                  + *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload, EventDeliveryPayload.

                  * @return data */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java index 2363d09952d..4750b13346c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/CloudEventsPayloadImpl.java @@ -143,7 +143,7 @@ public String getDataref() { } /** - *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload.

                  + *

                  MessageDeliveryPayload, ResourceCreatedDeliveryPayload, ResourceUpdatedDeliveryPayload, or ResourceDeletedDeliveryPayload, EventDeliveryPayload.

                  */ public com.commercetools.api.models.subscription.DeliveryPayload getData() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java index 5c4a7314313..3fb5df66eb4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayload.java @@ -21,31 +21,18 @@ *

                  All payloads for the PlatformFormat share these common fields.

                  * *
                  - * Example to create a subtype instance using the builder pattern + * Example to create an instance using the builder pattern *
                  *
                  
                  - *     DeliveryPayload deliveryPayload = DeliveryPayload.messageBuilder()
                  - *             projectKey("{projectKey}")
                  - *             resource(resourceBuilder -> resourceBuilder)
                  - *             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)
                  - *             resourceVersion(0.3)
                  + *     DeliveryPayload deliveryPayload = DeliveryPayload.builder()
                  + *             .projectKey("{projectKey}")
                  + *             .resource(resourceBuilder -> resourceBuilder)
                    *             .build()
                    * 
                  *
                  */ -@JsonSubTypes({ - @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.MessageDeliveryPayloadImpl.class, name = MessageDeliveryPayload.MESSAGE), - @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.ResourceCreatedDeliveryPayloadImpl.class, name = ResourceCreatedDeliveryPayload.RESOURCE_CREATED), - @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.ResourceDeletedDeliveryPayloadImpl.class, name = ResourceDeletedDeliveryPayload.RESOURCE_DELETED), - @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadImpl.class, name = ResourceUpdatedDeliveryPayload.RESOURCE_UPDATED) }) -@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "notificationType", defaultImpl = DeliveryPayloadImpl.class, visible = true) -@JsonDeserialize(as = DeliveryPayloadImpl.class) @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public interface DeliveryPayload { +public interface DeliveryPayload extends SubscriptionNotification { /** *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  @@ -55,14 +42,6 @@ public interface DeliveryPayload { @JsonProperty("projectKey") public String getProjectKey(); - /** - *

                  Identifies the payload.

                  - * @return notificationType - */ - @NotNull - @JsonProperty("notificationType") - public String getNotificationType(); - /** *

                  Reference to the resource that triggered the notification.

                  * @return resource @@ -135,38 +114,6 @@ public static DeliveryPayload deepCopy(@Nullable final DeliveryPayload template) return instance; } - /** - * builder for message subtype - * @return builder - */ - public static com.commercetools.api.models.subscription.MessageDeliveryPayloadBuilder messageBuilder() { - return com.commercetools.api.models.subscription.MessageDeliveryPayloadBuilder.of(); - } - - /** - * builder for resourceCreated subtype - * @return builder - */ - public static com.commercetools.api.models.subscription.ResourceCreatedDeliveryPayloadBuilder resourceCreatedBuilder() { - return com.commercetools.api.models.subscription.ResourceCreatedDeliveryPayloadBuilder.of(); - } - - /** - * builder for resourceDeleted subtype - * @return builder - */ - public static com.commercetools.api.models.subscription.ResourceDeletedDeliveryPayloadBuilder resourceDeletedBuilder() { - return com.commercetools.api.models.subscription.ResourceDeletedDeliveryPayloadBuilder.of(); - } - - /** - * builder for resourceUpdated subtype - * @return builder - */ - public static com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadBuilder resourceUpdatedBuilder() { - return com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadBuilder.of(); - } - /** * accessor map function * @param mapped type diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java index 33148c95d11..5360ab7d7ab 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadImpl.java @@ -22,10 +22,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class DeliveryPayloadImpl implements DeliveryPayload, ModelBase { - private String projectKey; - private String notificationType; + private String projectKey; + private com.commercetools.api.models.common.Reference resource; private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; @@ -34,12 +34,12 @@ public class DeliveryPayloadImpl implements DeliveryPayload, ModelBase { * create instance with all properties */ @JsonCreator - DeliveryPayloadImpl(@JsonProperty("projectKey") final String projectKey, - @JsonProperty("notificationType") final String notificationType, + DeliveryPayloadImpl(@JsonProperty("notificationType") final String notificationType, + @JsonProperty("projectKey") final String projectKey, @JsonProperty("resource") final com.commercetools.api.models.common.Reference resource, @JsonProperty("resourceUserProvidedIdentifiers") final com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers) { - this.projectKey = projectKey; this.notificationType = notificationType; + this.projectKey = projectKey; this.resource = resource; this.resourceUserProvidedIdentifiers = resourceUserProvidedIdentifiers; } @@ -51,19 +51,19 @@ public DeliveryPayloadImpl() { } /** - *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  + *

                  Identifies the payload.

                  */ - public String getProjectKey() { - return this.projectKey; + public String getNotificationType() { + return this.notificationType; } /** - *

                  Identifies the payload.

                  + *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  */ - public String getNotificationType() { - return this.notificationType; + public String getProjectKey() { + return this.projectKey; } /** @@ -105,12 +105,12 @@ public boolean equals(Object o) { DeliveryPayloadImpl that = (DeliveryPayloadImpl) o; - return new EqualsBuilder().append(projectKey, that.projectKey) - .append(notificationType, that.notificationType) + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) - .append(projectKey, that.projectKey) .append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .isEquals(); @@ -118,8 +118,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey) - .append(notificationType) + return new HashCodeBuilder(17, 37).append(notificationType) + .append(projectKey) .append(resource) .append(resourceUserProvidedIdentifiers) .toHashCode(); @@ -127,8 +127,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("projectKey", projectKey) - .append("notificationType", notificationType) + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .append("projectKey", projectKey) .append("resource", resource) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .build(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayload.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayload.java new file mode 100644 index 00000000000..5424fe5d57c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayload.java @@ -0,0 +1,202 @@ + +package com.commercetools.api.models.subscription; + +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.Valid; +import jakarta.validation.constraints.NotNull; + +/** + *

                  This payload is sent for an EventSubscription.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     EventDeliveryPayload eventDeliveryPayload = EventDeliveryPayload.builder()
                  + *             .id("{id}")
                  + *             .type(EventType.IMPORT_CONTAINER_CREATED)
                  + *             .resourceType("{resourceType}")
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = EventDeliveryPayloadImpl.class) +public interface EventDeliveryPayload extends SubscriptionNotification { + + /** + * discriminator value for EventDeliveryPayload + */ + String EVENT = "Event"; + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + @NotNull + @JsonProperty("id") + public String getId(); + + /** + *

                  The type of Event that has occurred.

                  + * @return type + */ + @NotNull + @JsonProperty("type") + public EventType getType(); + + /** + *

                  The type of resource targeted by the Event.

                  + * @return resourceType + */ + @NotNull + @JsonProperty("resourceType") + public String getResourceType(); + + /** + *

                  The data describing the event that has taken place.

                  + * @return data + */ + @NotNull + @Valid + @JsonProperty("data") + public Object getData(); + + /** + *

                  Date and time (UTC) the resource was initially created.

                  + * @return createdAt + */ + @NotNull + @JsonProperty("createdAt") + public ZonedDateTime getCreatedAt(); + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + */ + + public void setId(final String id); + + /** + *

                  The type of Event that has occurred.

                  + * @param type value to be set + */ + + public void setType(final EventType type); + + /** + *

                  The type of resource targeted by the Event.

                  + * @param resourceType value to be set + */ + + public void setResourceType(final String resourceType); + + /** + *

                  The data describing the event that has taken place.

                  + * @param data value to be set + */ + + public void setData(final Object data); + + /** + *

                  Date and time (UTC) the resource was initially created.

                  + * @param createdAt value to be set + */ + + public void setCreatedAt(final ZonedDateTime createdAt); + + /** + * factory method + * @return instance of EventDeliveryPayload + */ + public static EventDeliveryPayload of() { + return new EventDeliveryPayloadImpl(); + } + + /** + * factory method to create a shallow copy EventDeliveryPayload + * @param template instance to be copied + * @return copy instance + */ + public static EventDeliveryPayload of(final EventDeliveryPayload template) { + EventDeliveryPayloadImpl instance = new EventDeliveryPayloadImpl(); + instance.setId(template.getId()); + instance.setType(template.getType()); + instance.setResourceType(template.getResourceType()); + instance.setData(template.getData()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * factory method to create a deep copy of EventDeliveryPayload + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static EventDeliveryPayload deepCopy(@Nullable final EventDeliveryPayload template) { + if (template == null) { + return null; + } + EventDeliveryPayloadImpl instance = new EventDeliveryPayloadImpl(); + instance.setId(template.getId()); + instance.setType(template.getType()); + instance.setResourceType(template.getResourceType()); + instance.setData(template.getData()); + instance.setCreatedAt(template.getCreatedAt()); + return instance; + } + + /** + * builder factory method for EventDeliveryPayload + * @return builder + */ + public static EventDeliveryPayloadBuilder builder() { + return EventDeliveryPayloadBuilder.of(); + } + + /** + * create builder for EventDeliveryPayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static EventDeliveryPayloadBuilder builder(final EventDeliveryPayload template) { + return EventDeliveryPayloadBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withEventDeliveryPayload(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadBuilder.java new file mode 100644 index 00000000000..575b0d54eab --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadBuilder.java @@ -0,0 +1,182 @@ + +package com.commercetools.api.models.subscription; + +import java.util.*; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * EventDeliveryPayloadBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     EventDeliveryPayload eventDeliveryPayload = EventDeliveryPayload.builder()
                  + *             .id("{id}")
                  + *             .type(EventType.IMPORT_CONTAINER_CREATED)
                  + *             .resourceType("{resourceType}")
                  + *             .data(dataBuilder -> dataBuilder)
                  + *             .createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventDeliveryPayloadBuilder implements Builder { + + private String id; + + private com.commercetools.api.models.subscription.EventType type; + + private String resourceType; + + private java.lang.Object data; + + private java.time.ZonedDateTime createdAt; + + /** + *

                  Unique identifier of the Event.

                  + * @param id value to be set + * @return Builder + */ + + public EventDeliveryPayloadBuilder id(final String id) { + this.id = id; + return this; + } + + /** + *

                  The type of Event that has occurred.

                  + * @param type value to be set + * @return Builder + */ + + public EventDeliveryPayloadBuilder type(final com.commercetools.api.models.subscription.EventType type) { + this.type = type; + return this; + } + + /** + *

                  The type of resource targeted by the Event.

                  + * @param resourceType value to be set + * @return Builder + */ + + public EventDeliveryPayloadBuilder resourceType(final String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + *

                  The data describing the event that has taken place.

                  + * @param data value to be set + * @return Builder + */ + + public EventDeliveryPayloadBuilder data(final java.lang.Object data) { + this.data = data; + return this; + } + + /** + *

                  Date and time (UTC) the resource was initially created.

                  + * @param createdAt value to be set + * @return Builder + */ + + public EventDeliveryPayloadBuilder createdAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + return this; + } + + /** + *

                  Unique identifier of the Event.

                  + * @return id + */ + + public String getId() { + return this.id; + } + + /** + *

                  The type of Event that has occurred.

                  + * @return type + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  The type of resource targeted by the Event.

                  + * @return resourceType + */ + + public String getResourceType() { + return this.resourceType; + } + + /** + *

                  The data describing the event that has taken place.

                  + * @return data + */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *

                  Date and time (UTC) the resource was initially created.

                  + * @return createdAt + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + /** + * builds EventDeliveryPayload with checking for non-null required values + * @return EventDeliveryPayload + */ + public EventDeliveryPayload build() { + Objects.requireNonNull(id, EventDeliveryPayload.class + ": id is missing"); + Objects.requireNonNull(type, EventDeliveryPayload.class + ": type is missing"); + Objects.requireNonNull(resourceType, EventDeliveryPayload.class + ": resourceType is missing"); + Objects.requireNonNull(data, EventDeliveryPayload.class + ": data is missing"); + Objects.requireNonNull(createdAt, EventDeliveryPayload.class + ": createdAt is missing"); + return new EventDeliveryPayloadImpl(id, type, resourceType, data, createdAt); + } + + /** + * builds EventDeliveryPayload without checking for non-null required values + * @return EventDeliveryPayload + */ + public EventDeliveryPayload buildUnchecked() { + return new EventDeliveryPayloadImpl(id, type, resourceType, data, createdAt); + } + + /** + * factory method for an instance of EventDeliveryPayloadBuilder + * @return builder + */ + public static EventDeliveryPayloadBuilder of() { + return new EventDeliveryPayloadBuilder(); + } + + /** + * create builder for EventDeliveryPayload instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static EventDeliveryPayloadBuilder of(final EventDeliveryPayload template) { + EventDeliveryPayloadBuilder builder = new EventDeliveryPayloadBuilder(); + builder.id = template.getId(); + builder.type = template.getType(); + builder.resourceType = template.getResourceType(); + builder.data = template.getData(); + builder.createdAt = template.getCreatedAt(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadImpl.java new file mode 100644 index 00000000000..e89998f0092 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadImpl.java @@ -0,0 +1,175 @@ + +package com.commercetools.api.models.subscription; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  This payload is sent for an EventSubscription.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventDeliveryPayloadImpl implements EventDeliveryPayload, ModelBase { + + private String notificationType; + + private String id; + + private com.commercetools.api.models.subscription.EventType type; + + private String resourceType; + + private java.lang.Object data; + + private java.time.ZonedDateTime createdAt; + + /** + * create instance with all properties + */ + @JsonCreator + EventDeliveryPayloadImpl(@JsonProperty("id") final String id, + @JsonProperty("type") final com.commercetools.api.models.subscription.EventType type, + @JsonProperty("resourceType") final String resourceType, @JsonProperty("data") final java.lang.Object data, + @JsonProperty("createdAt") final java.time.ZonedDateTime createdAt) { + this.id = id; + this.type = type; + this.resourceType = resourceType; + this.data = data; + this.createdAt = createdAt; + this.notificationType = EVENT; + } + + /** + * create empty instance + */ + public EventDeliveryPayloadImpl() { + this.notificationType = EVENT; + } + + /** + *

                  Identifies the payload.

                  + */ + + public String getNotificationType() { + return this.notificationType; + } + + /** + *

                  Unique identifier of the Event.

                  + */ + + public String getId() { + return this.id; + } + + /** + *

                  The type of Event that has occurred.

                  + */ + + public com.commercetools.api.models.subscription.EventType getType() { + return this.type; + } + + /** + *

                  The type of resource targeted by the Event.

                  + */ + + public String getResourceType() { + return this.resourceType; + } + + /** + *

                  The data describing the event that has taken place.

                  + */ + + public java.lang.Object getData() { + return this.data; + } + + /** + *

                  Date and time (UTC) the resource was initially created.

                  + */ + + public java.time.ZonedDateTime getCreatedAt() { + return this.createdAt; + } + + public void setId(final String id) { + this.id = id; + } + + public void setType(final com.commercetools.api.models.subscription.EventType type) { + this.type = type; + } + + public void setResourceType(final String resourceType) { + this.resourceType = resourceType; + } + + public void setData(final java.lang.Object data) { + this.data = data; + } + + public void setCreatedAt(final java.time.ZonedDateTime createdAt) { + this.createdAt = createdAt; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + EventDeliveryPayloadImpl that = (EventDeliveryPayloadImpl) o; + + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(id, that.id) + .append(type, that.type) + .append(resourceType, that.resourceType) + .append(data, that.data) + .append(createdAt, that.createdAt) + .append(notificationType, that.notificationType) + .append(id, that.id) + .append(type, that.type) + .append(resourceType, that.resourceType) + .append(data, that.data) + .append(createdAt, that.createdAt) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(notificationType) + .append(id) + .append(type) + .append(resourceType) + .append(data) + .append(createdAt) + .toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .append("id", id) + .append("type", type) + .append("resourceType", resourceType) + .append("data", data) + .append("createdAt", createdAt) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscription.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscription.java new file mode 100644 index 00000000000..0359647de5b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscription.java @@ -0,0 +1,147 @@ + +package com.commercetools.api.models.subscription; + +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; + +/** + *

                  For EventSubscription, the format of the payload is custom for each specific notification.

                  + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     EventSubscription eventSubscription = EventSubscription.builder()
                  + *             .resourceTypeId(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = EventSubscriptionImpl.class) +public interface EventSubscription { + + /** + *

                  Unique identifier for the type of resource, for example, import-api.

                  + * @return resourceTypeId + */ + @NotNull + @JsonProperty("resourceTypeId") + public EventSubscriptionResourceTypeId getResourceTypeId(); + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @return types + */ + + @JsonProperty("types") + public List getTypes(); + + /** + *

                  Unique identifier for the type of resource, for example, import-api.

                  + * @param resourceTypeId value to be set + */ + + public void setResourceTypeId(final EventSubscriptionResourceTypeId resourceTypeId); + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @param types values to be set + */ + + @JsonIgnore + public void setTypes(final EventType... types); + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @param types values to be set + */ + + public void setTypes(final List types); + + /** + * factory method + * @return instance of EventSubscription + */ + public static EventSubscription of() { + return new EventSubscriptionImpl(); + } + + /** + * factory method to create a shallow copy EventSubscription + * @param template instance to be copied + * @return copy instance + */ + public static EventSubscription of(final EventSubscription template) { + EventSubscriptionImpl instance = new EventSubscriptionImpl(); + instance.setResourceTypeId(template.getResourceTypeId()); + instance.setTypes(template.getTypes()); + return instance; + } + + /** + * factory method to create a deep copy of EventSubscription + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static EventSubscription deepCopy(@Nullable final EventSubscription template) { + if (template == null) { + return null; + } + EventSubscriptionImpl instance = new EventSubscriptionImpl(); + instance.setResourceTypeId(template.getResourceTypeId()); + instance.setTypes(Optional.ofNullable(template.getTypes()).map(ArrayList::new).orElse(null)); + return instance; + } + + /** + * builder factory method for EventSubscription + * @return builder + */ + public static EventSubscriptionBuilder builder() { + return EventSubscriptionBuilder.of(); + } + + /** + * create builder for EventSubscription instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static EventSubscriptionBuilder builder(final EventSubscription template) { + return EventSubscriptionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withEventSubscription(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionBuilder.java new file mode 100644 index 00000000000..a44cc38447c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionBuilder.java @@ -0,0 +1,138 @@ + +package com.commercetools.api.models.subscription; + +import java.util.*; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * EventSubscriptionBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     EventSubscription eventSubscription = EventSubscription.builder()
                  + *             .resourceTypeId(EventSubscriptionResourceTypeId.IMPORT_API)
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventSubscriptionBuilder implements Builder { + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceTypeId; + + @Nullable + private java.util.List types; + + /** + *

                  Unique identifier for the type of resource, for example, import-api.

                  + * @param resourceTypeId value to be set + * @return Builder + */ + + public EventSubscriptionBuilder resourceTypeId( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceTypeId) { + this.resourceTypeId = resourceTypeId; + return this; + } + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @param types value to be set + * @return Builder + */ + + public EventSubscriptionBuilder types( + @Nullable final com.commercetools.api.models.subscription.EventType... types) { + this.types = new ArrayList<>(Arrays.asList(types)); + return this; + } + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @param types value to be set + * @return Builder + */ + + public EventSubscriptionBuilder types( + @Nullable final java.util.List types) { + this.types = types; + return this; + } + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @param types value to be set + * @return Builder + */ + + public EventSubscriptionBuilder plusTypes( + @Nullable final com.commercetools.api.models.subscription.EventType... types) { + if (this.types == null) { + this.types = new ArrayList<>(); + } + this.types.addAll(Arrays.asList(types)); + return this; + } + + /** + *

                  Unique identifier for the type of resource, for example, import-api.

                  + * @return resourceTypeId + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceTypeId() { + return this.resourceTypeId; + } + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + * @return types + */ + + @Nullable + public java.util.List getTypes() { + return this.types; + } + + /** + * builds EventSubscription with checking for non-null required values + * @return EventSubscription + */ + public EventSubscription build() { + Objects.requireNonNull(resourceTypeId, EventSubscription.class + ": resourceTypeId is missing"); + return new EventSubscriptionImpl(resourceTypeId, types); + } + + /** + * builds EventSubscription without checking for non-null required values + * @return EventSubscription + */ + public EventSubscription buildUnchecked() { + return new EventSubscriptionImpl(resourceTypeId, types); + } + + /** + * factory method for an instance of EventSubscriptionBuilder + * @return builder + */ + public static EventSubscriptionBuilder of() { + return new EventSubscriptionBuilder(); + } + + /** + * create builder for EventSubscription instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static EventSubscriptionBuilder of(final EventSubscription template) { + EventSubscriptionBuilder builder = new EventSubscriptionBuilder(); + builder.resourceTypeId = template.getResourceTypeId(); + builder.types = template.getTypes(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionImpl.java new file mode 100644 index 00000000000..de2687b0e90 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionImpl.java @@ -0,0 +1,104 @@ + +package com.commercetools.api.models.subscription; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  For EventSubscription, the format of the payload is custom for each specific notification.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class EventSubscriptionImpl implements EventSubscription, ModelBase { + + private com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceTypeId; + + private java.util.List types; + + /** + * create instance with all properties + */ + @JsonCreator + EventSubscriptionImpl( + @JsonProperty("resourceTypeId") final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceTypeId, + @JsonProperty("types") final java.util.List types) { + this.resourceTypeId = resourceTypeId; + this.types = types; + } + + /** + * create empty instance + */ + public EventSubscriptionImpl() { + } + + /** + *

                  Unique identifier for the type of resource, for example, import-api.

                  + */ + + public com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId getResourceTypeId() { + return this.resourceTypeId; + } + + /** + *

                  Must contain valid event types for the resource. For example, for resource type import-api the event type ImportContainerCreated is valid. If no types are given, the Subscription will receive all events for this resource.

                  + */ + + public java.util.List getTypes() { + return this.types; + } + + public void setResourceTypeId( + final com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId resourceTypeId) { + this.resourceTypeId = resourceTypeId; + } + + public void setTypes(final com.commercetools.api.models.subscription.EventType... types) { + this.types = new ArrayList<>(Arrays.asList(types)); + } + + public void setTypes(final java.util.List types) { + this.types = types; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + EventSubscriptionImpl that = (EventSubscriptionImpl) o; + + return new EqualsBuilder().append(resourceTypeId, that.resourceTypeId) + .append(types, that.types) + .append(resourceTypeId, that.resourceTypeId) + .append(types, that.types) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(resourceTypeId).append(types).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("resourceTypeId", resourceTypeId) + .append("types", types) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionResourceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionResourceTypeId.java new file mode 100644 index 00000000000..716768fe090 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventSubscriptionResourceTypeId.java @@ -0,0 +1,107 @@ + +package com.commercetools.api.models.subscription; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

                  Resource types supported by EventSubscriptions.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface EventSubscriptionResourceTypeId extends JsonEnum { + + /** +

                  Events related to the Import API.

                  */ + EventSubscriptionResourceTypeId IMPORT_API = EventSubscriptionResourceTypeIdEnum.IMPORT_API; + + /** + * possible values of EventSubscriptionResourceTypeId + */ + enum EventSubscriptionResourceTypeIdEnum implements EventSubscriptionResourceTypeId { + /** + * import-api + */ + IMPORT_API("import-api"); + private final String jsonName; + + private EventSubscriptionResourceTypeIdEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of EventSubscriptionResourceTypeId + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static EventSubscriptionResourceTypeId findEnum(String value) { + return findEnumViaJsonName(value).orElse(new EventSubscriptionResourceTypeId() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static EventSubscriptionResourceTypeId[] values() { + return EventSubscriptionResourceTypeIdEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventType.java new file mode 100644 index 00000000000..5fa5ed92196 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/EventType.java @@ -0,0 +1,147 @@ + +package com.commercetools.api.models.subscription; + +import java.util.Arrays; +import java.util.Optional; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonValue; + +import io.vrap.rmf.base.client.JsonEnum; +import io.vrap.rmf.base.client.utils.Generated; + +/** + *

                  Type of events supported by EventSubscriptions.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface EventType extends JsonEnum { + + /** +

                  Indicates an Import Container Created Event.

                  */ + EventType IMPORT_CONTAINER_CREATED = EventTypeEnum.IMPORT_CONTAINER_CREATED; + /** +

                  Indicates an Import Container Deleted Event.

                  */ + EventType IMPORT_CONTAINER_DELETED = EventTypeEnum.IMPORT_CONTAINER_DELETED; + /** +

                  Indicates an Import Operation Rejected Event.

                  */ + EventType IMPORT_OPERATION_REJECTED = EventTypeEnum.IMPORT_OPERATION_REJECTED; + /** +

                  Indicates an Import Unresolved Event.

                  */ + EventType IMPORT_UNRESOLVED = EventTypeEnum.IMPORT_UNRESOLVED; + /** +

                  Indicates an Import Validation Failed Event.

                  */ + EventType IMPORT_VALIDATION_FAILED = EventTypeEnum.IMPORT_VALIDATION_FAILED; + /** +

                  Indicates an Import Wait For Master Variant Event.

                  */ + EventType IMPORT_WAIT_FOR_MASTER_VARIANT = EventTypeEnum.IMPORT_WAIT_FOR_MASTER_VARIANT; + + /** + * possible values of EventType + */ + enum EventTypeEnum implements EventType { + /** + * ImportContainerCreated + */ + IMPORT_CONTAINER_CREATED("ImportContainerCreated"), + + /** + * ImportContainerDeleted + */ + IMPORT_CONTAINER_DELETED("ImportContainerDeleted"), + + /** + * ImportOperationRejected + */ + IMPORT_OPERATION_REJECTED("ImportOperationRejected"), + + /** + * ImportUnresolved + */ + IMPORT_UNRESOLVED("ImportUnresolved"), + + /** + * ImportValidationFailed + */ + IMPORT_VALIDATION_FAILED("ImportValidationFailed"), + + /** + * ImportWaitForMasterVariant + */ + IMPORT_WAIT_FOR_MASTER_VARIANT("ImportWaitForMasterVariant"); + private final String jsonName; + + private EventTypeEnum(final String jsonName) { + this.jsonName = jsonName; + } + + public String getJsonName() { + return jsonName; + } + + public String toString() { + return jsonName; + } + } + + /** + * the JSON value + * @return json value + */ + @JsonValue + String getJsonName(); + + /** + * the enum value + * @return name + */ + String name(); + + /** + * convert value to string + * @return string representation + */ + String toString(); + + /** + * factory method for a enum value of EventType + * if no enum has been found an anonymous instance will be created + * @param value the enum value to be wrapped + * @return enum instance + */ + @JsonCreator + public static EventType findEnum(String value) { + return findEnumViaJsonName(value).orElse(new EventType() { + @Override + public String getJsonName() { + return value; + } + + @Override + public String name() { + return value.toUpperCase(); + } + + public String toString() { + return value; + } + }); + } + + /** + * method to find enum using the JSON value + * @param jsonName the json value to be wrapped + * @return optional of enum instance + */ + public static Optional findEnumViaJsonName(String jsonName) { + return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst(); + } + + /** + * possible enum values + * @return array of possible enum values + */ + public static EventType[] values() { + return EventTypeEnum.values(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java index f88d580e699..c485001efb1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/MessageDeliveryPayloadImpl.java @@ -22,10 +22,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class MessageDeliveryPayloadImpl implements MessageDeliveryPayload, ModelBase { - private String projectKey; - private String notificationType; + private String projectKey; + private com.commercetools.api.models.common.Reference resource; private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; @@ -78,19 +78,19 @@ public MessageDeliveryPayloadImpl() { } /** - *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  + *

                  Identifies the payload.

                  */ - public String getProjectKey() { - return this.projectKey; + public String getNotificationType() { + return this.notificationType; } /** - *

                  Identifies the payload.

                  + *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  */ - public String getNotificationType() { - return this.notificationType; + public String getProjectKey() { + return this.projectKey; } /** @@ -217,8 +217,8 @@ public boolean equals(Object o) { MessageDeliveryPayloadImpl that = (MessageDeliveryPayloadImpl) o; - return new EqualsBuilder().append(projectKey, that.projectKey) - .append(notificationType, that.notificationType) + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(id, that.id) @@ -228,8 +228,8 @@ public boolean equals(Object o) { .append(sequenceNumber, that.sequenceNumber) .append(resourceVersion, that.resourceVersion) .append(payloadNotIncluded, that.payloadNotIncluded) - .append(projectKey, that.projectKey) .append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(id, that.id) @@ -244,8 +244,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey) - .append(notificationType) + return new HashCodeBuilder(17, 37).append(notificationType) + .append(projectKey) .append(resource) .append(resourceUserProvidedIdentifiers) .append(id) @@ -260,8 +260,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("projectKey", projectKey) - .append("notificationType", notificationType) + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .append("projectKey", projectKey) .append("resource", resource) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("id", id) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java index dfbe7f43194..da02a216367 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceCreatedDeliveryPayloadImpl.java @@ -22,10 +22,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceCreatedDeliveryPayloadImpl implements ResourceCreatedDeliveryPayload, ModelBase { - private String projectKey; - private String notificationType; + private String projectKey; + private com.commercetools.api.models.common.Reference resource; private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; @@ -59,19 +59,19 @@ public ResourceCreatedDeliveryPayloadImpl() { } /** - *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  + *

                  Identifies the payload.

                  */ - public String getProjectKey() { - return this.projectKey; + public String getNotificationType() { + return this.notificationType; } /** - *

                  Identifies the payload.

                  + *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  */ - public String getNotificationType() { - return this.notificationType; + public String getProjectKey() { + return this.projectKey; } /** @@ -137,14 +137,14 @@ public boolean equals(Object o) { ResourceCreatedDeliveryPayloadImpl that = (ResourceCreatedDeliveryPayloadImpl) o; - return new EqualsBuilder().append(projectKey, that.projectKey) - .append(notificationType, that.notificationType) + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(version, that.version) .append(modifiedAt, that.modifiedAt) - .append(projectKey, that.projectKey) .append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(version, that.version) @@ -154,8 +154,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey) - .append(notificationType) + return new HashCodeBuilder(17, 37).append(notificationType) + .append(projectKey) .append(resource) .append(resourceUserProvidedIdentifiers) .append(version) @@ -165,8 +165,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("projectKey", projectKey) - .append("notificationType", notificationType) + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .append("projectKey", projectKey) .append("resource", resource) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("version", version) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java index eb5b0e1633e..7e957a0523b 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceDeletedDeliveryPayloadImpl.java @@ -22,10 +22,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceDeletedDeliveryPayloadImpl implements ResourceDeletedDeliveryPayload, ModelBase { - private String projectKey; - private String notificationType; + private String projectKey; + private com.commercetools.api.models.common.Reference resource; private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; @@ -63,19 +63,19 @@ public ResourceDeletedDeliveryPayloadImpl() { } /** - *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  + *

                  Identifies the payload.

                  */ - public String getProjectKey() { - return this.projectKey; + public String getNotificationType() { + return this.notificationType; } /** - *

                  Identifies the payload.

                  + *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  */ - public String getNotificationType() { - return this.notificationType; + public String getProjectKey() { + return this.projectKey; } /** @@ -153,15 +153,15 @@ public boolean equals(Object o) { ResourceDeletedDeliveryPayloadImpl that = (ResourceDeletedDeliveryPayloadImpl) o; - return new EqualsBuilder().append(projectKey, that.projectKey) - .append(notificationType, that.notificationType) + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(version, that.version) .append(modifiedAt, that.modifiedAt) .append(dataErasure, that.dataErasure) - .append(projectKey, that.projectKey) .append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(version, that.version) @@ -172,8 +172,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey) - .append(notificationType) + return new HashCodeBuilder(17, 37).append(notificationType) + .append(projectKey) .append(resource) .append(resourceUserProvidedIdentifiers) .append(version) @@ -184,8 +184,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("projectKey", projectKey) - .append("notificationType", notificationType) + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .append("projectKey", projectKey) .append("resource", resource) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("version", version) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java index 1eb670d16a8..3a4c9e4241a 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/ResourceUpdatedDeliveryPayloadImpl.java @@ -22,10 +22,10 @@ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ResourceUpdatedDeliveryPayloadImpl implements ResourceUpdatedDeliveryPayload, ModelBase { - private String projectKey; - private String notificationType; + private String projectKey; + private com.commercetools.api.models.common.Reference resource; private com.commercetools.api.models.message.UserProvidedIdentifiers resourceUserProvidedIdentifiers; @@ -62,19 +62,19 @@ public ResourceUpdatedDeliveryPayloadImpl() { } /** - *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  + *

                  Identifies the payload.

                  */ - public String getProjectKey() { - return this.projectKey; + public String getNotificationType() { + return this.notificationType; } /** - *

                  Identifies the payload.

                  + *

                  key of the Project. Useful for processing notifications if the Destination receives them from multiple Projects.

                  */ - public String getNotificationType() { - return this.notificationType; + public String getProjectKey() { + return this.projectKey; } /** @@ -152,15 +152,15 @@ public boolean equals(Object o) { ResourceUpdatedDeliveryPayloadImpl that = (ResourceUpdatedDeliveryPayloadImpl) o; - return new EqualsBuilder().append(projectKey, that.projectKey) - .append(notificationType, that.notificationType) + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(version, that.version) .append(oldVersion, that.oldVersion) .append(modifiedAt, that.modifiedAt) - .append(projectKey, that.projectKey) .append(notificationType, that.notificationType) + .append(projectKey, that.projectKey) .append(resource, that.resource) .append(resourceUserProvidedIdentifiers, that.resourceUserProvidedIdentifiers) .append(version, that.version) @@ -171,8 +171,8 @@ public boolean equals(Object o) { @Override public int hashCode() { - return new HashCodeBuilder(17, 37).append(projectKey) - .append(notificationType) + return new HashCodeBuilder(17, 37).append(notificationType) + .append(projectKey) .append(resource) .append(resourceUserProvidedIdentifiers) .append(version) @@ -183,8 +183,8 @@ public int hashCode() { @Override public String toString() { - return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("projectKey", projectKey) - .append("notificationType", notificationType) + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .append("projectKey", projectKey) .append("resource", resource) .append("resourceUserProvidedIdentifiers", resourceUserProvidedIdentifiers) .append("version", version) diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java index b31f70a3f0f..3ebb4ba269f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/Subscription.java @@ -35,6 +35,7 @@ * .plusChanges(changesBuilder -> changesBuilder) * .destination(destinationBuilder -> destinationBuilder) * .plusMessages(messagesBuilder -> messagesBuilder) + * .plusEvents(eventsBuilder -> eventsBuilder) * .format(formatBuilder -> formatBuilder) * .status(SubscriptionHealthStatus.HEALTHY) * .build() @@ -129,6 +130,15 @@ public interface Subscription extends BaseResource, com.commercetools.api.models @JsonProperty("messages") public List getMessages(); + /** + *

                  Events subscribed to.

                  + * @return events + */ + @NotNull + @Valid + @JsonProperty("events") + public List getEvents(); + /** *

                  Format in which the payload is delivered.

                  * @return format @@ -232,6 +242,21 @@ public interface Subscription extends BaseResource, com.commercetools.api.models public void setMessages(final List messages); + /** + *

                  Events subscribed to.

                  + * @param events values to be set + */ + + @JsonIgnore + public void setEvents(final EventSubscription... events); + + /** + *

                  Events subscribed to.

                  + * @param events values to be set + */ + + public void setEvents(final List events); + /** *

                  Format in which the payload is delivered.

                  * @param format value to be set @@ -271,6 +296,7 @@ public static Subscription of(final Subscription template) { instance.setDestination(template.getDestination()); instance.setKey(template.getKey()); instance.setMessages(template.getMessages()); + instance.setEvents(template.getEvents()); instance.setFormat(template.getFormat()); instance.setStatus(template.getStatus()); return instance; @@ -307,6 +333,11 @@ public static Subscription deepCopy(@Nullable final Subscription template) { .map(com.commercetools.api.models.subscription.MessageSubscription::deepCopy) .collect(Collectors.toList())) .orElse(null)); + instance.setEvents(Optional.ofNullable(template.getEvents()) + .map(t -> t.stream() + .map(com.commercetools.api.models.subscription.EventSubscription::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setFormat(com.commercetools.api.models.subscription.DeliveryFormat.deepCopy(template.getFormat())); instance.setStatus(template.getStatus()); return instance; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java index 5cd08777553..2a4d8afafce 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionBuilder.java @@ -23,6 +23,7 @@ * .plusChanges(changesBuilder -> changesBuilder) * .destination(destinationBuilder -> destinationBuilder) * .plusMessages(messagesBuilder -> messagesBuilder) + * .plusEvents(eventsBuilder -> eventsBuilder) * .format(formatBuilder -> formatBuilder) * .status(SubscriptionHealthStatus.HEALTHY) * .build() @@ -55,6 +56,8 @@ public class SubscriptionBuilder implements Builder { private java.util.List messages; + private java.util.List events; + private com.commercetools.api.models.subscription.DeliveryFormat format; private com.commercetools.api.models.subscription.SubscriptionHealthStatus status; @@ -389,6 +392,93 @@ public SubscriptionBuilder setMessages( return messages(builder.apply(com.commercetools.api.models.subscription.MessageSubscriptionBuilder.of())); } + /** + *

                  Events subscribed to.

                  + * @param events value to be set + * @return Builder + */ + + public SubscriptionBuilder events(final com.commercetools.api.models.subscription.EventSubscription... events) { + this.events = new ArrayList<>(Arrays.asList(events)); + return this; + } + + /** + *

                  Events subscribed to.

                  + * @param events value to be set + * @return Builder + */ + + public SubscriptionBuilder events( + final java.util.List events) { + this.events = events; + return this; + } + + /** + *

                  Events subscribed to.

                  + * @param events value to be set + * @return Builder + */ + + public SubscriptionBuilder plusEvents(final com.commercetools.api.models.subscription.EventSubscription... events) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.addAll(Arrays.asList(events)); + return this; + } + + /** + *

                  Events subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionBuilder plusEvents( + Function builder) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.add(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of()).build()); + return this; + } + + /** + *

                  Events subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionBuilder withEvents( + Function builder) { + this.events = new ArrayList<>(); + this.events.add(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of()).build()); + return this; + } + + /** + *

                  Events subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionBuilder addEvents( + Function builder) { + return plusEvents(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of())); + } + + /** + *

                  Events subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionBuilder setEvents( + Function builder) { + return events(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of())); + } + /** *

                  Format in which the payload is delivered.

                  * @param format value to be set @@ -516,6 +606,15 @@ public java.util.ListEvents subscribed to.

                  + * @return events + */ + + public java.util.List getEvents() { + return this.events; + } + /** *

                  Format in which the payload is delivered.

                  * @return format @@ -546,10 +645,11 @@ public Subscription build() { Objects.requireNonNull(changes, Subscription.class + ": changes is missing"); Objects.requireNonNull(destination, Subscription.class + ": destination is missing"); Objects.requireNonNull(messages, Subscription.class + ": messages is missing"); + Objects.requireNonNull(events, Subscription.class + ": events is missing"); Objects.requireNonNull(format, Subscription.class + ": format is missing"); Objects.requireNonNull(status, Subscription.class + ": status is missing"); return new SubscriptionImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, changes, - destination, key, messages, format, status); + destination, key, messages, events, format, status); } /** @@ -558,7 +658,7 @@ public Subscription build() { */ public Subscription buildUnchecked() { return new SubscriptionImpl(id, version, createdAt, lastModifiedAt, lastModifiedBy, createdBy, changes, - destination, key, messages, format, status); + destination, key, messages, events, format, status); } /** @@ -586,6 +686,7 @@ public static SubscriptionBuilder of(final Subscription template) { builder.destination = template.getDestination(); builder.key = template.getKey(); builder.messages = template.getMessages(); + builder.events = template.getEvents(); builder.format = template.getFormat(); builder.status = template.getStatus(); return builder; diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java index 1748280bf91..f41a6e8bfa0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraft.java @@ -67,6 +67,14 @@ public interface SubscriptionDraft @JsonProperty("messages") public List getMessages(); + /** + *

                  Events to be subscribed to.

                  + * @return events + */ + @Valid + @JsonProperty("events") + public List getEvents(); + /** *

                  Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

                  * @return format @@ -119,6 +127,21 @@ public interface SubscriptionDraft public void setMessages(final List messages); + /** + *

                  Events to be subscribed to.

                  + * @param events values to be set + */ + + @JsonIgnore + public void setEvents(final EventSubscription... events); + + /** + *

                  Events to be subscribed to.

                  + * @param events values to be set + */ + + public void setEvents(final List events); + /** *

                  Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

                  * @param format value to be set @@ -145,6 +168,7 @@ public static SubscriptionDraft of(final SubscriptionDraft template) { instance.setDestination(template.getDestination()); instance.setKey(template.getKey()); instance.setMessages(template.getMessages()); + instance.setEvents(template.getEvents()); instance.setFormat(template.getFormat()); return instance; } @@ -173,6 +197,11 @@ public static SubscriptionDraft deepCopy(@Nullable final SubscriptionDraft templ .map(com.commercetools.api.models.subscription.MessageSubscription::deepCopy) .collect(Collectors.toList())) .orElse(null)); + instance.setEvents(Optional.ofNullable(template.getEvents()) + .map(t -> t.stream() + .map(com.commercetools.api.models.subscription.EventSubscription::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); instance.setFormat(com.commercetools.api.models.subscription.DeliveryFormat.deepCopy(template.getFormat())); return instance; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java index 72c8ee3cc45..8f200d853b1 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftBuilder.java @@ -35,6 +35,9 @@ public class SubscriptionDraftBuilder implements Builder { @Nullable private java.util.List messages; + @Nullable + private java.util.List events; + @Nullable private com.commercetools.api.models.subscription.DeliveryFormat format; @@ -255,6 +258,95 @@ public SubscriptionDraftBuilder setMessages( return messages(builder.apply(com.commercetools.api.models.subscription.MessageSubscriptionBuilder.of())); } + /** + *

                  Events to be subscribed to.

                  + * @param events value to be set + * @return Builder + */ + + public SubscriptionDraftBuilder events( + @Nullable final com.commercetools.api.models.subscription.EventSubscription... events) { + this.events = new ArrayList<>(Arrays.asList(events)); + return this; + } + + /** + *

                  Events to be subscribed to.

                  + * @param events value to be set + * @return Builder + */ + + public SubscriptionDraftBuilder events( + @Nullable final java.util.List events) { + this.events = events; + return this; + } + + /** + *

                  Events to be subscribed to.

                  + * @param events value to be set + * @return Builder + */ + + public SubscriptionDraftBuilder plusEvents( + @Nullable final com.commercetools.api.models.subscription.EventSubscription... events) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.addAll(Arrays.asList(events)); + return this; + } + + /** + *

                  Events to be subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionDraftBuilder plusEvents( + Function builder) { + if (this.events == null) { + this.events = new ArrayList<>(); + } + this.events.add(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of()).build()); + return this; + } + + /** + *

                  Events to be subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionDraftBuilder withEvents( + Function builder) { + this.events = new ArrayList<>(); + this.events.add(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of()).build()); + return this; + } + + /** + *

                  Events to be subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionDraftBuilder addEvents( + Function builder) { + return plusEvents(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of())); + } + + /** + *

                  Events to be subscribed to.

                  + * @param builder function to build the events value + * @return Builder + */ + + public SubscriptionDraftBuilder setEvents( + Function builder) { + return events(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of())); + } + /** *

                  Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

                  * @param format value to be set @@ -318,6 +410,16 @@ public java.util.ListEvents to be subscribed to.

                  + * @return events + */ + + @Nullable + public java.util.List getEvents() { + return this.events; + } + /** *

                  Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

                  * @return format @@ -334,7 +436,7 @@ public com.commercetools.api.models.subscription.DeliveryFormat getFormat() { */ public SubscriptionDraft build() { Objects.requireNonNull(destination, SubscriptionDraft.class + ": destination is missing"); - return new SubscriptionDraftImpl(changes, destination, key, messages, format); + return new SubscriptionDraftImpl(changes, destination, key, messages, events, format); } /** @@ -342,7 +444,7 @@ public SubscriptionDraft build() { * @return SubscriptionDraft */ public SubscriptionDraft buildUnchecked() { - return new SubscriptionDraftImpl(changes, destination, key, messages, format); + return new SubscriptionDraftImpl(changes, destination, key, messages, events, format); } /** @@ -364,6 +466,7 @@ public static SubscriptionDraftBuilder of(final SubscriptionDraft template) { builder.destination = template.getDestination(); builder.key = template.getKey(); builder.messages = template.getMessages(); + builder.events = template.getEvents(); builder.format = template.getFormat(); return builder; } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java index 30b420c63f4..4a25e85bacd 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftImpl.java @@ -30,6 +30,8 @@ public class SubscriptionDraftImpl implements SubscriptionDraft, ModelBase { private java.util.List messages; + private java.util.List events; + private com.commercetools.api.models.subscription.DeliveryFormat format; /** @@ -41,11 +43,13 @@ public class SubscriptionDraftImpl implements SubscriptionDraft, ModelBase { @JsonProperty("destination") final com.commercetools.api.models.subscription.Destination destination, @JsonProperty("key") final String key, @JsonProperty("messages") final java.util.List messages, + @JsonProperty("events") final java.util.List events, @JsonProperty("format") final com.commercetools.api.models.subscription.DeliveryFormat format) { this.changes = changes; this.destination = destination; this.key = key; this.messages = messages; + this.events = events; this.format = format; } @@ -87,6 +91,14 @@ public java.util.ListEvents to be subscribed to.

                  + */ + + public java.util.List getEvents() { + return this.events; + } + /** *

                  Format in which the payload is delivered. When not provided, the PlatformFormat is selected by default.

                  */ @@ -120,6 +132,14 @@ public void setMessages( this.messages = messages; } + public void setEvents(final com.commercetools.api.models.subscription.EventSubscription... events) { + this.events = new ArrayList<>(Arrays.asList(events)); + } + + public void setEvents(final java.util.List events) { + this.events = events; + } + public void setFormat(final com.commercetools.api.models.subscription.DeliveryFormat format) { this.format = format; } @@ -138,11 +158,13 @@ public boolean equals(Object o) { .append(destination, that.destination) .append(key, that.key) .append(messages, that.messages) + .append(events, that.events) .append(format, that.format) .append(changes, that.changes) .append(destination, that.destination) .append(key, that.key) .append(messages, that.messages) + .append(events, that.events) .append(format, that.format) .isEquals(); } @@ -153,6 +175,7 @@ public int hashCode() { .append(destination) .append(key) .append(messages) + .append(events) .append(format) .toHashCode(); } @@ -163,6 +186,7 @@ public String toString() { .append("destination", destination) .append("key", key) .append("messages", messages) + .append("events", events) .append("format", format) .build(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java index cbf8896e235..57beed7aff6 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionImpl.java @@ -42,6 +42,8 @@ public class SubscriptionImpl implements Subscription, ModelBase { private java.util.List messages; + private java.util.List events; + private com.commercetools.api.models.subscription.DeliveryFormat format; private com.commercetools.api.models.subscription.SubscriptionHealthStatus status; @@ -59,6 +61,7 @@ public class SubscriptionImpl implements Subscription, ModelBase { @JsonProperty("destination") final com.commercetools.api.models.subscription.Destination destination, @JsonProperty("key") final String key, @JsonProperty("messages") final java.util.List messages, + @JsonProperty("events") final java.util.List events, @JsonProperty("format") final com.commercetools.api.models.subscription.DeliveryFormat format, @JsonProperty("status") final com.commercetools.api.models.subscription.SubscriptionHealthStatus status) { this.id = id; @@ -71,6 +74,7 @@ public class SubscriptionImpl implements Subscription, ModelBase { this.destination = destination; this.key = key; this.messages = messages; + this.events = events; this.format = format; this.status = status; } @@ -161,6 +165,14 @@ public java.util.ListEvents subscribed to.

                  + */ + + public java.util.List getEvents() { + return this.events; + } + /** *

                  Format in which the payload is delivered.

                  */ @@ -226,6 +238,14 @@ public void setMessages( this.messages = messages; } + public void setEvents(final com.commercetools.api.models.subscription.EventSubscription... events) { + this.events = new ArrayList<>(Arrays.asList(events)); + } + + public void setEvents(final java.util.List events) { + this.events = events; + } + public void setFormat(final com.commercetools.api.models.subscription.DeliveryFormat format) { this.format = format; } @@ -254,6 +274,7 @@ public boolean equals(Object o) { .append(destination, that.destination) .append(key, that.key) .append(messages, that.messages) + .append(events, that.events) .append(format, that.format) .append(status, that.status) .append(id, that.id) @@ -266,6 +287,7 @@ public boolean equals(Object o) { .append(destination, that.destination) .append(key, that.key) .append(messages, that.messages) + .append(events, that.events) .append(format, that.format) .append(status, that.status) .isEquals(); @@ -283,6 +305,7 @@ public int hashCode() { .append(destination) .append(key) .append(messages) + .append(events) .append(format) .append(status) .toHashCode(); @@ -300,6 +323,7 @@ public String toString() { .append("destination", destination) .append("key", key) .append("messages", messages) + .append("events", events) .append("format", format) .append("status", status) .build(); diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotification.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotification.java new file mode 100644 index 00000000000..ec0c7e7d4d9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotification.java @@ -0,0 +1,137 @@ + +package com.commercetools.api.models.subscription; + +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; + +/** + *

                  All payloads for the PlatformFormat share these common fields.

                  + * + *
                  + * Example to create a subtype instance using the builder pattern + *
                  + *
                  
                  + *     SubscriptionNotification subscriptionNotification = SubscriptionNotification.eventBuilder()
                  + *             id("{id}")
                  + *             type(EventType.IMPORT_CONTAINER_CREATED)
                  + *             resourceType("{resourceType}")
                  + *             data(dataBuilder -> dataBuilder)
                  + *             createdAt(ZonedDateTime.parse("2022-01-01T12:00:00.301Z"))
                  + *             .build()
                  + * 
                  + *
                  + */ +@JsonSubTypes({ + @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.EventDeliveryPayloadImpl.class, name = EventDeliveryPayload.EVENT), + @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.MessageDeliveryPayloadImpl.class, name = MessageDeliveryPayload.MESSAGE), + @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.ResourceCreatedDeliveryPayloadImpl.class, name = ResourceCreatedDeliveryPayload.RESOURCE_CREATED), + @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.ResourceDeletedDeliveryPayloadImpl.class, name = ResourceDeletedDeliveryPayload.RESOURCE_DELETED), + @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadImpl.class, name = ResourceUpdatedDeliveryPayload.RESOURCE_UPDATED) }) +@JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "notificationType", defaultImpl = SubscriptionNotificationImpl.class, visible = true) +@JsonDeserialize(as = SubscriptionNotificationImpl.class) +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public interface SubscriptionNotification { + + /** + *

                  Identifies the payload.

                  + * @return notificationType + */ + @NotNull + @JsonProperty("notificationType") + public String getNotificationType(); + + /** + * factory method to create a deep copy of SubscriptionNotification + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SubscriptionNotification deepCopy(@Nullable final SubscriptionNotification template) { + if (template == null) { + return null; + } + if (template instanceof com.commercetools.api.models.subscription.DeliveryPayload) { + return com.commercetools.api.models.subscription.DeliveryPayload + .deepCopy((com.commercetools.api.models.subscription.DeliveryPayload) template); + } + if (template instanceof com.commercetools.api.models.subscription.EventDeliveryPayload) { + return com.commercetools.api.models.subscription.EventDeliveryPayload + .deepCopy((com.commercetools.api.models.subscription.EventDeliveryPayload) template); + } + SubscriptionNotificationImpl instance = new SubscriptionNotificationImpl(); + return instance; + } + + /** + * builder for event subtype + * @return builder + */ + public static com.commercetools.api.models.subscription.EventDeliveryPayloadBuilder eventBuilder() { + return com.commercetools.api.models.subscription.EventDeliveryPayloadBuilder.of(); + } + + /** + * builder for message subtype + * @return builder + */ + public static com.commercetools.api.models.subscription.MessageDeliveryPayloadBuilder messageBuilder() { + return com.commercetools.api.models.subscription.MessageDeliveryPayloadBuilder.of(); + } + + /** + * builder for resourceCreated subtype + * @return builder + */ + public static com.commercetools.api.models.subscription.ResourceCreatedDeliveryPayloadBuilder resourceCreatedBuilder() { + return com.commercetools.api.models.subscription.ResourceCreatedDeliveryPayloadBuilder.of(); + } + + /** + * builder for resourceDeleted subtype + * @return builder + */ + public static com.commercetools.api.models.subscription.ResourceDeletedDeliveryPayloadBuilder resourceDeletedBuilder() { + return com.commercetools.api.models.subscription.ResourceDeletedDeliveryPayloadBuilder.of(); + } + + /** + * builder for resourceUpdated subtype + * @return builder + */ + public static com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadBuilder resourceUpdatedBuilder() { + return com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadBuilder.of(); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSubscriptionNotification(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotificationBuilder.java similarity index 72% rename from commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadBuilder.java rename to commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotificationBuilder.java index d02cdeb6118..8c892a26267 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/DeliveryPayloadBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotificationBuilder.java @@ -6,10 +6,14 @@ import io.vrap.rmf.base.client.utils.Generated; /** - * DeliveryPayloadBuilder + * SubscriptionNotificationBuilder */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") -public class DeliveryPayloadBuilder { +public class SubscriptionNotificationBuilder { + + public com.commercetools.api.models.subscription.EventDeliveryPayloadBuilder eventBuilder() { + return com.commercetools.api.models.subscription.EventDeliveryPayloadBuilder.of(); + } public com.commercetools.api.models.subscription.MessageDeliveryPayloadBuilder messageBuilder() { return com.commercetools.api.models.subscription.MessageDeliveryPayloadBuilder.of(); @@ -28,11 +32,11 @@ public com.commercetools.api.models.subscription.ResourceUpdatedDeliveryPayloadB } /** - * factory method for an instance of DeliveryPayloadBuilder + * factory method for an instance of SubscriptionNotificationBuilder * @return builder */ - public static DeliveryPayloadBuilder of() { - return new DeliveryPayloadBuilder(); + public static SubscriptionNotificationBuilder of() { + return new SubscriptionNotificationBuilder(); } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotificationImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotificationImpl.java new file mode 100644 index 00000000000..cf40b13bf7b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionNotificationImpl.java @@ -0,0 +1,75 @@ + +package com.commercetools.api.models.subscription; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + *

                  All payloads for the PlatformFormat share these common fields.

                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SubscriptionNotificationImpl implements SubscriptionNotification, ModelBase { + + private String notificationType; + + /** + * create instance with all properties + */ + @JsonCreator + SubscriptionNotificationImpl(@JsonProperty("notificationType") final String notificationType) { + this.notificationType = notificationType; + } + + /** + * create empty instance + */ + public SubscriptionNotificationImpl() { + } + + /** + *

                  Identifies the payload.

                  + */ + + public String getNotificationType() { + return this.notificationType; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SubscriptionNotificationImpl that = (SubscriptionNotificationImpl) o; + + return new EqualsBuilder().append(notificationType, that.notificationType) + .append(notificationType, that.notificationType) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(notificationType).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("notificationType", notificationType) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java index 87e17ec9cc4..b13a13a3222 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesAction.java @@ -37,7 +37,7 @@ public interface SubscriptionSetChangesAction extends SubscriptionUpdateAction { String SET_CHANGES = "setChanges"; /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @return changes */ @Valid @@ -45,7 +45,7 @@ public interface SubscriptionSetChangesAction extends SubscriptionUpdateAction { public List getChanges(); /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param changes values to be set */ @@ -53,7 +53,7 @@ public interface SubscriptionSetChangesAction extends SubscriptionUpdateAction { public void setChanges(final ChangeSubscription... changes); /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param changes values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java index 7d4619fef9b..f276f60e8e2 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionBuilder.java @@ -27,7 +27,7 @@ public class SubscriptionSetChangesActionBuilder implements Builder changes; /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param changes value to be set * @return Builder */ @@ -39,7 +39,7 @@ public SubscriptionSetChangesActionBuilder changes( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param changes value to be set * @return Builder */ @@ -51,7 +51,7 @@ public SubscriptionSetChangesActionBuilder changes( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param changes value to be set * @return Builder */ @@ -66,7 +66,7 @@ public SubscriptionSetChangesActionBuilder plusChanges( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param builder function to build the changes value * @return Builder */ @@ -82,7 +82,7 @@ public SubscriptionSetChangesActionBuilder plusChanges( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param builder function to build the changes value * @return Builder */ @@ -96,7 +96,7 @@ public SubscriptionSetChangesActionBuilder withChanges( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param builder function to build the changes value * @return Builder */ @@ -107,7 +107,7 @@ public SubscriptionSetChangesActionBuilder addChanges( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @param builder function to build the changes value * @return Builder */ @@ -118,7 +118,7 @@ public SubscriptionSetChangesActionBuilder setChanges( } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  * @return changes */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java index 7d62d017569..4a883dc6ef8 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetChangesActionImpl.java @@ -52,7 +52,7 @@ public String getAction() { } /** - *

                  Value to set. Can only be unset if messages is set.

                  + *

                  Value to set. Can only be unset if either messages or events is set.

                  */ public java.util.List getChanges() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsAction.java new file mode 100644 index 00000000000..ff7ed412b11 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsAction.java @@ -0,0 +1,139 @@ + +package com.commercetools.api.models.subscription; + +import java.time.*; +import java.util.*; +import java.util.function.Function; +import java.util.stream.Collectors; + +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.Valid; + +/** + * SubscriptionSetEventsAction + * + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     SubscriptionSetEventsAction subscriptionSetEventsAction = SubscriptionSetEventsAction.builder()
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +@JsonDeserialize(as = SubscriptionSetEventsActionImpl.class) +public interface SubscriptionSetEventsAction extends SubscriptionUpdateAction { + + /** + * discriminator value for SubscriptionSetEventsAction + */ + String SET_EVENTS = "setEvents"; + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @return messages + */ + @Valid + @JsonProperty("messages") + public List getMessages(); + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param messages values to be set + */ + + @JsonIgnore + public void setMessages(final EventSubscription... messages); + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param messages values to be set + */ + + public void setMessages(final List messages); + + /** + * factory method + * @return instance of SubscriptionSetEventsAction + */ + public static SubscriptionSetEventsAction of() { + return new SubscriptionSetEventsActionImpl(); + } + + /** + * factory method to create a shallow copy SubscriptionSetEventsAction + * @param template instance to be copied + * @return copy instance + */ + public static SubscriptionSetEventsAction of(final SubscriptionSetEventsAction template) { + SubscriptionSetEventsActionImpl instance = new SubscriptionSetEventsActionImpl(); + instance.setMessages(template.getMessages()); + return instance; + } + + /** + * factory method to create a deep copy of SubscriptionSetEventsAction + * @param template instance to be copied + * @return copy instance + */ + @Nullable + public static SubscriptionSetEventsAction deepCopy(@Nullable final SubscriptionSetEventsAction template) { + if (template == null) { + return null; + } + SubscriptionSetEventsActionImpl instance = new SubscriptionSetEventsActionImpl(); + instance.setMessages(Optional.ofNullable(template.getMessages()) + .map(t -> t.stream() + .map(com.commercetools.api.models.subscription.EventSubscription::deepCopy) + .collect(Collectors.toList())) + .orElse(null)); + return instance; + } + + /** + * builder factory method for SubscriptionSetEventsAction + * @return builder + */ + public static SubscriptionSetEventsActionBuilder builder() { + return SubscriptionSetEventsActionBuilder.of(); + } + + /** + * create builder for SubscriptionSetEventsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SubscriptionSetEventsActionBuilder builder(final SubscriptionSetEventsAction template) { + return SubscriptionSetEventsActionBuilder.of(template); + } + + /** + * accessor map function + * @param mapped type + * @param helper function to map the object + * @return mapped value + */ + default T withSubscriptionSetEventsAction(Function helper) { + return helper.apply(this); + } + + /** + * gives a TypeReference for usage with Jackson DataBind + * @return TypeReference + */ + public static com.fasterxml.jackson.core.type.TypeReference typeReference() { + return new com.fasterxml.jackson.core.type.TypeReference() { + @Override + public String toString() { + return "TypeReference"; + } + }; + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionBuilder.java new file mode 100644 index 00000000000..50780f9ff5f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionBuilder.java @@ -0,0 +1,165 @@ + +package com.commercetools.api.models.subscription; + +import java.util.*; +import java.util.function.Function; + +import javax.annotation.Nullable; + +import io.vrap.rmf.base.client.Builder; +import io.vrap.rmf.base.client.utils.Generated; + +/** + * SubscriptionSetEventsActionBuilder + *
                  + * Example to create an instance using the builder pattern + *
                  + *
                  
                  + *     SubscriptionSetEventsAction subscriptionSetEventsAction = SubscriptionSetEventsAction.builder()
                  + *             .build()
                  + * 
                  + *
                  + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SubscriptionSetEventsActionBuilder implements Builder { + + @Nullable + private java.util.List messages; + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param messages value to be set + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder messages( + @Nullable final com.commercetools.api.models.subscription.EventSubscription... messages) { + this.messages = new ArrayList<>(Arrays.asList(messages)); + return this; + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param messages value to be set + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder messages( + @Nullable final java.util.List messages) { + this.messages = messages; + return this; + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param messages value to be set + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder plusMessages( + @Nullable final com.commercetools.api.models.subscription.EventSubscription... messages) { + if (this.messages == null) { + this.messages = new ArrayList<>(); + } + this.messages.addAll(Arrays.asList(messages)); + return this; + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param builder function to build the messages value + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder plusMessages( + Function builder) { + if (this.messages == null) { + this.messages = new ArrayList<>(); + } + this.messages + .add(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of()).build()); + return this; + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param builder function to build the messages value + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder withMessages( + Function builder) { + this.messages = new ArrayList<>(); + this.messages + .add(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of()).build()); + return this; + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param builder function to build the messages value + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder addMessages( + Function builder) { + return plusMessages(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of())); + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @param builder function to build the messages value + * @return Builder + */ + + public SubscriptionSetEventsActionBuilder setMessages( + Function builder) { + return messages(builder.apply(com.commercetools.api.models.subscription.EventSubscriptionBuilder.of())); + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + * @return messages + */ + + @Nullable + public java.util.List getMessages() { + return this.messages; + } + + /** + * builds SubscriptionSetEventsAction with checking for non-null required values + * @return SubscriptionSetEventsAction + */ + public SubscriptionSetEventsAction build() { + return new SubscriptionSetEventsActionImpl(messages); + } + + /** + * builds SubscriptionSetEventsAction without checking for non-null required values + * @return SubscriptionSetEventsAction + */ + public SubscriptionSetEventsAction buildUnchecked() { + return new SubscriptionSetEventsActionImpl(messages); + } + + /** + * factory method for an instance of SubscriptionSetEventsActionBuilder + * @return builder + */ + public static SubscriptionSetEventsActionBuilder of() { + return new SubscriptionSetEventsActionBuilder(); + } + + /** + * create builder for SubscriptionSetEventsAction instance + * @param template instance with prefilled values for the builder + * @return builder + */ + public static SubscriptionSetEventsActionBuilder of(final SubscriptionSetEventsAction template) { + SubscriptionSetEventsActionBuilder builder = new SubscriptionSetEventsActionBuilder(); + builder.messages = template.getMessages(); + return builder; + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionImpl.java new file mode 100644 index 00000000000..4246eb89d78 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionImpl.java @@ -0,0 +1,100 @@ + +package com.commercetools.api.models.subscription; + +import java.time.*; +import java.util.*; + +import com.fasterxml.jackson.annotation.JsonCreator; +import com.fasterxml.jackson.annotation.JsonProperty; +import com.fasterxml.jackson.databind.annotation.*; + +import io.vrap.rmf.base.client.ModelBase; +import io.vrap.rmf.base.client.utils.Generated; + +import org.apache.commons.lang3.builder.EqualsBuilder; +import org.apache.commons.lang3.builder.HashCodeBuilder; +import org.apache.commons.lang3.builder.ToStringBuilder; +import org.apache.commons.lang3.builder.ToStringStyle; + +/** + * SubscriptionSetEventsAction + */ +@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") +public class SubscriptionSetEventsActionImpl implements SubscriptionSetEventsAction, ModelBase { + + private String action; + + private java.util.List messages; + + /** + * create instance with all properties + */ + @JsonCreator + SubscriptionSetEventsActionImpl( + @JsonProperty("messages") final java.util.List messages) { + this.messages = messages; + this.action = SET_EVENTS; + } + + /** + * create empty instance + */ + public SubscriptionSetEventsActionImpl() { + this.action = SET_EVENTS; + } + + /** + * + */ + + public String getAction() { + return this.action; + } + + /** + *

                  Value to set. Can only be unset if either messages or changes is set.

                  + */ + + public java.util.List getMessages() { + return this.messages; + } + + public void setMessages(final com.commercetools.api.models.subscription.EventSubscription... messages) { + this.messages = new ArrayList<>(Arrays.asList(messages)); + } + + public void setMessages( + final java.util.List messages) { + this.messages = messages; + } + + @Override + public boolean equals(Object o) { + if (this == o) + return true; + + if (o == null || getClass() != o.getClass()) + return false; + + SubscriptionSetEventsActionImpl that = (SubscriptionSetEventsActionImpl) o; + + return new EqualsBuilder().append(action, that.action) + .append(messages, that.messages) + .append(action, that.action) + .append(messages, that.messages) + .isEquals(); + } + + @Override + public int hashCode() { + return new HashCodeBuilder(17, 37).append(action).append(messages).toHashCode(); + } + + @Override + public String toString() { + return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("action", action) + .append("messages", messages) + .build(); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java index 45568939f60..7eedff23789 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesAction.java @@ -37,7 +37,7 @@ public interface SubscriptionSetMessagesAction extends SubscriptionUpdateAction String SET_MESSAGES = "setMessages"; /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @return messages */ @Valid @@ -45,7 +45,7 @@ public interface SubscriptionSetMessagesAction extends SubscriptionUpdateAction public List getMessages(); /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param messages values to be set */ @@ -53,7 +53,7 @@ public interface SubscriptionSetMessagesAction extends SubscriptionUpdateAction public void setMessages(final MessageSubscription... messages); /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param messages values to be set */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java index c09d4e95076..c0b7b4ac45d 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionBuilder.java @@ -27,7 +27,7 @@ public class SubscriptionSetMessagesActionBuilder implements Builder messages; /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param messages value to be set * @return Builder */ @@ -39,7 +39,7 @@ public SubscriptionSetMessagesActionBuilder messages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param messages value to be set * @return Builder */ @@ -51,7 +51,7 @@ public SubscriptionSetMessagesActionBuilder messages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param messages value to be set * @return Builder */ @@ -66,7 +66,7 @@ public SubscriptionSetMessagesActionBuilder plusMessages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param builder function to build the messages value * @return Builder */ @@ -82,7 +82,7 @@ public SubscriptionSetMessagesActionBuilder plusMessages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param builder function to build the messages value * @return Builder */ @@ -96,7 +96,7 @@ public SubscriptionSetMessagesActionBuilder withMessages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param builder function to build the messages value * @return Builder */ @@ -107,7 +107,7 @@ public SubscriptionSetMessagesActionBuilder addMessages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @param builder function to build the messages value * @return Builder */ @@ -118,7 +118,7 @@ public SubscriptionSetMessagesActionBuilder setMessages( } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  * @return messages */ diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java index d95795ed7eb..37e76cd5a07 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionSetMessagesActionImpl.java @@ -52,7 +52,7 @@ public String getAction() { } /** - *

                  Value to set. Can only be unset if changes is set.

                  + *

                  Value to set. Can only be unset if either changes or events is set.

                  */ public java.util.List getMessages() { diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateAction.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateAction.java index 71bcab92f51..876fc709ff7 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateAction.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateAction.java @@ -30,6 +30,7 @@ @JsonSubTypes({ @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.SubscriptionChangeDestinationActionImpl.class, name = SubscriptionChangeDestinationAction.CHANGE_DESTINATION), @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.SubscriptionSetChangesActionImpl.class, name = SubscriptionSetChangesAction.SET_CHANGES), + @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.SubscriptionSetEventsActionImpl.class, name = SubscriptionSetEventsAction.SET_EVENTS), @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.SubscriptionSetKeyActionImpl.class, name = SubscriptionSetKeyAction.SET_KEY), @JsonSubTypes.Type(value = com.commercetools.api.models.subscription.SubscriptionSetMessagesActionImpl.class, name = SubscriptionSetMessagesAction.SET_MESSAGES) }) @JsonTypeInfo(use = JsonTypeInfo.Id.NAME, include = JsonTypeInfo.As.EXISTING_PROPERTY, property = "action", defaultImpl = SubscriptionUpdateActionImpl.class, visible = true) @@ -64,6 +65,10 @@ public static SubscriptionUpdateAction deepCopy(@Nullable final SubscriptionUpda return com.commercetools.api.models.subscription.SubscriptionSetChangesAction .deepCopy((com.commercetools.api.models.subscription.SubscriptionSetChangesAction) template); } + if (template instanceof com.commercetools.api.models.subscription.SubscriptionSetEventsAction) { + return com.commercetools.api.models.subscription.SubscriptionSetEventsAction + .deepCopy((com.commercetools.api.models.subscription.SubscriptionSetEventsAction) template); + } if (template instanceof com.commercetools.api.models.subscription.SubscriptionSetKeyAction) { return com.commercetools.api.models.subscription.SubscriptionSetKeyAction .deepCopy((com.commercetools.api.models.subscription.SubscriptionSetKeyAction) template); @@ -92,6 +97,14 @@ public static com.commercetools.api.models.subscription.SubscriptionSetChangesAc return com.commercetools.api.models.subscription.SubscriptionSetChangesActionBuilder.of(); } + /** + * builder for setEvents subtype + * @return builder + */ + public static com.commercetools.api.models.subscription.SubscriptionSetEventsActionBuilder setEventsBuilder() { + return com.commercetools.api.models.subscription.SubscriptionSetEventsActionBuilder.of(); + } + /** * builder for setKey subtype * @return builder diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateActionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateActionBuilder.java index c1f17f225e5..9a94288e276 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateActionBuilder.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/subscription/SubscriptionUpdateActionBuilder.java @@ -19,6 +19,10 @@ public com.commercetools.api.models.subscription.SubscriptionSetChangesActionBui return com.commercetools.api.models.subscription.SubscriptionSetChangesActionBuilder.of(); } + public com.commercetools.api.models.subscription.SubscriptionSetEventsActionBuilder setEventsBuilder() { + return com.commercetools.api.models.subscription.SubscriptionSetEventsActionBuilder.of(); + } + public com.commercetools.api.models.subscription.SubscriptionSetKeyActionBuilder setKeyBuilder() { return com.commercetools.api.models.subscription.SubscriptionSetKeyActionBuilder.of(); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..dfb59e33f5d --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl of() { + return new BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl of(final List path) { + return new BusinessUnitTopLevelUnitSetMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitTypeSetMessageExpansionBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitTypeSetMessageExpansionBuilderDsl.java new file mode 100644 index 00000000000..259489a402a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/expansion/message/BusinessUnitTypeSetMessageExpansionBuilderDsl.java @@ -0,0 +1,46 @@ + +package com.commercetools.api.predicates.expansion.message; + +import static com.commercetools.api.predicates.expansion.ExpansionUtil.appendOne; + +import java.util.Collections; +import java.util.List; + +import com.commercetools.api.predicates.expansion.ExpansionDsl; + +public class BusinessUnitTypeSetMessageExpansionBuilderDsl implements ExpansionDsl { + + private final List path; + + private BusinessUnitTypeSetMessageExpansionBuilderDsl(final List path) { + this.path = path; + } + + public static BusinessUnitTypeSetMessageExpansionBuilderDsl of() { + return new BusinessUnitTypeSetMessageExpansionBuilderDsl(Collections.emptyList()); + } + + public static BusinessUnitTypeSetMessageExpansionBuilderDsl of(final List path) { + return new BusinessUnitTypeSetMessageExpansionBuilderDsl(path); + } + + @Override + public List getPath() { + return path; + } + + public com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl lastModifiedBy() { + return com.commercetools.api.predicates.expansion.common.LastModifiedByExpansionBuilderDsl + .of(appendOne(path, "lastModifiedBy")); + } + + public com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl createdBy() { + return com.commercetools.api.predicates.expansion.common.CreatedByExpansionBuilderDsl + .of(appendOne(path, "createdBy")); + } + + public com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl resource() { + return com.commercetools.api.predicates.expansion.common.ReferenceExpansionBuilderDsl + .of(appendOne(path, "resource")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitSetUnitTypeActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitSetUnitTypeActionQueryBuilderDsl.java new file mode 100644 index 00000000000..4bab8204af4 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitSetUnitTypeActionQueryBuilderDsl.java @@ -0,0 +1,38 @@ + +package com.commercetools.api.predicates.query.business_unit; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitSetUnitTypeActionQueryBuilderDsl { + public BusinessUnitSetUnitTypeActionQueryBuilderDsl() { + } + + public static BusinessUnitSetUnitTypeActionQueryBuilderDsl of() { + return new BusinessUnitSetUnitTypeActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSetUnitTypeActionQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder unitType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("unitType")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitSetUnitTypeActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate parentUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("parentUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitResourceIdentifierQueryBuilderDsl + .of())), + BusinessUnitSetUnitTypeActionQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java index 8618340ccf3..dc8fe219f6c 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/business_unit/BusinessUnitUpdateActionQueryBuilderDsl.java @@ -223,4 +223,12 @@ public CombinationQueryPredicate asSetS com.commercetools.api.predicates.query.business_unit.BusinessUnitSetStoresActionQueryBuilderDsl.of()), BusinessUnitUpdateActionQueryBuilderDsl::of); } + + public CombinationQueryPredicate asSetUnitType( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitSetUnitTypeActionQueryBuilderDsl.of()), + BusinessUnitUpdateActionQueryBuilderDsl::of); + } } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/BaseEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/BaseEventQueryBuilderDsl.java new file mode 100644 index 00000000000..7f36f11a496 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/BaseEventQueryBuilderDsl.java @@ -0,0 +1,49 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class BaseEventQueryBuilderDsl { + public BaseEventQueryBuilderDsl() { + } + + public static BaseEventQueryBuilderDsl of() { + return new BaseEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, BaseEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, BaseEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, BaseEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, BaseEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder data() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("data")), + p -> new CombinationQueryPredicate<>(p, BaseEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, BaseEventQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/EventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/EventQueryBuilderDsl.java new file mode 100644 index 00000000000..e42f4301545 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/EventQueryBuilderDsl.java @@ -0,0 +1,86 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class EventQueryBuilderDsl { + public EventQueryBuilderDsl() { + } + + public static EventQueryBuilderDsl of() { + return new EventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, EventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, EventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, EventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, EventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, EventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asImportContainerCreated( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.event.ImportContainerCreatedEventQueryBuilderDsl.of()), + EventQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asImportContainerDeleted( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.event.ImportContainerDeletedEventQueryBuilderDsl.of()), + EventQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asImportOperationRejected( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.event.ImportOperationRejectedEventQueryBuilderDsl.of()), + EventQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asImportUnresolved( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.event.ImportUnresolvedEventQueryBuilderDsl.of()), + EventQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asImportValidationFailed( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.event.ImportValidationFailedEventQueryBuilderDsl.of()), + EventQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asImportWaitForMasterVariant( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.event.ImportWaitForMasterVariantEventQueryBuilderDsl.of()), + EventQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerCreatedEventDataQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerCreatedEventDataQueryBuilderDsl.java new file mode 100644 index 00000000000..add7ffe82d6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerCreatedEventDataQueryBuilderDsl.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class ImportContainerCreatedEventDataQueryBuilderDsl { + public ImportContainerCreatedEventDataQueryBuilderDsl() { + } + + public static ImportContainerCreatedEventDataQueryBuilderDsl of() { + return new ImportContainerCreatedEventDataQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventDataQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventDataQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventDataQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventDataQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerCreatedEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerCreatedEventQueryBuilderDsl.java new file mode 100644 index 00000000000..25bee14a16f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerCreatedEventQueryBuilderDsl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ImportContainerCreatedEventQueryBuilderDsl { + public ImportContainerCreatedEventQueryBuilderDsl() { + } + + public static ImportContainerCreatedEventQueryBuilderDsl of() { + return new ImportContainerCreatedEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportContainerCreatedEventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate data( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("data")) + .inner(fn.apply( + com.commercetools.api.predicates.query.event.ImportContainerCreatedEventDataQueryBuilderDsl.of())), + ImportContainerCreatedEventQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerDeletedEventDataQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerDeletedEventDataQueryBuilderDsl.java new file mode 100644 index 00000000000..8b28dac858f --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerDeletedEventDataQueryBuilderDsl.java @@ -0,0 +1,25 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class ImportContainerDeletedEventDataQueryBuilderDsl { + public ImportContainerDeletedEventDataQueryBuilderDsl() { + } + + public static ImportContainerDeletedEventDataQueryBuilderDsl of() { + return new ImportContainerDeletedEventDataQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder key() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("key")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventDataQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventDataQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerDeletedEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerDeletedEventQueryBuilderDsl.java new file mode 100644 index 00000000000..0a6671dd24a --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportContainerDeletedEventQueryBuilderDsl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ImportContainerDeletedEventQueryBuilderDsl { + public ImportContainerDeletedEventQueryBuilderDsl() { + } + + public static ImportContainerDeletedEventQueryBuilderDsl of() { + return new ImportContainerDeletedEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportContainerDeletedEventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate data( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("data")) + .inner(fn.apply( + com.commercetools.api.predicates.query.event.ImportContainerDeletedEventDataQueryBuilderDsl.of())), + ImportContainerDeletedEventQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportOperationRejectedEventDataQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportOperationRejectedEventDataQueryBuilderDsl.java new file mode 100644 index 00000000000..669ef840525 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportOperationRejectedEventDataQueryBuilderDsl.java @@ -0,0 +1,19 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class ImportOperationRejectedEventDataQueryBuilderDsl { + public ImportOperationRejectedEventDataQueryBuilderDsl() { + } + + public static ImportOperationRejectedEventDataQueryBuilderDsl of() { + return new ImportOperationRejectedEventDataQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportOperationRejectedEventDataQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportOperationRejectedEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportOperationRejectedEventQueryBuilderDsl.java new file mode 100644 index 00000000000..c6b003ca9e1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportOperationRejectedEventQueryBuilderDsl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ImportOperationRejectedEventQueryBuilderDsl { + public ImportOperationRejectedEventQueryBuilderDsl() { + } + + public static ImportOperationRejectedEventQueryBuilderDsl of() { + return new ImportOperationRejectedEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportOperationRejectedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, ImportOperationRejectedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, ImportOperationRejectedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ImportOperationRejectedEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportOperationRejectedEventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate data( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("data")) + .inner(fn.apply( + com.commercetools.api.predicates.query.event.ImportOperationRejectedEventDataQueryBuilderDsl.of())), + ImportOperationRejectedEventQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportUnresolvedEventDataQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportUnresolvedEventDataQueryBuilderDsl.java new file mode 100644 index 00000000000..d692e26e757 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportUnresolvedEventDataQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class ImportUnresolvedEventDataQueryBuilderDsl { + public ImportUnresolvedEventDataQueryBuilderDsl() { + } + + public static ImportUnresolvedEventDataQueryBuilderDsl of() { + return new ImportUnresolvedEventDataQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventDataQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventDataQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder importContainerKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("importContainerKey")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventDataQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportUnresolvedEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportUnresolvedEventQueryBuilderDsl.java new file mode 100644 index 00000000000..eac20baff0b --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportUnresolvedEventQueryBuilderDsl.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ImportUnresolvedEventQueryBuilderDsl { + public ImportUnresolvedEventQueryBuilderDsl() { + } + + public static ImportUnresolvedEventQueryBuilderDsl of() { + return new ImportUnresolvedEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportUnresolvedEventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate data( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("data")) + .inner(fn.apply( + com.commercetools.api.predicates.query.event.ImportUnresolvedEventDataQueryBuilderDsl.of())), + ImportUnresolvedEventQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportValidationFailedEventDataQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportValidationFailedEventDataQueryBuilderDsl.java new file mode 100644 index 00000000000..54d93ef8d2c --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportValidationFailedEventDataQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class ImportValidationFailedEventDataQueryBuilderDsl { + public ImportValidationFailedEventDataQueryBuilderDsl() { + } + + public static ImportValidationFailedEventDataQueryBuilderDsl of() { + return new ImportValidationFailedEventDataQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventDataQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventDataQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder importContainerKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("importContainerKey")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventDataQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportValidationFailedEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportValidationFailedEventQueryBuilderDsl.java new file mode 100644 index 00000000000..bf058f0f334 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportValidationFailedEventQueryBuilderDsl.java @@ -0,0 +1,54 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ImportValidationFailedEventQueryBuilderDsl { + public ImportValidationFailedEventQueryBuilderDsl() { + } + + public static ImportValidationFailedEventQueryBuilderDsl of() { + return new ImportValidationFailedEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportValidationFailedEventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate data( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("data")) + .inner(fn.apply( + com.commercetools.api.predicates.query.event.ImportValidationFailedEventDataQueryBuilderDsl.of())), + ImportValidationFailedEventQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportWaitForMasterVariantEventDataQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportWaitForMasterVariantEventDataQueryBuilderDsl.java new file mode 100644 index 00000000000..b4eccad35cd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportWaitForMasterVariantEventDataQueryBuilderDsl.java @@ -0,0 +1,31 @@ + +package com.commercetools.api.predicates.query.event; + +import com.commercetools.api.predicates.query.*; + +public class ImportWaitForMasterVariantEventDataQueryBuilderDsl { + public ImportWaitForMasterVariantEventDataQueryBuilderDsl() { + } + + public static ImportWaitForMasterVariantEventDataQueryBuilderDsl of() { + return new ImportWaitForMasterVariantEventDataQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventDataQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventDataQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder importContainerKey() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("importContainerKey")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventDataQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportWaitForMasterVariantEventQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportWaitForMasterVariantEventQueryBuilderDsl.java new file mode 100644 index 00000000000..6cfffe4e180 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/event/ImportWaitForMasterVariantEventQueryBuilderDsl.java @@ -0,0 +1,55 @@ + +package com.commercetools.api.predicates.query.event; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class ImportWaitForMasterVariantEventQueryBuilderDsl { + public ImportWaitForMasterVariantEventQueryBuilderDsl() { + } + + public static ImportWaitForMasterVariantEventQueryBuilderDsl of() { + return new ImportWaitForMasterVariantEventQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, ImportWaitForMasterVariantEventQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate data( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("data")) + .inner(fn.apply( + com.commercetools.api.predicates.query.event.ImportWaitForMasterVariantEventDataQueryBuilderDsl + .of())), + ImportWaitForMasterVariantEventQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..65149e09ff6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,40 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl { + public BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl() { + } + + public static BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl of() { + return new BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate topLevelUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("topLevelUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate oldTopLevelUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldTopLevelUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..66558a36622 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.java @@ -0,0 +1,112 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl { + public BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl() { + } + + public static BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl of() { + return new BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate topLevelUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("topLevelUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate oldTopLevelUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldTopLevelUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl::of); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..12336ede270 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitTypeSetMessagePayloadQueryBuilderDsl { + public BusinessUnitTypeSetMessagePayloadQueryBuilderDsl() { + } + + public static BusinessUnitTypeSetMessagePayloadQueryBuilderDsl of() { + return new BusinessUnitTypeSetMessagePayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessagePayloadQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate parentUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("parentUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTypeSetMessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate oldParentUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldParentUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTypeSetMessagePayloadQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder unitType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("unitType")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessagePayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder oldUnitType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldUnitType")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessagePayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTypeSetMessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTypeSetMessageQueryBuilderDsl.java new file mode 100644 index 00000000000..7f11c783dfd --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/BusinessUnitTypeSetMessageQueryBuilderDsl.java @@ -0,0 +1,124 @@ + +package com.commercetools.api.predicates.query.message; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class BusinessUnitTypeSetMessageQueryBuilderDsl { + public BusinessUnitTypeSetMessageQueryBuilderDsl() { + } + + public static BusinessUnitTypeSetMessageQueryBuilderDsl of() { + return new BusinessUnitTypeSetMessageQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public LongComparisonPredicateBuilder version() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("version")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder lastModifiedAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("lastModifiedAt")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate lastModifiedBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("lastModifiedBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.LastModifiedByQueryBuilderDsl.of())), + BusinessUnitTypeSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate createdBy( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("createdBy")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.CreatedByQueryBuilderDsl.of())), + BusinessUnitTypeSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder sequenceNumber() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("sequenceNumber")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resource( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resource")) + .inner(fn.apply(com.commercetools.api.predicates.query.common.ReferenceQueryBuilderDsl.of())), + BusinessUnitTypeSetMessageQueryBuilderDsl::of); + } + + public LongComparisonPredicateBuilder resourceVersion() { + return new LongComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceVersion")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate resourceUserProvidedIdentifiers( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("resourceUserProvidedIdentifiers")) + .inner(fn.apply( + com.commercetools.api.predicates.query.message.UserProvidedIdentifiersQueryBuilderDsl.of())), + BusinessUnitTypeSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate parentUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("parentUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTypeSetMessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate oldParentUnit( + Function> fn) { + return new CombinationQueryPredicate<>(ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("oldParentUnit")) + .inner(fn.apply( + com.commercetools.api.predicates.query.business_unit.BusinessUnitKeyReferenceQueryBuilderDsl.of())), + BusinessUnitTypeSetMessageQueryBuilderDsl::of); + } + + public StringComparisonPredicateBuilder unitType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("unitType")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder oldUnitType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("oldUnitType")), + p -> new CombinationQueryPredicate<>(p, BusinessUnitTypeSetMessageQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java index 1cb6fbb11a2..84898034c90 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessagePayloadQueryBuilderDsl.java @@ -440,6 +440,22 @@ public CombinationQueryPredicate asBusinessUnitSt MessagePayloadQueryBuilderDsl::of); } + public CombinationQueryPredicate asBusinessUnitTopLevelUnitSet( + Function> fn) { + return new CombinationQueryPredicate<>(fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitTopLevelUnitSetMessagePayloadQueryBuilderDsl + .of()), + MessagePayloadQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asBusinessUnitTypeSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitTypeSetMessagePayloadQueryBuilderDsl.of()), + MessagePayloadQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCartDiscountCreated( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java index ea8aed279ed..4d34f627e63 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/message/MessageQueryBuilderDsl.java @@ -499,6 +499,21 @@ public CombinationQueryPredicate asBusinessUnitStoresSet MessageQueryBuilderDsl::of); } + public CombinationQueryPredicate asBusinessUnitTopLevelUnitSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.message.BusinessUnitTopLevelUnitSetMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asBusinessUnitTypeSet( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.message.BusinessUnitTypeSetMessageQueryBuilderDsl.of()), + MessageQueryBuilderDsl::of); + } + public CombinationQueryPredicate asCartDiscountCreated( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/DeliveryPayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/DeliveryPayloadQueryBuilderDsl.java index 136daaf7a57..8a9c65a7bad 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/DeliveryPayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/DeliveryPayloadQueryBuilderDsl.java @@ -13,15 +13,15 @@ public static DeliveryPayloadQueryBuilderDsl of() { return new DeliveryPayloadQueryBuilderDsl(); } - public StringComparisonPredicateBuilder projectKey() { + public StringComparisonPredicateBuilder notificationType() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), p -> new CombinationQueryPredicate<>(p, DeliveryPayloadQueryBuilderDsl::of)); } - public StringComparisonPredicateBuilder notificationType() { + public StringComparisonPredicateBuilder projectKey() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), p -> new CombinationQueryPredicate<>(p, DeliveryPayloadQueryBuilderDsl::of)); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventDeliveryPayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventDeliveryPayloadQueryBuilderDsl.java new file mode 100644 index 00000000000..05440db30a5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventDeliveryPayloadQueryBuilderDsl.java @@ -0,0 +1,49 @@ + +package com.commercetools.api.predicates.query.subscription; + +import com.commercetools.api.predicates.query.*; + +public class EventDeliveryPayloadQueryBuilderDsl { + public EventDeliveryPayloadQueryBuilderDsl() { + } + + public static EventDeliveryPayloadQueryBuilderDsl of() { + return new EventDeliveryPayloadQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, EventDeliveryPayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder id() { + return new StringComparisonPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("id")), + p -> new CombinationQueryPredicate<>(p, EventDeliveryPayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder type() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("type")), + p -> new CombinationQueryPredicate<>(p, EventDeliveryPayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder resourceType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceType")), + p -> new CombinationQueryPredicate<>(p, EventDeliveryPayloadQueryBuilderDsl::of)); + } + + public StringComparisonPredicateBuilder data() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("data")), + p -> new CombinationQueryPredicate<>(p, EventDeliveryPayloadQueryBuilderDsl::of)); + } + + public DateTimeComparisonPredicateBuilder createdAt() { + return new DateTimeComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("createdAt")), + p -> new CombinationQueryPredicate<>(p, EventDeliveryPayloadQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventSubscriptionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventSubscriptionQueryBuilderDsl.java new file mode 100644 index 00000000000..3e063ba32fa --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/EventSubscriptionQueryBuilderDsl.java @@ -0,0 +1,26 @@ + +package com.commercetools.api.predicates.query.subscription; + +import com.commercetools.api.predicates.query.*; + +public class EventSubscriptionQueryBuilderDsl { + public EventSubscriptionQueryBuilderDsl() { + } + + public static EventSubscriptionQueryBuilderDsl of() { + return new EventSubscriptionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder resourceTypeId() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("resourceTypeId")), + p -> new CombinationQueryPredicate<>(p, EventSubscriptionQueryBuilderDsl::of)); + } + + public StringCollectionPredicateBuilder types() { + return new StringCollectionPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("types")), + p -> new CombinationQueryPredicate<>(p, EventSubscriptionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/MessageDeliveryPayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/MessageDeliveryPayloadQueryBuilderDsl.java index 036a59cbf26..4f130c036d5 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/MessageDeliveryPayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/MessageDeliveryPayloadQueryBuilderDsl.java @@ -13,15 +13,15 @@ public static MessageDeliveryPayloadQueryBuilderDsl of() { return new MessageDeliveryPayloadQueryBuilderDsl(); } - public StringComparisonPredicateBuilder projectKey() { + public StringComparisonPredicateBuilder notificationType() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), p -> new CombinationQueryPredicate<>(p, MessageDeliveryPayloadQueryBuilderDsl::of)); } - public StringComparisonPredicateBuilder notificationType() { + public StringComparisonPredicateBuilder projectKey() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), p -> new CombinationQueryPredicate<>(p, MessageDeliveryPayloadQueryBuilderDsl::of)); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceCreatedDeliveryPayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceCreatedDeliveryPayloadQueryBuilderDsl.java index eb2b58f0414..cab2fc7203f 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceCreatedDeliveryPayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceCreatedDeliveryPayloadQueryBuilderDsl.java @@ -13,15 +13,15 @@ public static ResourceCreatedDeliveryPayloadQueryBuilderDsl of() { return new ResourceCreatedDeliveryPayloadQueryBuilderDsl(); } - public StringComparisonPredicateBuilder projectKey() { + public StringComparisonPredicateBuilder notificationType() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), p -> new CombinationQueryPredicate<>(p, ResourceCreatedDeliveryPayloadQueryBuilderDsl::of)); } - public StringComparisonPredicateBuilder notificationType() { + public StringComparisonPredicateBuilder projectKey() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), p -> new CombinationQueryPredicate<>(p, ResourceCreatedDeliveryPayloadQueryBuilderDsl::of)); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceDeletedDeliveryPayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceDeletedDeliveryPayloadQueryBuilderDsl.java index efba56fa682..ff5431ca1a0 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceDeletedDeliveryPayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceDeletedDeliveryPayloadQueryBuilderDsl.java @@ -13,15 +13,15 @@ public static ResourceDeletedDeliveryPayloadQueryBuilderDsl of() { return new ResourceDeletedDeliveryPayloadQueryBuilderDsl(); } - public StringComparisonPredicateBuilder projectKey() { + public StringComparisonPredicateBuilder notificationType() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), p -> new CombinationQueryPredicate<>(p, ResourceDeletedDeliveryPayloadQueryBuilderDsl::of)); } - public StringComparisonPredicateBuilder notificationType() { + public StringComparisonPredicateBuilder projectKey() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), p -> new CombinationQueryPredicate<>(p, ResourceDeletedDeliveryPayloadQueryBuilderDsl::of)); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.java index c656fe31cce..f07e3009c91 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/ResourceUpdatedDeliveryPayloadQueryBuilderDsl.java @@ -13,15 +13,15 @@ public static ResourceUpdatedDeliveryPayloadQueryBuilderDsl of() { return new ResourceUpdatedDeliveryPayloadQueryBuilderDsl(); } - public StringComparisonPredicateBuilder projectKey() { + public StringComparisonPredicateBuilder notificationType() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), p -> new CombinationQueryPredicate<>(p, ResourceUpdatedDeliveryPayloadQueryBuilderDsl::of)); } - public StringComparisonPredicateBuilder notificationType() { + public StringComparisonPredicateBuilder projectKey() { return new StringComparisonPredicateBuilder<>( - BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("projectKey")), p -> new CombinationQueryPredicate<>(p, ResourceUpdatedDeliveryPayloadQueryBuilderDsl::of)); } diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionDraftQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionDraftQueryBuilderDsl.java index ecd3f4fff59..138ec04da77 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionDraftQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionDraftQueryBuilderDsl.java @@ -56,6 +56,21 @@ public CollectionPredicateBuilder messages() { p -> new CombinationQueryPredicate<>(p, SubscriptionDraftQueryBuilderDsl::of)); } + public CombinationQueryPredicate events( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("events")) + .inner(fn.apply( + com.commercetools.api.predicates.query.subscription.EventSubscriptionQueryBuilderDsl.of())), + SubscriptionDraftQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder events() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("events")), + p -> new CombinationQueryPredicate<>(p, SubscriptionDraftQueryBuilderDsl::of)); + } + public CombinationQueryPredicate format( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionNotificationQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionNotificationQueryBuilderDsl.java new file mode 100644 index 00000000000..26044872282 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionNotificationQueryBuilderDsl.java @@ -0,0 +1,35 @@ + +package com.commercetools.api.predicates.query.subscription; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class SubscriptionNotificationQueryBuilderDsl { + public SubscriptionNotificationQueryBuilderDsl() { + } + + public static SubscriptionNotificationQueryBuilderDsl of() { + return new SubscriptionNotificationQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder notificationType() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("notificationType")), + p -> new CombinationQueryPredicate<>(p, SubscriptionNotificationQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate asDeliveryPayload( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.subscription.DeliveryPayloadQueryBuilderDsl.of()), + SubscriptionNotificationQueryBuilderDsl::of); + } + + public CombinationQueryPredicate asEvent( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply(com.commercetools.api.predicates.query.subscription.EventDeliveryPayloadQueryBuilderDsl.of()), + SubscriptionNotificationQueryBuilderDsl::of); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionQueryBuilderDsl.java index 0488fff6a6b..ee216d092d4 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionQueryBuilderDsl.java @@ -97,6 +97,21 @@ public CollectionPredicateBuilder messages() { p -> new CombinationQueryPredicate<>(p, SubscriptionQueryBuilderDsl::of)); } + public CombinationQueryPredicate events( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("events")) + .inner(fn.apply( + com.commercetools.api.predicates.query.subscription.EventSubscriptionQueryBuilderDsl.of())), + SubscriptionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder events() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("events")), + p -> new CombinationQueryPredicate<>(p, SubscriptionQueryBuilderDsl::of)); + } + public CombinationQueryPredicate format( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionSetEventsActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionSetEventsActionQueryBuilderDsl.java new file mode 100644 index 00000000000..12bdfab3aa7 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionSetEventsActionQueryBuilderDsl.java @@ -0,0 +1,37 @@ + +package com.commercetools.api.predicates.query.subscription; + +import java.util.function.Function; + +import com.commercetools.api.predicates.query.*; + +public class SubscriptionSetEventsActionQueryBuilderDsl { + public SubscriptionSetEventsActionQueryBuilderDsl() { + } + + public static SubscriptionSetEventsActionQueryBuilderDsl of() { + return new SubscriptionSetEventsActionQueryBuilderDsl(); + } + + public StringComparisonPredicateBuilder action() { + return new StringComparisonPredicateBuilder<>( + BinaryQueryPredicate.of().left(new ConstantQueryPredicate("action")), + p -> new CombinationQueryPredicate<>(p, SubscriptionSetEventsActionQueryBuilderDsl::of)); + } + + public CombinationQueryPredicate messages( + Function> fn) { + return new CombinationQueryPredicate<>( + ContainerQueryPredicate.of() + .parent(ConstantQueryPredicate.of().constant("messages")) + .inner(fn.apply( + com.commercetools.api.predicates.query.subscription.EventSubscriptionQueryBuilderDsl.of())), + SubscriptionSetEventsActionQueryBuilderDsl::of); + } + + public CollectionPredicateBuilder messages() { + return new CollectionPredicateBuilder<>(BinaryQueryPredicate.of().left(new ConstantQueryPredicate("messages")), + p -> new CombinationQueryPredicate<>(p, SubscriptionSetEventsActionQueryBuilderDsl::of)); + } + +} diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionUpdateActionQueryBuilderDsl.java b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionUpdateActionQueryBuilderDsl.java index 3345dd4fabc..a3785aeb394 100644 --- a/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionUpdateActionQueryBuilderDsl.java +++ b/commercetools/commercetools-sdk-java-api/src/main/java-predicates-generated/com/commercetools/api/predicates/query/subscription/SubscriptionUpdateActionQueryBuilderDsl.java @@ -35,6 +35,14 @@ public CombinationQueryPredicate asSetC SubscriptionUpdateActionQueryBuilderDsl::of); } + public CombinationQueryPredicate asSetEvents( + Function> fn) { + return new CombinationQueryPredicate<>( + fn.apply( + com.commercetools.api.predicates.query.subscription.SubscriptionSetEventsActionQueryBuilderDsl.of()), + SubscriptionUpdateActionQueryBuilderDsl::of); + } + public CombinationQueryPredicate asSetKey( Function> fn) { return new CombinationQueryPredicate<>( diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionTest.java new file mode 100644 index 00000000000..cf7da8d9d53 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/business_unit/BusinessUnitSetUnitTypeActionTest.java @@ -0,0 +1,50 @@ + +package com.commercetools.api.models.business_unit; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class BusinessUnitSetUnitTypeActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitSetUnitTypeActionBuilder builder) { + BusinessUnitSetUnitTypeAction businessUnitSetUnitTypeAction = builder.buildUnchecked(); + Assertions.assertThat(businessUnitSetUnitTypeAction).isInstanceOf(BusinessUnitSetUnitTypeAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { BusinessUnitSetUnitTypeAction.builder() + .unitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")) }, + new Object[] { BusinessUnitSetUnitTypeAction.builder() + .parentUnit( + new com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierImpl()) } }; + } + + @Test + public void unitType() { + BusinessUnitSetUnitTypeAction value = BusinessUnitSetUnitTypeAction.of(); + value.setUnitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + Assertions.assertThat(value.getUnitType()) + .isEqualTo(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + } + + @Test + public void parentUnit() { + BusinessUnitSetUnitTypeAction value = BusinessUnitSetUnitTypeAction.of(); + value.setParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierImpl()); + Assertions.assertThat(value.getParentUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitResourceIdentifierImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/BaseEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/BaseEventTest.java new file mode 100644 index 00000000000..36a9e0c3624 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/BaseEventTest.java @@ -0,0 +1,85 @@ + +package com.commercetools.api.models.event; + +import java.time.ZonedDateTime; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class BaseEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BaseEventBuilder builder) { + BaseEvent baseEvent = builder.buildUnchecked(); + Assertions.assertThat(baseEvent).isInstanceOf(BaseEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { BaseEvent.builder().id("id") }, + new Object[] { BaseEvent.builder().notificationType("notificationType") }, + new Object[] { BaseEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { BaseEvent.builder() + .type(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated")) }, + new Object[] { BaseEvent.builder().data("data") }, + new Object[] { BaseEvent.builder().createdAt(ZonedDateTime.parse("2023-06-01T12:00Z")) } }; + } + + @Test + public void id() { + BaseEvent value = BaseEvent.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void notificationType() { + BaseEvent value = BaseEvent.of(); + value.setNotificationType("notificationType"); + Assertions.assertThat(value.getNotificationType()).isEqualTo("notificationType"); + } + + @Test + public void resourceType() { + BaseEvent value = BaseEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void type() { + BaseEvent value = BaseEvent.of(); + value.setType(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated")); + Assertions.assertThat(value.getType()) + .isEqualTo(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated")); + } + + @Test + public void data() { + BaseEvent value = BaseEvent.of(); + value.setData("data"); + Assertions.assertThat(value.getData()).isEqualTo("data"); + } + + @Test + public void createdAt() { + BaseEvent value = BaseEvent.of(); + value.setCreatedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getCreatedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataTest.java new file mode 100644 index 00000000000..2e8513e0a78 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventDataTest.java @@ -0,0 +1,64 @@ + +package com.commercetools.api.models.event; + +import java.time.ZonedDateTime; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportContainerCreatedEventDataTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportContainerCreatedEventDataBuilder builder) { + ImportContainerCreatedEventData importContainerCreatedEventData = builder.buildUnchecked(); + Assertions.assertThat(importContainerCreatedEventData).isInstanceOf(ImportContainerCreatedEventData.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ImportContainerCreatedEventData.builder().key("key") }, + new Object[] { ImportContainerCreatedEventData.builder().version(2) }, + new Object[] { + ImportContainerCreatedEventData.builder().createdAt(ZonedDateTime.parse("2023-06-01T12:00Z")) }, + new Object[] { ImportContainerCreatedEventData.builder() + .lastModifiedAt(ZonedDateTime.parse("2023-06-01T12:00Z")) } }; + } + + @Test + public void key() { + ImportContainerCreatedEventData value = ImportContainerCreatedEventData.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void version() { + ImportContainerCreatedEventData value = ImportContainerCreatedEventData.of(); + value.setVersion(2); + Assertions.assertThat(value.getVersion()).isEqualTo(2); + } + + @Test + public void createdAt() { + ImportContainerCreatedEventData value = ImportContainerCreatedEventData.of(); + value.setCreatedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getCreatedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } + + @Test + public void lastModifiedAt() { + ImportContainerCreatedEventData value = ImportContainerCreatedEventData.of(); + value.setLastModifiedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getLastModifiedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventTest.java new file mode 100644 index 00000000000..0ee2e9bb651 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerCreatedEventTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportContainerCreatedEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportContainerCreatedEventBuilder builder) { + ImportContainerCreatedEvent importContainerCreatedEvent = builder.buildUnchecked(); + Assertions.assertThat(importContainerCreatedEvent).isInstanceOf(ImportContainerCreatedEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ImportContainerCreatedEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { ImportContainerCreatedEvent.builder() + .data(new com.commercetools.api.models.event.ImportContainerCreatedEventDataImpl()) } }; + } + + @Test + public void resourceType() { + ImportContainerCreatedEvent value = ImportContainerCreatedEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void data() { + ImportContainerCreatedEvent value = ImportContainerCreatedEvent.of(); + value.setData(new com.commercetools.api.models.event.ImportContainerCreatedEventDataImpl()); + Assertions.assertThat(value.getData()) + .isEqualTo(new com.commercetools.api.models.event.ImportContainerCreatedEventDataImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataTest.java new file mode 100644 index 00000000000..47f5f33aea1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventDataTest.java @@ -0,0 +1,44 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportContainerDeletedEventDataTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportContainerDeletedEventDataBuilder builder) { + ImportContainerDeletedEventData importContainerDeletedEventData = builder.buildUnchecked(); + Assertions.assertThat(importContainerDeletedEventData).isInstanceOf(ImportContainerDeletedEventData.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ImportContainerDeletedEventData.builder().key("key") }, + new Object[] { ImportContainerDeletedEventData.builder().version(2) } }; + } + + @Test + public void key() { + ImportContainerDeletedEventData value = ImportContainerDeletedEventData.of(); + value.setKey("key"); + Assertions.assertThat(value.getKey()).isEqualTo("key"); + } + + @Test + public void version() { + ImportContainerDeletedEventData value = ImportContainerDeletedEventData.of(); + value.setVersion(2); + Assertions.assertThat(value.getVersion()).isEqualTo(2); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventTest.java new file mode 100644 index 00000000000..01624df9fc3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportContainerDeletedEventTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportContainerDeletedEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportContainerDeletedEventBuilder builder) { + ImportContainerDeletedEvent importContainerDeletedEvent = builder.buildUnchecked(); + Assertions.assertThat(importContainerDeletedEvent).isInstanceOf(ImportContainerDeletedEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ImportContainerDeletedEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { ImportContainerDeletedEvent.builder() + .data(new com.commercetools.api.models.event.ImportContainerDeletedEventDataImpl()) } }; + } + + @Test + public void resourceType() { + ImportContainerDeletedEvent value = ImportContainerDeletedEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void data() { + ImportContainerDeletedEvent value = ImportContainerDeletedEvent.of(); + value.setData(new com.commercetools.api.models.event.ImportContainerDeletedEventDataImpl()); + Assertions.assertThat(value.getData()) + .isEqualTo(new com.commercetools.api.models.event.ImportContainerDeletedEventDataImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataTest.java new file mode 100644 index 00000000000..cf0931851f6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventDataTest.java @@ -0,0 +1,36 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportOperationRejectedEventDataTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportOperationRejectedEventDataBuilder builder) { + ImportOperationRejectedEventData importOperationRejectedEventData = builder.buildUnchecked(); + Assertions.assertThat(importOperationRejectedEventData).isInstanceOf(ImportOperationRejectedEventData.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ImportOperationRejectedEventData.builder().id("id") } }; + } + + @Test + public void id() { + ImportOperationRejectedEventData value = ImportOperationRejectedEventData.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventTest.java new file mode 100644 index 00000000000..e74c6fed5c5 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportOperationRejectedEventTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportOperationRejectedEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportOperationRejectedEventBuilder builder) { + ImportOperationRejectedEvent importOperationRejectedEvent = builder.buildUnchecked(); + Assertions.assertThat(importOperationRejectedEvent).isInstanceOf(ImportOperationRejectedEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ImportOperationRejectedEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { ImportOperationRejectedEvent.builder() + .data(new com.commercetools.api.models.event.ImportOperationRejectedEventDataImpl()) } }; + } + + @Test + public void resourceType() { + ImportOperationRejectedEvent value = ImportOperationRejectedEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void data() { + ImportOperationRejectedEvent value = ImportOperationRejectedEvent.of(); + value.setData(new com.commercetools.api.models.event.ImportOperationRejectedEventDataImpl()); + Assertions.assertThat(value.getData()) + .isEqualTo(new com.commercetools.api.models.event.ImportOperationRejectedEventDataImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataTest.java new file mode 100644 index 00000000000..2ab8e5efc69 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventDataTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportUnresolvedEventDataTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportUnresolvedEventDataBuilder builder) { + ImportUnresolvedEventData importUnresolvedEventData = builder.buildUnchecked(); + Assertions.assertThat(importUnresolvedEventData).isInstanceOf(ImportUnresolvedEventData.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ImportUnresolvedEventData.builder().id("id") }, + new Object[] { ImportUnresolvedEventData.builder().version(2) }, + new Object[] { ImportUnresolvedEventData.builder().importContainerKey("importContainerKey") } }; + } + + @Test + public void id() { + ImportUnresolvedEventData value = ImportUnresolvedEventData.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void version() { + ImportUnresolvedEventData value = ImportUnresolvedEventData.of(); + value.setVersion(2); + Assertions.assertThat(value.getVersion()).isEqualTo(2); + } + + @Test + public void importContainerKey() { + ImportUnresolvedEventData value = ImportUnresolvedEventData.of(); + value.setImportContainerKey("importContainerKey"); + Assertions.assertThat(value.getImportContainerKey()).isEqualTo("importContainerKey"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventTest.java new file mode 100644 index 00000000000..0c6a1699135 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportUnresolvedEventTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportUnresolvedEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportUnresolvedEventBuilder builder) { + ImportUnresolvedEvent importUnresolvedEvent = builder.buildUnchecked(); + Assertions.assertThat(importUnresolvedEvent).isInstanceOf(ImportUnresolvedEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ImportUnresolvedEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { ImportUnresolvedEvent.builder() + .data(new com.commercetools.api.models.event.ImportUnresolvedEventDataImpl()) } }; + } + + @Test + public void resourceType() { + ImportUnresolvedEvent value = ImportUnresolvedEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void data() { + ImportUnresolvedEvent value = ImportUnresolvedEvent.of(); + value.setData(new com.commercetools.api.models.event.ImportUnresolvedEventDataImpl()); + Assertions.assertThat(value.getData()) + .isEqualTo(new com.commercetools.api.models.event.ImportUnresolvedEventDataImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataTest.java new file mode 100644 index 00000000000..7f628195f70 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventDataTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportValidationFailedEventDataTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportValidationFailedEventDataBuilder builder) { + ImportValidationFailedEventData importValidationFailedEventData = builder.buildUnchecked(); + Assertions.assertThat(importValidationFailedEventData).isInstanceOf(ImportValidationFailedEventData.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ImportValidationFailedEventData.builder().id("id") }, + new Object[] { ImportValidationFailedEventData.builder().version(2) }, + new Object[] { ImportValidationFailedEventData.builder().importContainerKey("importContainerKey") } }; + } + + @Test + public void id() { + ImportValidationFailedEventData value = ImportValidationFailedEventData.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void version() { + ImportValidationFailedEventData value = ImportValidationFailedEventData.of(); + value.setVersion(2); + Assertions.assertThat(value.getVersion()).isEqualTo(2); + } + + @Test + public void importContainerKey() { + ImportValidationFailedEventData value = ImportValidationFailedEventData.of(); + value.setImportContainerKey("importContainerKey"); + Assertions.assertThat(value.getImportContainerKey()).isEqualTo("importContainerKey"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventTest.java new file mode 100644 index 00000000000..973929a7650 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportValidationFailedEventTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportValidationFailedEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportValidationFailedEventBuilder builder) { + ImportValidationFailedEvent importValidationFailedEvent = builder.buildUnchecked(); + Assertions.assertThat(importValidationFailedEvent).isInstanceOf(ImportValidationFailedEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ImportValidationFailedEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { ImportValidationFailedEvent.builder() + .data(new com.commercetools.api.models.event.ImportValidationFailedEventDataImpl()) } }; + } + + @Test + public void resourceType() { + ImportValidationFailedEvent value = ImportValidationFailedEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void data() { + ImportValidationFailedEvent value = ImportValidationFailedEvent.of(); + value.setData(new com.commercetools.api.models.event.ImportValidationFailedEventDataImpl()); + Assertions.assertThat(value.getData()) + .isEqualTo(new com.commercetools.api.models.event.ImportValidationFailedEventDataImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataTest.java new file mode 100644 index 00000000000..3c6dde331c1 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventDataTest.java @@ -0,0 +1,53 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportWaitForMasterVariantEventDataTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportWaitForMasterVariantEventDataBuilder builder) { + ImportWaitForMasterVariantEventData importWaitForMasterVariantEventData = builder.buildUnchecked(); + Assertions.assertThat(importWaitForMasterVariantEventData) + .isInstanceOf(ImportWaitForMasterVariantEventData.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { ImportWaitForMasterVariantEventData.builder().id("id") }, + new Object[] { ImportWaitForMasterVariantEventData.builder().version(2) }, new Object[] { + ImportWaitForMasterVariantEventData.builder().importContainerKey("importContainerKey") } }; + } + + @Test + public void id() { + ImportWaitForMasterVariantEventData value = ImportWaitForMasterVariantEventData.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void version() { + ImportWaitForMasterVariantEventData value = ImportWaitForMasterVariantEventData.of(); + value.setVersion(2); + Assertions.assertThat(value.getVersion()).isEqualTo(2); + } + + @Test + public void importContainerKey() { + ImportWaitForMasterVariantEventData value = ImportWaitForMasterVariantEventData.of(); + value.setImportContainerKey("importContainerKey"); + Assertions.assertThat(value.getImportContainerKey()).isEqualTo("importContainerKey"); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventTest.java new file mode 100644 index 00000000000..e9620446cb6 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/event/ImportWaitForMasterVariantEventTest.java @@ -0,0 +1,52 @@ + +package com.commercetools.api.models.event; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class ImportWaitForMasterVariantEventTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(ImportWaitForMasterVariantEventBuilder builder) { + ImportWaitForMasterVariantEvent importWaitForMasterVariantEvent = builder.buildUnchecked(); + Assertions.assertThat(importWaitForMasterVariantEvent).isInstanceOf(ImportWaitForMasterVariantEvent.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { ImportWaitForMasterVariantEvent.builder() + .resourceType(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { ImportWaitForMasterVariantEvent.builder() + .data(new com.commercetools.api.models.event.ImportWaitForMasterVariantEventDataImpl()) } }; + } + + @Test + public void resourceType() { + ImportWaitForMasterVariantEvent value = ImportWaitForMasterVariantEvent.of(); + value.setResourceType( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceType()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void data() { + ImportWaitForMasterVariantEvent value = ImportWaitForMasterVariantEvent.of(); + value.setData(new com.commercetools.api.models.event.ImportWaitForMasterVariantEventDataImpl()); + Assertions.assertThat(value.getData()) + .isEqualTo(new com.commercetools.api.models.event.ImportWaitForMasterVariantEventDataImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadTest.java new file mode 100644 index 00000000000..880f99ac177 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessagePayloadTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class BusinessUnitTopLevelUnitSetMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitTopLevelUnitSetMessagePayloadBuilder builder) { + BusinessUnitTopLevelUnitSetMessagePayload businessUnitTopLevelUnitSetMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(businessUnitTopLevelUnitSetMessagePayload) + .isInstanceOf(BusinessUnitTopLevelUnitSetMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { BusinessUnitTopLevelUnitSetMessagePayload.builder() + .topLevelUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) }, + new Object[] { BusinessUnitTopLevelUnitSetMessagePayload.builder() + .oldTopLevelUnit( + new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) } }; + } + + @Test + public void topLevelUnit() { + BusinessUnitTopLevelUnitSetMessagePayload value = BusinessUnitTopLevelUnitSetMessagePayload.of(); + value.setTopLevelUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getTopLevelUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } + + @Test + public void oldTopLevelUnit() { + BusinessUnitTopLevelUnitSetMessagePayload value = BusinessUnitTopLevelUnitSetMessagePayload.of(); + value.setOldTopLevelUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getOldTopLevelUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageTest.java new file mode 100644 index 00000000000..3ec73543665 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTopLevelUnitSetMessageTest.java @@ -0,0 +1,51 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class BusinessUnitTopLevelUnitSetMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitTopLevelUnitSetMessageBuilder builder) { + BusinessUnitTopLevelUnitSetMessage businessUnitTopLevelUnitSetMessage = builder.buildUnchecked(); + Assertions.assertThat(businessUnitTopLevelUnitSetMessage) + .isInstanceOf(BusinessUnitTopLevelUnitSetMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { BusinessUnitTopLevelUnitSetMessage.builder() + .topLevelUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) }, + new Object[] { BusinessUnitTopLevelUnitSetMessage.builder() + .oldTopLevelUnit( + new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) } }; + } + + @Test + public void topLevelUnit() { + BusinessUnitTopLevelUnitSetMessage value = BusinessUnitTopLevelUnitSetMessage.of(); + value.setTopLevelUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getTopLevelUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } + + @Test + public void oldTopLevelUnit() { + BusinessUnitTopLevelUnitSetMessage value = BusinessUnitTopLevelUnitSetMessage.of(); + value.setOldTopLevelUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getOldTopLevelUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadTest.java new file mode 100644 index 00000000000..cd4be7d7bcc --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessagePayloadTest.java @@ -0,0 +1,70 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class BusinessUnitTypeSetMessagePayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitTypeSetMessagePayloadBuilder builder) { + BusinessUnitTypeSetMessagePayload businessUnitTypeSetMessagePayload = builder.buildUnchecked(); + Assertions.assertThat(businessUnitTypeSetMessagePayload).isInstanceOf(BusinessUnitTypeSetMessagePayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { BusinessUnitTypeSetMessagePayload.builder() + .parentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) }, + new Object[] { BusinessUnitTypeSetMessagePayload.builder() + .oldParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) }, + new Object[] { BusinessUnitTypeSetMessagePayload.builder() + .unitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")) }, + new Object[] { BusinessUnitTypeSetMessagePayload.builder() + .oldUnitType( + com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")) } }; + } + + @Test + public void parentUnit() { + BusinessUnitTypeSetMessagePayload value = BusinessUnitTypeSetMessagePayload.of(); + value.setParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getParentUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } + + @Test + public void oldParentUnit() { + BusinessUnitTypeSetMessagePayload value = BusinessUnitTypeSetMessagePayload.of(); + value.setOldParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getOldParentUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } + + @Test + public void unitType() { + BusinessUnitTypeSetMessagePayload value = BusinessUnitTypeSetMessagePayload.of(); + value.setUnitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + Assertions.assertThat(value.getUnitType()) + .isEqualTo(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + } + + @Test + public void oldUnitType() { + BusinessUnitTypeSetMessagePayload value = BusinessUnitTypeSetMessagePayload.of(); + value.setOldUnitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + Assertions.assertThat(value.getOldUnitType()) + .isEqualTo(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageTest.java new file mode 100644 index 00000000000..85958996c64 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/message/BusinessUnitTypeSetMessageTest.java @@ -0,0 +1,70 @@ + +package com.commercetools.api.models.message; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class BusinessUnitTypeSetMessageTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(BusinessUnitTypeSetMessageBuilder builder) { + BusinessUnitTypeSetMessage businessUnitTypeSetMessage = builder.buildUnchecked(); + Assertions.assertThat(businessUnitTypeSetMessage).isInstanceOf(BusinessUnitTypeSetMessage.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { BusinessUnitTypeSetMessage.builder() + .parentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) }, + new Object[] { BusinessUnitTypeSetMessage.builder() + .oldParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()) }, + new Object[] { BusinessUnitTypeSetMessage.builder() + .unitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")) }, + new Object[] { BusinessUnitTypeSetMessage.builder() + .oldUnitType( + com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")) } }; + } + + @Test + public void parentUnit() { + BusinessUnitTypeSetMessage value = BusinessUnitTypeSetMessage.of(); + value.setParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getParentUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } + + @Test + public void oldParentUnit() { + BusinessUnitTypeSetMessage value = BusinessUnitTypeSetMessage.of(); + value.setOldParentUnit(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + Assertions.assertThat(value.getOldParentUnit()) + .isEqualTo(new com.commercetools.api.models.business_unit.BusinessUnitKeyReferenceImpl()); + } + + @Test + public void unitType() { + BusinessUnitTypeSetMessage value = BusinessUnitTypeSetMessage.of(); + value.setUnitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + Assertions.assertThat(value.getUnitType()) + .isEqualTo(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + } + + @Test + public void oldUnitType() { + BusinessUnitTypeSetMessage value = BusinessUnitTypeSetMessage.of(); + value.setOldUnitType(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + Assertions.assertThat(value.getOldUnitType()) + .isEqualTo(com.commercetools.api.models.business_unit.BusinessUnitType.findEnum("Company")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadTest.java new file mode 100644 index 00000000000..82c730442b3 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventDeliveryPayloadTest.java @@ -0,0 +1,72 @@ + +package com.commercetools.api.models.subscription; + +import java.time.ZonedDateTime; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class EventDeliveryPayloadTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(EventDeliveryPayloadBuilder builder) { + EventDeliveryPayload eventDeliveryPayload = builder.buildUnchecked(); + Assertions.assertThat(eventDeliveryPayload).isInstanceOf(EventDeliveryPayload.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { EventDeliveryPayload.builder().id("id") }, + new Object[] { EventDeliveryPayload.builder() + .type(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated")) }, + new Object[] { EventDeliveryPayload.builder().resourceType("resourceType") }, + new Object[] { EventDeliveryPayload.builder().data("data") }, + new Object[] { EventDeliveryPayload.builder().createdAt(ZonedDateTime.parse("2023-06-01T12:00Z")) } }; + } + + @Test + public void id() { + EventDeliveryPayload value = EventDeliveryPayload.of(); + value.setId("id"); + Assertions.assertThat(value.getId()).isEqualTo("id"); + } + + @Test + public void type() { + EventDeliveryPayload value = EventDeliveryPayload.of(); + value.setType(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated")); + Assertions.assertThat(value.getType()) + .isEqualTo(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated")); + } + + @Test + public void resourceType() { + EventDeliveryPayload value = EventDeliveryPayload.of(); + value.setResourceType("resourceType"); + Assertions.assertThat(value.getResourceType()).isEqualTo("resourceType"); + } + + @Test + public void data() { + EventDeliveryPayload value = EventDeliveryPayload.of(); + value.setData("data"); + Assertions.assertThat(value.getData()).isEqualTo("data"); + } + + @Test + public void createdAt() { + EventDeliveryPayload value = EventDeliveryPayload.of(); + value.setCreatedAt(ZonedDateTime.parse("2023-06-01T12:00Z")); + Assertions.assertThat(value.getCreatedAt()).isEqualTo(ZonedDateTime.parse("2023-06-01T12:00Z")); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventSubscriptionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventSubscriptionTest.java new file mode 100644 index 00000000000..fa2c6e0d578 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/EventSubscriptionTest.java @@ -0,0 +1,57 @@ + +package com.commercetools.api.models.subscription; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class EventSubscriptionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(EventSubscriptionBuilder builder) { + EventSubscription eventSubscription = builder.buildUnchecked(); + Assertions.assertThat(eventSubscription).isInstanceOf(EventSubscription.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { + new Object[] { EventSubscription.builder() + .resourceTypeId(com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId + .findEnum("import-api")) }, + new Object[] { EventSubscription.builder() + .types(Collections.singletonList(com.commercetools.api.models.subscription.EventType + .findEnum("ImportContainerCreated"))) } }; + } + + @Test + public void resourceTypeId() { + EventSubscription value = EventSubscription.of(); + value.setResourceTypeId( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + Assertions.assertThat(value.getResourceTypeId()) + .isEqualTo( + com.commercetools.api.models.subscription.EventSubscriptionResourceTypeId.findEnum("import-api")); + } + + @Test + public void types() { + EventSubscription value = EventSubscription.of(); + value.setTypes(Collections + .singletonList(com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated"))); + Assertions.assertThat(value.getTypes()) + .isEqualTo(Collections.singletonList( + com.commercetools.api.models.subscription.EventType.findEnum("ImportContainerCreated"))); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftTest.java index cb98df51b86..8b440862bdf 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionDraftTest.java @@ -36,6 +36,9 @@ public static Object[][] objectBuilder() { new Object[] { SubscriptionDraft.builder() .messages(Collections.singletonList( new com.commercetools.api.models.subscription.MessageSubscriptionImpl())) }, + new Object[] { SubscriptionDraft.builder() + .events(Collections.singletonList( + new com.commercetools.api.models.subscription.EventSubscriptionImpl())) }, new Object[] { SubscriptionDraft.builder() .format(new com.commercetools.api.models.subscription.DeliveryFormatImpl()) } }; } @@ -75,6 +78,16 @@ public void messages() { Collections.singletonList(new com.commercetools.api.models.subscription.MessageSubscriptionImpl())); } + @Test + public void events() { + SubscriptionDraft value = SubscriptionDraft.of(); + value.setEvents( + Collections.singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())); + Assertions.assertThat(value.getEvents()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())); + } + @Test public void format() { SubscriptionDraft value = SubscriptionDraft.of(); diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionTest.java new file mode 100644 index 00000000000..6949e8c05b9 --- /dev/null +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionSetEventsActionTest.java @@ -0,0 +1,43 @@ + +package com.commercetools.api.models.subscription; + +import java.util.Collections; + +import com.tngtech.junit.dataprovider.DataProvider; +import com.tngtech.junit.dataprovider.DataProviderExtension; +import com.tngtech.junit.dataprovider.UseDataProvider; +import com.tngtech.junit.dataprovider.UseDataProviderExtension; + +import org.assertj.core.api.Assertions; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.TestTemplate; +import org.junit.jupiter.api.extension.ExtendWith; + +@ExtendWith(UseDataProviderExtension.class) +@ExtendWith(DataProviderExtension.class) +public class SubscriptionSetEventsActionTest { + + @TestTemplate + @UseDataProvider("objectBuilder") + public void buildUnchecked(SubscriptionSetEventsActionBuilder builder) { + SubscriptionSetEventsAction subscriptionSetEventsAction = builder.buildUnchecked(); + Assertions.assertThat(subscriptionSetEventsAction).isInstanceOf(SubscriptionSetEventsAction.class); + } + + @DataProvider + public static Object[][] objectBuilder() { + return new Object[][] { new Object[] { SubscriptionSetEventsAction.builder() + .messages(Collections + .singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())) } }; + } + + @Test + public void messages() { + SubscriptionSetEventsAction value = SubscriptionSetEventsAction.of(); + value.setMessages( + Collections.singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())); + Assertions.assertThat(value.getMessages()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())); + } +} diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionTest.java index 5b81546ae5c..e89f9031f78 100644 --- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionTest.java +++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/subscription/SubscriptionTest.java @@ -44,6 +44,9 @@ public static Object[][] objectBuilder() { new Object[] { Subscription.builder() .messages(Collections.singletonList( new com.commercetools.api.models.subscription.MessageSubscriptionImpl())) }, + new Object[] { Subscription.builder() + .events(Collections.singletonList( + new com.commercetools.api.models.subscription.EventSubscriptionImpl())) }, new Object[] { Subscription.builder() .format(new com.commercetools.api.models.subscription.DeliveryFormatImpl()) }, new Object[] { Subscription.builder() @@ -129,6 +132,16 @@ public void messages() { Collections.singletonList(new com.commercetools.api.models.subscription.MessageSubscriptionImpl())); } + @Test + public void events() { + Subscription value = Subscription.of(); + value.setEvents( + Collections.singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())); + Assertions.assertThat(value.getEvents()) + .isEqualTo( + Collections.singletonList(new com.commercetools.api.models.subscription.EventSubscriptionImpl())); + } + @Test public void format() { Subscription value = Subscription.of(); diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyDelete.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyDelete.java index 9962bb7923f..0e096e38f0a 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyDelete.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyDelete.java @@ -16,7 +16,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Deletes the import container given by the key.

                  + *

                  Deletes the Import Container specified by the importContainerKey.

                  + *

                  Generates the ImportContainerDeleted Event.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyGet.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyGet.java index 19c05b79917..c2a1fe26fcb 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyGet.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyGet.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Retrieves the import container given by the key.

                  + *

                  Retrieves the Import Container given by the key.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyImportSummariesGet.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyImportSummariesGet.java index 5c5973778b8..78709fb3e5d 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyImportSummariesGet.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyImportSummariesGet.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Retrieves an ImportSummary for the given import container. An ImportSummary is calculated on demand.

                  + *

                  Retrieves an ImportSummary for the given Import Container. An ImportSummary is calculated on demand.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPut.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPut.java index a8880ee7783..b39ff850021 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPut.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPut.java @@ -16,7 +16,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Updates the import container given by the key.

                  + *

                  Updates the Import Container given by the key.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPutString.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPutString.java index ccc205fbd08..5e3bfb37213 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPutString.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersByImportContainerKeyPutString.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Updates the import container given by the key.

                  + *

                  Updates the Import Container given by the key.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersGet.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersGet.java index e80a74ee31f..a7cff1f7da2 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersGet.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersGet.java @@ -20,7 +20,7 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Retrieves all import containers of a given project key.

                  + *

                  Retrieves all Import Containers of a given project key.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPost.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPost.java index 36a1c130264..70ba38f3933 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPost.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPost.java @@ -16,7 +16,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Creates a new import container.

                  + *

                  Creates a new Import Container.

                  + *

                  Generates the ImportContainerCreated Event.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPostString.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPostString.java index 3c2eb94c8ba..02b9a3f509f 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPostString.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/client/ByProjectKeyImportContainersPostString.java @@ -17,7 +17,8 @@ import org.apache.commons.lang3.builder.HashCodeBuilder; /** - *

                  Creates a new import container.

                  + *

                  Creates a new Import Container.

                  + *

                  Generates the ImportContainerCreated Event.

                  * *
                  *
                  diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/ProcessingState.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/ProcessingState.java index cb18b3dd27c..8e09973d79d 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/ProcessingState.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/common/ProcessingState.java @@ -20,19 +20,19 @@ public interface ProcessingState extends JsonEnum {

                  The initial state assigned if the request payload (JSON structure and fields) meets Import API specifications. The resource import is in progress.

                  */ ProcessingState PROCESSING = ProcessingStateEnum.PROCESSING; /** -

                  Either the request payload is missing the data as per Import API specifications, or even though the references were resolved, the data does not meet validation constraints.

                  */ +

                  Either the request payload is missing the data as per Import API specifications, or even though the references were resolved, the data does not meet validation constraints. Generates the ImportValidationFailed Event.

                  */ ProcessingState VALIDATION_FAILED = ProcessingStateEnum.VALIDATION_FAILED; /** -

                  The import request contains KeyReferences to resources that do not exist in your Composable Commerce Project.

                  */ +

                  The import request contains KeyReferences to resources that do not exist in your Composable Commerce Project. Generates the ImportUnresolved Event.

                  */ ProcessingState UNRESOLVED = ProcessingStateEnum.UNRESOLVED; /** -

                  Products must have at least one Product Variant, also known as the Master Variant. If you import a Product without a Master Variant, the import request will have this status until another import request includes Master Variant data for the Product.

                  */ +

                  Products must have at least one Product Variant, also known as the Master Variant. If you import a Product without a Master Variant, the import request will have this status until another import request includes Master Variant data for the Product. Generates the ImportWaitForMasterVariant Event.

                  */ ProcessingState WAIT_FOR_MASTER_VARIANT = ProcessingStateEnum.WAIT_FOR_MASTER_VARIANT; /**

                  The resource was successfully imported.

                  */ ProcessingState IMPORTED = ProcessingStateEnum.IMPORTED; /** -

                  The resource could not be imported. References were resolved, but the system could not import the data due to an internal server error and the retry limit was reached.

                  */ +

                  The resource could not be imported. References were resolved, but the system could not import the data due to an internal server error and the retry limit was reached. Generates the ImportOperationRejected Event.

                  */ ProcessingState REJECTED = ProcessingStateEnum.REJECTED; /**

                  The import request was canceled and the resource was not imported.

                  */ diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraft.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraft.java index 09447400fc8..553b91d3119 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraft.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraft.java @@ -16,7 +16,7 @@ import jakarta.validation.constraints.NotNull; /** - *

                  The representation sent to the server when updating an import container.

                  + *

                  The representation sent to the server when updating an Import Container.

                  * *
                  * Example to create an instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraftImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraftImpl.java index e34a2a9aad8..e78440460a7 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraftImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importcontainers/ImportContainerUpdateDraftImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

                  The representation sent to the server when updating an import container.

                  + *

                  The representation sent to the server when updating an Import Container.

                  */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ImportContainerUpdateDraftImpl implements ImportContainerUpdateDraft, ModelBase { diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequest.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequest.java index 3b9b5fefe94..ab0f746583a 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequest.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequest.java @@ -16,7 +16,7 @@ import jakarta.validation.constraints.NotNull; /** - *

                  An import request batches multiple import resources of the same import resource type for processing by an import container.

                  + *

                  An import request batches multiple import resources of the same import resource type for processing by an Import Container.

                  * *
                  * Example to create a subtype instance using the builder pattern diff --git a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequestImpl.java b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequestImpl.java index c6d470b013a..1d60d22342c 100644 --- a/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequestImpl.java +++ b/commercetools/commercetools-sdk-java-importapi/src/main/java-generated/com/commercetools/importapi/models/importrequests/ImportRequestImpl.java @@ -17,7 +17,7 @@ import org.apache.commons.lang3.builder.ToStringStyle; /** - *

                  An import request batches multiple import resources of the same import resource type for processing by an import container.

                  + *

                  An import request batches multiple import resources of the same import resource type for processing by an Import Container.

                  */ @Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen") public class ImportRequestImpl implements ImportRequest, ModelBase { diff --git a/references.txt b/references.txt index cdc73954b1f..e5f7c549e31 100644 --- a/references.txt +++ b/references.txt @@ -393,3 +393,4 @@ a7aa20c17dc375042673f3de785e65cda595960c a33feaab360e352573f683dd36889c80735e3900 6082ac4e80a66d271c68785c32ea07853e8211ef 4055fc15c037521387c7c7687cfceee73527f55f +ab43d3845fcab04a4e74bada3ddedf2d8b28472f