From 8c48bc3b7f5e2f5b88aacd4f7f17adbbebca6279 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Tue, 5 Dec 2023 16:59:53 +0000
Subject: [PATCH 01/59] build(codegen): updating SDK
---
.../api/models/business_unit/BusinessUnitStatus.java | 2 +-
reference.txt | 1 +
references.txt | 1 +
3 files changed, 3 insertions(+), 1 deletion(-)
create mode 100644 reference.txt
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java
index e304d20c885..6f3026c6318 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitStatus.java
@@ -22,7 +22,7 @@ public interface BusinessUnitStatus extends JsonEnum {
*/
BusinessUnitStatus ACTIVE = BusinessUnitStatusEnum.ACTIVE;
/**
- The Business Unit cannot be used in Carts, Orders, Quote Requests, and Quotes and can only be edited using the general endpoint.
+
The Business Unit cannot be used in Carts, Orders, Quote Requests, and Quotes and can only be edited using the general endpoint.
Status doesn't affect inheritance. Even if a parent unit is inactive, its children remain active and can inherit role assignments.
*/
diff --git a/reference.txt b/reference.txt
new file mode 100644
index 00000000000..4f680d7bd63
--- /dev/null
+++ b/reference.txt
@@ -0,0 +1 @@
+0b026711ef7a826b607401ecc1e60e89b05e778a
diff --git a/references.txt b/references.txt
index 3918ebe10c7..a0d38fc7abf 100644
--- a/references.txt
+++ b/references.txt
@@ -153,3 +153,4 @@ b390ee642415d99d30db66efa4ecddaf194d920a
a9bf8d11b284086550a98ffb99550a7c6fd5e27e
9a21b3fdb553c649790d84768f18a6e33876ee3e
0b026711ef7a826b607401ecc1e60e89b05e778a
+df57a82adf35a75cf4d4a27212e68170550b0ad9
From c93870da5774e8c98c5612b4cb9d7b15c82e7846 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Thu, 7 Dec 2023 07:18:54 +0000
Subject: [PATCH 02/59] build(codegen): updating SDK
---
.../api/models/business_unit/BusinessUnit.java | 6 +++---
.../models/business_unit/BusinessUnitImpl.java | 2 +-
.../api/models/business_unit/CompanyBuilder.java | 16 ++++++++--------
.../api/models/business_unit/CompanyImpl.java | 2 +-
.../models/business_unit/DivisionBuilder.java | 16 ++++++++--------
.../api/models/business_unit/DivisionImpl.java | 2 +-
references.txt | 1 +
7 files changed, 23 insertions(+), 22 deletions(-)
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java
index 1437d1f7379..4a2b7ba5cf0 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnit.java
@@ -227,7 +227,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models
public List getAssociates();
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @return inheritedAssociates
*/
@Valid
@@ -436,7 +436,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models
public void setAssociates(final List associates);
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates values to be set
*/
@@ -444,7 +444,7 @@ public interface BusinessUnit extends BaseResource, com.commercetools.api.models
public void setInheritedAssociates(final InheritedAssociate... inheritedAssociates);
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates values to be set
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java
index cc795cbd2eb..ea389aabbd9 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/BusinessUnitImpl.java
@@ -299,7 +299,7 @@ public java.util.List getA
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
*/
public java.util.List getInheritedAssociates() {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java
index 0fded39cd47..f168b418994 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyBuilder.java
@@ -678,7 +678,7 @@ public CompanyBuilder setAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates value to be set
* @return Builder
*/
@@ -690,7 +690,7 @@ public CompanyBuilder inheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates value to be set
* @return Builder
*/
@@ -702,7 +702,7 @@ public CompanyBuilder inheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates value to be set
* @return Builder
*/
@@ -717,7 +717,7 @@ public CompanyBuilder plusInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -733,7 +733,7 @@ public CompanyBuilder plusInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -747,7 +747,7 @@ public CompanyBuilder withInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -759,7 +759,7 @@ public CompanyBuilder addInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -1039,7 +1039,7 @@ public java.util.List getA
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @return inheritedAssociates
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java
index 0f99e3afa17..4a01e018067 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/CompanyImpl.java
@@ -299,7 +299,7 @@ public java.util.List getA
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
*/
public java.util.List getInheritedAssociates() {
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java
index 98f15fad28e..9147c8c3c0a 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionBuilder.java
@@ -678,7 +678,7 @@ public DivisionBuilder setAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates value to be set
* @return Builder
*/
@@ -690,7 +690,7 @@ public DivisionBuilder inheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates value to be set
* @return Builder
*/
@@ -702,7 +702,7 @@ public DivisionBuilder inheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param inheritedAssociates value to be set
* @return Builder
*/
@@ -717,7 +717,7 @@ public DivisionBuilder plusInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -733,7 +733,7 @@ public DivisionBuilder plusInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -747,7 +747,7 @@ public DivisionBuilder withInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -759,7 +759,7 @@ public DivisionBuilder addInheritedAssociates(
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @param builder function to build the inheritedAssociates value
* @return Builder
*/
@@ -1039,7 +1039,7 @@ public java.util.List getA
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
* @return inheritedAssociates
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java
index cd49986e855..5324792f3b3 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/business_unit/DivisionImpl.java
@@ -299,7 +299,7 @@ public java.util.List getA
}
/**
- * Associates that are inherited from a parent Business Unit. This value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
+ * Associates that are inherited from a parent Business Unit. The value of this field is eventually consistent and is only present when the associateMode
is set to ExplicitAndFromParent
.
*/
public java.util.List getInheritedAssociates() {
diff --git a/references.txt b/references.txt
index a0d38fc7abf..a62f92b4b1c 100644
--- a/references.txt
+++ b/references.txt
@@ -154,3 +154,4 @@ a9bf8d11b284086550a98ffb99550a7c6fd5e27e
9a21b3fdb553c649790d84768f18a6e33876ee3e
0b026711ef7a826b607401ecc1e60e89b05e778a
df57a82adf35a75cf4d4a27212e68170550b0ad9
+d1261b427f37a7d629b64bc1dde53692eb951368
From 71adee21cf5905e9a319e9e5db5ef6ed96c703e4 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Thu, 7 Dec 2023 14:21:42 +0000
Subject: [PATCH 03/59] build(codegen): updating SDK
---
changes.md | 209 +-----------------
.../product_type/AttributeReferenceType.java | 2 +-
.../AttributeReferenceTypeBuilder.java | 2 +-
.../AttributeReferenceTypeId.java | 30 +++
.../AttributeReferenceTypeTest.java | 8 +-
references.txt | 1 +
6 files changed, 41 insertions(+), 211 deletions(-)
diff --git a/changes.md b/changes.md
index 1079f96abd0..670415c217e 100644
--- a/changes.md
+++ b/changes.md
@@ -1,213 +1,10 @@
**Api changes**
-
-Added QueryParameter(s)
-
-- added query parameter `expand` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `sort` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `limit` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `offset` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `withTotal` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `where` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `/^var[.][a-zA-Z0-9]+$/` to method `get /{projectKey}/in-store/key={storeKey}/cart-discounts`
-- added query parameter `expand` to method `post /{projectKey}/in-store/key={storeKey}/cart-discounts`
-
-
-
Added Enum(s)
-- added enum `approval-flow` to type `ReferenceTypeId`
-- added enum `approval-rule` to type `ReferenceTypeId`
-- added enum `approval-flow` to type `ChangeSubscriptionResourceTypeId`
-- added enum `approval-rule` to type `ChangeSubscriptionResourceTypeId`
-- added enum `approval-flow` to type `MessageSubscriptionResourceTypeId`
-- added enum `approval-rule` to type `MessageSubscriptionResourceTypeId`
-
-
-
-
-Changed MethodResponseBody(s)
-
-- :warning: changed response body for `200: application/json` of method `get /{projectKey}/in-store/key={storeKey}/cart-discounts` from type `CartDiscount` to `CartDiscountPagedQueryResponse`
-
-
-
-
-Added Method(s)
-
-- added method `apiRoot.withProjectKey().head()`
-- added method `apiRoot.withProjectKey().associateRoles().head()`
-- added method `apiRoot.withProjectKey().businessUnits().head()`
-- added method `apiRoot.withProjectKey().categories().head()`
-- added method `apiRoot.withProjectKey().carts().head()`
-- added method `apiRoot.withProjectKey().cartDiscounts().head()`
-- added method `apiRoot.withProjectKey().channels().head()`
-- added method `apiRoot.withProjectKey().customers().head()`
-- added method `apiRoot.withProjectKey().customerGroups().head()`
-- added method `apiRoot.withProjectKey().customObjects().head()`
-- added method `apiRoot.withProjectKey().discountCodes().head()`
-- added method `apiRoot.withProjectKey().inventory().head()`
-- added method `apiRoot.withProjectKey().messages().head()`
-- added method `apiRoot.withProjectKey().orders().head()`
-- added method `apiRoot.withProjectKey().payments().head()`
-- added method `apiRoot.withProjectKey().productDiscounts().head()`
-- added method `apiRoot.withProjectKey().productProjections().head()`
-- added method `apiRoot.withProjectKey().productSelections().head()`
-- added method `apiRoot.withProjectKey().quotes().head()`
-- added method `apiRoot.withProjectKey().quoteRequests().head()`
-- added method `apiRoot.withProjectKey().stagedQuotes().head()`
-- added method `apiRoot.withProjectKey().reviews().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().head()`
-- added method `apiRoot.withProjectKey().shoppingLists().head()`
-- added method `apiRoot.withProjectKey().states().head()`
-- added method `apiRoot.withProjectKey().subscriptions().head()`
-- added method `apiRoot.withProjectKey().taxCategories().head()`
-- added method `apiRoot.withProjectKey().types().head()`
-- added method `apiRoot.withProjectKey().zones().head()`
-- added method `apiRoot.withProjectKey().extensions().head()`
-- added method `apiRoot.withProjectKey().apiClients().head()`
-- added method `apiRoot.withProjectKey().stores().head()`
-- added method `apiRoot.withProjectKey().standalonePrices().head()`
-- added method `apiRoot.withProjectKey().attributeGroups().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withKey().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().businessUnits().withId().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withKey().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().carts().withId().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withOrderNumber().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().orders().withId().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withKey().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quotes().withId().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withKey().head()`
-- added method `apiRoot.withProjectKey().asAssociate().withAssociateIdValue().inBusinessUnitKeyWithBusinessUnitKeyValue().quoteRequests().withId().head()`
-- added method `apiRoot.withProjectKey().associateRoles().withKey().head()`
-- added method `apiRoot.withProjectKey().associateRoles().withId().head()`
-- added method `apiRoot.withProjectKey().businessUnits().withKey().head()`
-- added method `apiRoot.withProjectKey().businessUnits().withId().head()`
-- added method `apiRoot.withProjectKey().categories().withKey().head()`
-- added method `apiRoot.withProjectKey().categories().withId().head()`
-- added method `apiRoot.withProjectKey().carts().withCustomerId().head()`
-- added method `apiRoot.withProjectKey().carts().withKey().head()`
-- added method `apiRoot.withProjectKey().carts().withId().head()`
-- added method `apiRoot.withProjectKey().cartDiscounts().withKey().head()`
-- added method `apiRoot.withProjectKey().cartDiscounts().withId().head()`
-- added method `apiRoot.withProjectKey().channels().withId().head()`
-- added method `apiRoot.withProjectKey().customers().withKey().head()`
-- added method `apiRoot.withProjectKey().customers().withId().head()`
-- added method `apiRoot.withProjectKey().customerGroups().withKey().head()`
-- added method `apiRoot.withProjectKey().customerGroups().withId().head()`
-- added method `apiRoot.withProjectKey().discountCodes().withId().head()`
-- added method `apiRoot.withProjectKey().inventory().withId().head()`
-- added method `apiRoot.withProjectKey().inventory().withKey().head()`
-- added method `apiRoot.withProjectKey().messages().withId().head()`
-- added method `apiRoot.withProjectKey().orders().withOrderNumber().head()`
-- added method `apiRoot.withProjectKey().orders().edits().head()`
-- added method `apiRoot.withProjectKey().orders().withId().head()`
-- added method `apiRoot.withProjectKey().orders().edits().withKey().head()`
-- added method `apiRoot.withProjectKey().orders().edits().withId().head()`
-- added method `apiRoot.withProjectKey().payments().withKey().head()`
-- added method `apiRoot.withProjectKey().payments().withId().head()`
-- added method `apiRoot.withProjectKey().productDiscounts().withKey().head()`
-- added method `apiRoot.withProjectKey().productDiscounts().withId().head()`
-- added method `apiRoot.withProjectKey().productProjections().withKey().head()`
-- added method `apiRoot.withProjectKey().productProjections().withId().head()`
-- added method `apiRoot.withProjectKey().productSelections().withKey().head()`
-- added method `apiRoot.withProjectKey().productSelections().withId().head()`
-- added method `apiRoot.withProjectKey().quotes().withKey().head()`
-- added method `apiRoot.withProjectKey().quotes().withId().head()`
-- added method `apiRoot.withProjectKey().quoteRequests().withKey().head()`
-- added method `apiRoot.withProjectKey().quoteRequests().withId().head()`
-- added method `apiRoot.withProjectKey().stagedQuotes().withKey().head()`
-- added method `apiRoot.withProjectKey().stagedQuotes().withId().head()`
-- added method `apiRoot.withProjectKey().reviews().withKey().head()`
-- added method `apiRoot.withProjectKey().reviews().withId().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().withKey().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().matchingCart().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().matchingCartLocation().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().matchingOrderedit().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().matchingLocation().head()`
-- added method `apiRoot.withProjectKey().shippingMethods().withId().head()`
-- added method `apiRoot.withProjectKey().shoppingLists().withKey().head()`
-- added method `apiRoot.withProjectKey().shoppingLists().withId().head()`
-- added method `apiRoot.withProjectKey().states().withKey().head()`
-- added method `apiRoot.withProjectKey().states().withId().head()`
-- added method `apiRoot.withProjectKey().subscriptions().withKey().head()`
-- added method `apiRoot.withProjectKey().subscriptions().withId().head()`
-- added method `apiRoot.withProjectKey().taxCategories().withKey().head()`
-- added method `apiRoot.withProjectKey().taxCategories().withId().head()`
-- added method `apiRoot.withProjectKey().types().withKey().head()`
-- added method `apiRoot.withProjectKey().types().withId().head()`
-- added method `apiRoot.withProjectKey().zones().withKey().head()`
-- added method `apiRoot.withProjectKey().zones().withId().head()`
-- added method `apiRoot.withProjectKey().me().activeCart().head()`
-- added method `apiRoot.withProjectKey().me().businessUnits().head()`
-- added method `apiRoot.withProjectKey().me().carts().head()`
-- added method `apiRoot.withProjectKey().me().orders().head()`
-- added method `apiRoot.withProjectKey().me().payments().head()`
-- added method `apiRoot.withProjectKey().me().quoteRequests().head()`
-- added method `apiRoot.withProjectKey().me().quotes().head()`
-- added method `apiRoot.withProjectKey().me().shoppingLists().head()`
-- added method `apiRoot.withProjectKey().me().businessUnits().withId().head()`
-- added method `apiRoot.withProjectKey().me().businessUnits().withKey().head()`
-- added method `apiRoot.withProjectKey().me().carts().withKey().head()`
-- added method `apiRoot.withProjectKey().me().carts().withId().head()`
-- added method `apiRoot.withProjectKey().me().orders().withId().head()`
-- added method `apiRoot.withProjectKey().me().payments().withId().head()`
-- added method `apiRoot.withProjectKey().me().quoteRequests().withId().head()`
-- added method `apiRoot.withProjectKey().me().quoteRequests().withKey().head()`
-- added method `apiRoot.withProjectKey().me().quotes().withId().head()`
-- added method `apiRoot.withProjectKey().me().quotes().withKey().head()`
-- added method `apiRoot.withProjectKey().me().shoppingLists().withId().head()`
-- added method `apiRoot.withProjectKey().me().shoppingLists().withKey().head()`
-- added method `apiRoot.withProjectKey().extensions().withKey().head()`
-- added method `apiRoot.withProjectKey().extensions().withId().head()`
-- added method `apiRoot.withProjectKey().apiClients().withId().head()`
-- added method `apiRoot.withProjectKey().stores().withKey().head()`
-- added method `apiRoot.withProjectKey().stores().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withCustomerId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().carts().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withOrderNumber().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().orders().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().activeCart().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().carts().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().orders().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().me().shoppingLists().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().customers().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shippingMethods().matchingCart().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().shoppingLists().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().productProjections().withId().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withKey().head()`
-- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().cartDiscounts().withId().head()`
-- added method `apiRoot.withProjectKey().standalonePrices().withKey().head()`
-- added method `apiRoot.withProjectKey().standalonePrices().withId().head()`
-- added method `apiRoot.withProjectKey().attributeGroups().withKey().head()`
-- added method `apiRoot.withProjectKey().attributeGroups().withId().head()`
-
-
-**History changes**
-
-
-Changed Property(s)
-
-- :warning: changed property `previousValue` of type `SetNameChange` from type `LocalizedString` to `string`
-- :warning: changed property `nextValue` of type `SetNameChange` from type `LocalizedString` to `string`
+- added enum `associate-role` to type `AttributeReferenceTypeId`
+- added enum `business-unit` to type `AttributeReferenceTypeId`
+- added enum `cart-discount` to type `AttributeReferenceTypeId`
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java
index e9198b0c880..5547f39f81d 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceType.java
@@ -21,7 +21,7 @@
*
*
* AttributeReferenceType attributeReferenceType = AttributeReferenceType.builder()
- * .referenceTypeId(AttributeReferenceTypeId.CART)
+ * .referenceTypeId(AttributeReferenceTypeId.ASSOCIATE_ROLE)
* .build()
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java
index 0a53527230e..2d0e6db4b8c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeBuilder.java
@@ -13,7 +13,7 @@
*
*
* AttributeReferenceType attributeReferenceType = AttributeReferenceType.builder()
- * .referenceTypeId(AttributeReferenceTypeId.CART)
+ * .referenceTypeId(AttributeReferenceTypeId.ASSOCIATE_ROLE)
* .build()
*
*
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java
index 9fd83692e12..38f564fc9db 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeId.java
@@ -16,11 +16,26 @@
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface AttributeReferenceTypeId extends JsonEnum {
+ /**
+ References a AssociateRole.
+
+ */
+ AttributeReferenceTypeId ASSOCIATE_ROLE = AttributeReferenceTypeIdEnum.ASSOCIATE_ROLE;
+ /**
+ References a BusinessUnit.
+
+ */
+ AttributeReferenceTypeId BUSINESS_UNIT = AttributeReferenceTypeIdEnum.BUSINESS_UNIT;
/**
References a Cart.
*/
AttributeReferenceTypeId CART = AttributeReferenceTypeIdEnum.CART;
+ /**
+ References a CartDiscount.
+
+ */
+ AttributeReferenceTypeId CART_DISCOUNT = AttributeReferenceTypeIdEnum.CART_DISCOUNT;
/**
References a Category.
@@ -81,11 +96,26 @@ public interface AttributeReferenceTypeId extends JsonEnum {
* possible values of AttributeReferenceTypeId
*/
enum AttributeReferenceTypeIdEnum implements AttributeReferenceTypeId {
+ /**
+ * associate-role
+ */
+ ASSOCIATE_ROLE("associate-role"),
+
+ /**
+ * business-unit
+ */
+ BUSINESS_UNIT("business-unit"),
+
/**
* cart
*/
CART("cart"),
+ /**
+ * cart-discount
+ */
+ CART_DISCOUNT("cart-discount"),
+
/**
* category
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java
index 859e5662cc9..d82824fb2fe 100644
--- a/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java
+++ b/commercetools/commercetools-sdk-java-api/src/test/java-generated/com/commercetools/api/models/product_type/AttributeReferenceTypeTest.java
@@ -26,14 +26,16 @@ public void buildUnchecked(AttributeReferenceTypeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { AttributeReferenceType.builder()
.referenceTypeId(
- com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("cart")) } };
+ com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("associate-role")) } };
}
@Test
public void referenceTypeId() {
AttributeReferenceType value = AttributeReferenceType.of();
- value.setReferenceTypeId(com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("cart"));
+ value.setReferenceTypeId(
+ com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("associate-role"));
Assertions.assertThat(value.getReferenceTypeId())
- .isEqualTo(com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("cart"));
+ .isEqualTo(
+ com.commercetools.api.models.product_type.AttributeReferenceTypeId.findEnum("associate-role"));
}
}
diff --git a/references.txt b/references.txt
index a62f92b4b1c..8ab8129b266 100644
--- a/references.txt
+++ b/references.txt
@@ -155,3 +155,4 @@ a9bf8d11b284086550a98ffb99550a7c6fd5e27e
0b026711ef7a826b607401ecc1e60e89b05e778a
df57a82adf35a75cf4d4a27212e68170550b0ad9
d1261b427f37a7d629b64bc1dde53692eb951368
+734afcf36b8d35f56f2ad66b91795d8803390d9b
From 5df7e0b5c7e0b8d6dd2e2cf3c91d182e2d810bc9 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Fri, 8 Dec 2023 07:22:15 +0000
Subject: [PATCH 04/59] build(codegen): updating SDK
---
changes.md | 53 +++++++
.../models/change/AddAddressChange.java | 20 ---
.../change/AddAddressChangeBuilder.java | 53 +------
.../models/change/AddAddressChangeImpl.java | 25 +---
.../models/change/AddChannelRolesChange.java | 14 +-
.../change/AddChannelRolesChangeBuilder.java | 20 +--
.../change/AddChannelRolesChangeImpl.java | 20 +--
.../change/AddLocalizedEnumValueChange.java | 8 +-
.../AddLocalizedEnumValueChangeBuilder.java | 14 +-
.../AddLocalizedEnumValueChangeImpl.java | 8 +-
.../models/change/AddLocationChange.java | 20 ---
.../change/AddLocationChangeBuilder.java | 54 +------
.../models/change/AddLocationChangeImpl.java | 25 +---
.../change/AddPlainEnumValueChange.java | 8 +-
.../AddPlainEnumValueChangeBuilder.java | 15 +-
.../change/AddPlainEnumValueChangeImpl.java | 8 +-
.../models/change/AddStateRolesChange.java | 14 +-
.../change/AddStateRolesChangeBuilder.java | 21 +--
.../change/AddStateRolesChangeImpl.java | 20 +--
.../history/models/change/Change.java | 1 -
.../change/ChangeDescriptionChange.java | 6 +-
.../change/ChangeDescriptionChangeImpl.java | 6 +-
.../ChangeLocalizedDescriptionChange.java | 6 +-
.../ChangeLocalizedDescriptionChangeImpl.java | 6 +-
.../change/ChangeLocalizedNameChange.java | 4 -
.../change/ChangeLocalizedNameChangeImpl.java | 4 -
.../models/change/ChangeNameChange.java | 8 -
.../models/change/ChangeNameChangeImpl.java | 8 -
.../models/change/ChangeStateTypeChange.java | 14 +-
.../change/ChangeStateTypeChangeBuilder.java | 17 ++-
.../change/ChangeStateTypeChangeImpl.java | 16 +-
.../change/RemoveChannelRolesChange.java | 14 +-
.../RemoveChannelRolesChangeBuilder.java | 20 +--
.../change/RemoveChannelRolesChangeImpl.java | 20 +--
.../models/change/RemoveLocationChange.java | 19 ---
.../change/RemoveLocationChangeBuilder.java | 53 +------
.../change/RemoveLocationChangeImpl.java | 27 +---
.../models/change/RemoveStateRolesChange.java | 14 +-
.../change/RemoveStateRolesChangeBuilder.java | 20 +--
.../change/RemoveStateRolesChangeImpl.java | 20 +--
.../models/change/RemoveTaxRateChange.java | 19 ---
.../change/RemoveTaxRateChangeBuilder.java | 53 +------
.../change/RemoveTaxRateChangeImpl.java | 27 +---
.../models/change/SetChannelRolesChange.java | 14 +-
.../change/SetChannelRolesChangeBuilder.java | 20 +--
.../change/SetChannelRolesChangeImpl.java | 20 +--
.../models/change/SetDescriptionChange.java | 8 -
.../change/SetDescriptionChangeImpl.java | 8 -
.../change/SetLocalizedDescriptionChange.java | 2 -
.../SetLocalizedDescriptionChangeImpl.java | 2 -
.../models/change/SetStateRolesChange.java | 14 +-
.../change/SetStateRolesChangeBuilder.java | 21 +--
.../change/SetStateRolesChangeImpl.java | 20 +--
.../common/AttributeLocalizedEnumValue.java | 141 ++++++++++++++++++
.../AttributeLocalizedEnumValueBuilder.java | 133 +++++++++++++++++
.../AttributeLocalizedEnumValueImpl.java | 98 ++++++++++++
.../common/AttributePlainEnumValue.java | 139 +++++++++++++++++
.../AttributePlainEnumValueBuilder.java | 107 +++++++++++++
.../common/AttributePlainEnumValueImpl.java | 97 ++++++++++++
...{ChannelRole.java => ChannelRoleEnum.java} | 32 ++--
.../{StateRole.java => StateRoleEnum.java} | 26 ++--
.../{StateType.java => StateTypeEnum.java} | 55 ++++---
.../models/change/AddAddressChangeTest.java | 15 +-
.../change/AddChannelRolesChangeTest.java | 16 +-
.../AddLocalizedEnumValueChangeTest.java | 6 +-
.../models/change/AddLocationChangeTest.java | 15 +-
.../change/AddPlainEnumValueChangeTest.java | 6 +-
.../change/AddStateRolesChangeTest.java | 12 +-
.../change/ChangeStateTypeChangeTest.java | 12 +-
.../change/RemoveChannelRolesChangeTest.java | 16 +-
.../change/RemoveLocationChangeTest.java | 12 +-
.../change/RemoveStateRolesChangeTest.java | 12 +-
.../change/RemoveTaxRateChangeTest.java | 12 +-
.../change/SetChannelRolesChangeTest.java | 16 +-
.../change/SetStateRolesChangeTest.java | 12 +-
.../AttributeLocalizedEnumValueTest.java | 46 ++++++
.../common/AttributePlainEnumValueTest.java | 44 ++++++
references.txt | 1 +
78 files changed, 1223 insertions(+), 809 deletions(-)
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java
rename commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/{ChannelRole.java => ChannelRoleEnum.java} (71%)
rename commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/{StateRole.java => StateRoleEnum.java} (72%)
rename commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/{StateType.java => StateTypeEnum.java} (60%)
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java
create mode 100644 commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java
diff --git a/changes.md b/changes.md
index 670415c217e..a6af6db8a93 100644
--- a/changes.md
+++ b/changes.md
@@ -8,3 +8,56 @@
- added enum `cart-discount` to type `AttributeReferenceTypeId`
+**History changes**
+
+
+Added Type(s)
+
+- added type `AttributeLocalizedEnumValue`
+- added type `AttributePlainEnumValue`
+- added type `ChannelRoleEnum`
+- added type `StateRoleEnum`
+- added type `StateTypeEnum`
+
+
+
+
+Removed Type(s)
+
+- :warning: removed type `ChannelRole`
+- :warning: removed type `StateRole`
+- :warning: removed type `StateType`
+
+
+
+
+Removed Property(s)
+
+- :warning: removed property `previousValue` from type `AddAddressChange`
+- :warning: removed property `previousValue` from type `AddLocationChange`
+- :warning: removed property `nextValue` from type `RemoveLocationChange`
+- :warning: removed property `nextValue` from type `RemoveTaxRateChange`
+
+
+
+
+Changed Property(s)
+
+- :warning: changed property `previousValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
+- :warning: changed property `nextValue` of type `AddChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
+- :warning: changed property `nextValue` of type `AddLocalizedEnumValueChange` from type `LocalizedEnumValue` to `AttributeLocalizedEnumValue`
+- :warning: changed property `nextValue` of type `AddPlainEnumValueChange` from type `EnumValue` to `AttributePlainEnumValue`
+- :warning: changed property `previousValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
+- :warning: changed property `nextValue` of type `AddStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
+- :warning: changed property `previousValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum`
+- :warning: changed property `nextValue` of type `ChangeStateTypeChange` from type `StateType` to `StateTypeEnum`
+- :warning: changed property `previousValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
+- :warning: changed property `nextValue` of type `RemoveChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
+- :warning: changed property `previousValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
+- :warning: changed property `nextValue` of type `RemoveStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
+- :warning: changed property `previousValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
+- :warning: changed property `nextValue` of type `SetChannelRolesChange` from type `ChannelRole[]` to `ChannelRoleEnum[]`
+- :warning: changed property `previousValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
+- :warning: changed property `nextValue` of type `SetStateRolesChange` from type `StateRole[]` to `StateRoleEnum[]`
+
+
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java
index c7fccd5a99c..494cb0d646e 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChange.java
@@ -24,7 +24,6 @@
*
* AddAddressChange addAddressChange = AddAddressChange.builder()
* .change("{change}")
- * .previousValue(previousValueBuilder -> previousValueBuilder)
* .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
@@ -55,15 +54,6 @@ public interface AddAddressChange extends Change {
@JsonProperty("type")
public String getType();
- /**
- * Value before the change.
- * @return previousValue
- */
- @NotNull
- @Valid
- @JsonProperty("previousValue")
- public Address getPreviousValue();
-
/**
* Value after the change.
* @return nextValue
@@ -80,13 +70,6 @@ public interface AddAddressChange extends Change {
public void setChange(final String change);
- /**
- * Value before the change.
- * @param previousValue value to be set
- */
-
- public void setPreviousValue(final Address previousValue);
-
/**
* Value after the change.
* @param nextValue value to be set
@@ -110,7 +93,6 @@ public static AddAddressChange of() {
public static AddAddressChange of(final AddAddressChange template) {
AddAddressChangeImpl instance = new AddAddressChangeImpl();
instance.setChange(template.getChange());
- instance.setPreviousValue(template.getPreviousValue());
instance.setNextValue(template.getNextValue());
return instance;
}
@@ -127,8 +109,6 @@ public static AddAddressChange deepCopy(@Nullable final AddAddressChange templat
}
AddAddressChangeImpl instance = new AddAddressChangeImpl();
instance.setChange(template.getChange());
- instance.setPreviousValue(
- com.commercetools.history.models.common.Address.deepCopy(template.getPreviousValue()));
instance.setNextValue(com.commercetools.history.models.common.Address.deepCopy(template.getNextValue()));
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java
index b6273807d61..97499908864 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeBuilder.java
@@ -15,7 +15,6 @@
*
* AddAddressChange addAddressChange = AddAddressChange.builder()
* .change("{change}")
- * .previousValue(previousValueBuilder -> previousValueBuilder)
* .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
@@ -26,8 +25,6 @@ public class AddAddressChangeBuilder implements Builder {
private String change;
- private com.commercetools.history.models.common.Address previousValue;
-
private com.commercetools.history.models.common.Address nextValue;
/**
@@ -41,41 +38,6 @@ public AddAddressChangeBuilder change(final String change) {
return this;
}
- /**
- * Value before the change.
- * @param builder function to build the previousValue value
- * @return Builder
- */
-
- public AddAddressChangeBuilder previousValue(
- Function builder) {
- this.previousValue = builder.apply(com.commercetools.history.models.common.AddressBuilder.of()).build();
- return this;
- }
-
- /**
- * Value before the change.
- * @param builder function to build the previousValue value
- * @return Builder
- */
-
- public AddAddressChangeBuilder withPreviousValue(
- Function builder) {
- this.previousValue = builder.apply(com.commercetools.history.models.common.AddressBuilder.of());
- return this;
- }
-
- /**
- * Value before the change.
- * @param previousValue value to be set
- * @return Builder
- */
-
- public AddAddressChangeBuilder previousValue(final com.commercetools.history.models.common.Address previousValue) {
- this.previousValue = previousValue;
- return this;
- }
-
/**
* Value after the change.
* @param builder function to build the nextValue value
@@ -120,15 +82,6 @@ public String getChange() {
return this.change;
}
- /**
- * Value before the change.
- * @return previousValue
- */
-
- public com.commercetools.history.models.common.Address getPreviousValue() {
- return this.previousValue;
- }
-
/**
* Value after the change.
* @return nextValue
@@ -144,9 +97,8 @@ public com.commercetools.history.models.common.Address getNextValue() {
*/
public AddAddressChange build() {
Objects.requireNonNull(change, AddAddressChange.class + ": change is missing");
- Objects.requireNonNull(previousValue, AddAddressChange.class + ": previousValue is missing");
Objects.requireNonNull(nextValue, AddAddressChange.class + ": nextValue is missing");
- return new AddAddressChangeImpl(change, previousValue, nextValue);
+ return new AddAddressChangeImpl(change, nextValue);
}
/**
@@ -154,7 +106,7 @@ public AddAddressChange build() {
* @return AddAddressChange
*/
public AddAddressChange buildUnchecked() {
- return new AddAddressChangeImpl(change, previousValue, nextValue);
+ return new AddAddressChangeImpl(change, nextValue);
}
/**
@@ -173,7 +125,6 @@ public static AddAddressChangeBuilder of() {
public static AddAddressChangeBuilder of(final AddAddressChange template) {
AddAddressChangeBuilder builder = new AddAddressChangeBuilder();
builder.change = template.getChange();
- builder.previousValue = template.getPreviousValue();
builder.nextValue = template.getNextValue();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java
index afd3d2f9e4a..ef3a24cb9e1 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddAddressChangeImpl.java
@@ -26,8 +26,6 @@ public class AddAddressChangeImpl implements AddAddressChange, ModelBase {
private String change;
- private com.commercetools.history.models.common.Address previousValue;
-
private com.commercetools.history.models.common.Address nextValue;
/**
@@ -35,10 +33,8 @@ public class AddAddressChangeImpl implements AddAddressChange, ModelBase {
*/
@JsonCreator
AddAddressChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final com.commercetools.history.models.common.Address previousValue,
@JsonProperty("nextValue") final com.commercetools.history.models.common.Address nextValue) {
this.change = change;
- this.previousValue = previousValue;
this.nextValue = nextValue;
this.type = ADD_ADDRESS_CHANGE;
}
@@ -66,14 +62,6 @@ public String getChange() {
return this.change;
}
- /**
- * Value before the change.
- */
-
- public com.commercetools.history.models.common.Address getPreviousValue() {
- return this.previousValue;
- }
-
/**
* Value after the change.
*/
@@ -86,10 +74,6 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.Address previousValue) {
- this.previousValue = previousValue;
- }
-
public void setNextValue(final com.commercetools.history.models.common.Address nextValue) {
this.nextValue = nextValue;
}
@@ -106,29 +90,22 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(change, that.change)
- .append(previousValue, that.previousValue)
.append(nextValue, that.nextValue)
.append(type, that.type)
.append(change, that.change)
- .append(previousValue, that.previousValue)
.append(nextValue, that.nextValue)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type)
- .append(change)
- .append(previousValue)
- .append(nextValue)
- .toHashCode();
+ return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("change", change)
- .append("previousValue", previousValue)
.append("nextValue", nextValue)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java
index e292e0f7366..f67e637573a 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.ChannelRole;
+import com.commercetools.history.models.common.ChannelRoleEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -60,7 +60,7 @@ public interface AddChannelRolesChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public List getPreviousValue();
+ public List getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface AddChannelRolesChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public List getNextValue();
+ public List getNextValue();
/**
* set change
@@ -83,14 +83,14 @@ public interface AddChannelRolesChange extends Change {
*/
@JsonIgnore
- public void setPreviousValue(final ChannelRole... previousValue);
+ public void setPreviousValue(final ChannelRoleEnum... previousValue);
/**
* Value before the change.
* @param previousValue values to be set
*/
- public void setPreviousValue(final List previousValue);
+ public void setPreviousValue(final List previousValue);
/**
* Value after the change.
@@ -98,14 +98,14 @@ public interface AddChannelRolesChange extends Change {
*/
@JsonIgnore
- public void setNextValue(final ChannelRole... nextValue);
+ public void setNextValue(final ChannelRoleEnum... nextValue);
/**
* Value after the change.
* @param nextValue values to be set
*/
- public void setNextValue(final List nextValue);
+ public void setNextValue(final List nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java
index 26c60d857a7..53fa811268b 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeBuilder.java
@@ -25,9 +25,9 @@ public class AddChannelRolesChangeBuilder implements Builder previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* set the value to the change
@@ -47,7 +47,7 @@ public AddChannelRolesChangeBuilder change(final String change) {
*/
public AddChannelRolesChangeBuilder previousValue(
- final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
return this;
}
@@ -59,7 +59,7 @@ public AddChannelRolesChangeBuilder previousValue(
*/
public AddChannelRolesChangeBuilder previousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
return this;
}
@@ -71,7 +71,7 @@ public AddChannelRolesChangeBuilder previousValue(
*/
public AddChannelRolesChangeBuilder plusPreviousValue(
- final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
if (this.previousValue == null) {
this.previousValue = new ArrayList<>();
}
@@ -86,7 +86,7 @@ public AddChannelRolesChangeBuilder plusPreviousValue(
*/
public AddChannelRolesChangeBuilder nextValue(
- final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
return this;
}
@@ -98,7 +98,7 @@ public AddChannelRolesChangeBuilder nextValue(
*/
public AddChannelRolesChangeBuilder nextValue(
- final java.util.List nextValue) {
+ final java.util.List nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -110,7 +110,7 @@ public AddChannelRolesChangeBuilder nextValue(
*/
public AddChannelRolesChangeBuilder plusNextValue(
- final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
if (this.nextValue == null) {
this.nextValue = new ArrayList<>();
}
@@ -132,7 +132,7 @@ public String getChange() {
* @return previousValue
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -141,7 +141,7 @@ public java.util.List getPr
* @return nextValue
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java
index 002aa0cbd7d..eddd678de1a 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeImpl.java
@@ -26,17 +26,17 @@ public class AddChannelRolesChangeImpl implements AddChannelRolesChange, ModelBa
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* create instance with all properties
*/
@JsonCreator
AddChannelRolesChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final java.util.List previousValue,
- @JsonProperty("nextValue") final java.util.List nextValue) {
+ @JsonProperty("previousValue") final java.util.List previousValue,
+ @JsonProperty("nextValue") final java.util.List nextValue) {
this.change = change;
this.previousValue = previousValue;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value before the change.
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public java.util.List getPr
* Value after the change.
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
@@ -86,20 +86,20 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
}
public void setPreviousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
}
- public void setNextValue(final java.util.List nextValue) {
+ public void setNextValue(final java.util.List nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java
index 1d3a4b24ff5..ed85f472d43 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChange.java
@@ -9,7 +9,7 @@
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.change_value.LocalizedEnumValue;
+import com.commercetools.history.models.common.AttributeLocalizedEnumValue;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -67,7 +67,7 @@ public interface AddLocalizedEnumValueChange extends Change {
@NotNull
@Valid
@JsonProperty("nextValue")
- public LocalizedEnumValue getNextValue();
+ public AttributeLocalizedEnumValue getNextValue();
/**
* Name of the updated FieldDefinition; only present on changes to Types.
@@ -97,7 +97,7 @@ public interface AddLocalizedEnumValueChange extends Change {
* @param nextValue value to be set
*/
- public void setNextValue(final LocalizedEnumValue nextValue);
+ public void setNextValue(final AttributeLocalizedEnumValue nextValue);
/**
* Name of the updated FieldDefinition; only present on changes to Types.
@@ -148,7 +148,7 @@ public static AddLocalizedEnumValueChange deepCopy(@Nullable final AddLocalizedE
AddLocalizedEnumValueChangeImpl instance = new AddLocalizedEnumValueChangeImpl();
instance.setChange(template.getChange());
instance.setNextValue(
- com.commercetools.history.models.change_value.LocalizedEnumValue.deepCopy(template.getNextValue()));
+ com.commercetools.history.models.common.AttributeLocalizedEnumValue.deepCopy(template.getNextValue()));
instance.setFieldName(template.getFieldName());
instance.setAttributeName(template.getAttributeName());
return instance;
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java
index f09217eafaa..fa32ee5d186 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeBuilder.java
@@ -27,7 +27,7 @@ public class AddLocalizedEnumValueChangeBuilder implements Builder builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.change_value.LocalizedEnumValueBuilder.of())
+ Function builder) {
+ this.nextValue = builder.apply(com.commercetools.history.models.common.AttributeLocalizedEnumValueBuilder.of())
.build();
return this;
}
@@ -64,8 +64,8 @@ public AddLocalizedEnumValueChangeBuilder nextValue(
*/
public AddLocalizedEnumValueChangeBuilder withNextValue(
- Function builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.change_value.LocalizedEnumValueBuilder.of());
+ Function builder) {
+ this.nextValue = builder.apply(com.commercetools.history.models.common.AttributeLocalizedEnumValueBuilder.of());
return this;
}
@@ -76,7 +76,7 @@ public AddLocalizedEnumValueChangeBuilder withNextValue(
*/
public AddLocalizedEnumValueChangeBuilder nextValue(
- final com.commercetools.history.models.change_value.LocalizedEnumValue nextValue) {
+ final com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -117,7 +117,7 @@ public String getChange() {
* @return nextValue
*/
- public com.commercetools.history.models.change_value.LocalizedEnumValue getNextValue() {
+ public com.commercetools.history.models.common.AttributeLocalizedEnumValue getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java
index 2758594b16b..c52b6c830dd 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeImpl.java
@@ -30,7 +30,7 @@ public class AddLocalizedEnumValueChangeImpl implements AddLocalizedEnumValueCha
private String change;
- private com.commercetools.history.models.change_value.LocalizedEnumValue nextValue;
+ private com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue;
private String fieldName;
@@ -41,7 +41,7 @@ public class AddLocalizedEnumValueChangeImpl implements AddLocalizedEnumValueCha
*/
@JsonCreator
AddLocalizedEnumValueChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("nextValue") final com.commercetools.history.models.change_value.LocalizedEnumValue nextValue,
+ @JsonProperty("nextValue") final com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue,
@JsonProperty("fieldName") final String fieldName,
@JsonProperty("attributeName") final String attributeName) {
this.change = change;
@@ -78,7 +78,7 @@ public String getChange() {
* Value after the change.
*/
- public com.commercetools.history.models.change_value.LocalizedEnumValue getNextValue() {
+ public com.commercetools.history.models.common.AttributeLocalizedEnumValue getNextValue() {
return this.nextValue;
}
@@ -102,7 +102,7 @@ public void setChange(final String change) {
this.change = change;
}
- public void setNextValue(final com.commercetools.history.models.change_value.LocalizedEnumValue nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.AttributeLocalizedEnumValue nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java
index 5f2068f7f15..45fb1e269e4 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChange.java
@@ -24,7 +24,6 @@
*
* AddLocationChange addLocationChange = AddLocationChange.builder()
* .change("{change}")
- * .previousValue(previousValueBuilder -> previousValueBuilder)
* .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
@@ -55,15 +54,6 @@ public interface AddLocationChange extends Change {
@JsonProperty("change")
public String getChange();
- /**
- * Value before the change.
- * @return previousValue
- */
- @NotNull
- @Valid
- @JsonProperty("previousValue")
- public Location getPreviousValue();
-
/**
* Value after the change.
* @return nextValue
@@ -80,13 +70,6 @@ public interface AddLocationChange extends Change {
public void setChange(final String change);
- /**
- * Value before the change.
- * @param previousValue value to be set
- */
-
- public void setPreviousValue(final Location previousValue);
-
/**
* Value after the change.
* @param nextValue value to be set
@@ -110,7 +93,6 @@ public static AddLocationChange of() {
public static AddLocationChange of(final AddLocationChange template) {
AddLocationChangeImpl instance = new AddLocationChangeImpl();
instance.setChange(template.getChange());
- instance.setPreviousValue(template.getPreviousValue());
instance.setNextValue(template.getNextValue());
return instance;
}
@@ -127,8 +109,6 @@ public static AddLocationChange deepCopy(@Nullable final AddLocationChange templ
}
AddLocationChangeImpl instance = new AddLocationChangeImpl();
instance.setChange(template.getChange());
- instance.setPreviousValue(
- com.commercetools.history.models.common.Location.deepCopy(template.getPreviousValue()));
instance.setNextValue(com.commercetools.history.models.common.Location.deepCopy(template.getNextValue()));
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java
index e4cf396cc8b..b54f177ab09 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeBuilder.java
@@ -15,7 +15,6 @@
*
* AddLocationChange addLocationChange = AddLocationChange.builder()
* .change("{change}")
- * .previousValue(previousValueBuilder -> previousValueBuilder)
* .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
@@ -26,8 +25,6 @@ public class AddLocationChangeBuilder implements Builder {
private String change;
- private com.commercetools.history.models.common.Location previousValue;
-
private com.commercetools.history.models.common.Location nextValue;
/**
@@ -41,42 +38,6 @@ public AddLocationChangeBuilder change(final String change) {
return this;
}
- /**
- * Value before the change.
- * @param builder function to build the previousValue value
- * @return Builder
- */
-
- public AddLocationChangeBuilder previousValue(
- Function builder) {
- this.previousValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of()).build();
- return this;
- }
-
- /**
- * Value before the change.
- * @param builder function to build the previousValue value
- * @return Builder
- */
-
- public AddLocationChangeBuilder withPreviousValue(
- Function builder) {
- this.previousValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of());
- return this;
- }
-
- /**
- * Value before the change.
- * @param previousValue value to be set
- * @return Builder
- */
-
- public AddLocationChangeBuilder previousValue(
- final com.commercetools.history.models.common.Location previousValue) {
- this.previousValue = previousValue;
- return this;
- }
-
/**
* Value after the change.
* @param builder function to build the nextValue value
@@ -121,15 +82,6 @@ public String getChange() {
return this.change;
}
- /**
- * Value before the change.
- * @return previousValue
- */
-
- public com.commercetools.history.models.common.Location getPreviousValue() {
- return this.previousValue;
- }
-
/**
* Value after the change.
* @return nextValue
@@ -145,9 +97,8 @@ public com.commercetools.history.models.common.Location getNextValue() {
*/
public AddLocationChange build() {
Objects.requireNonNull(change, AddLocationChange.class + ": change is missing");
- Objects.requireNonNull(previousValue, AddLocationChange.class + ": previousValue is missing");
Objects.requireNonNull(nextValue, AddLocationChange.class + ": nextValue is missing");
- return new AddLocationChangeImpl(change, previousValue, nextValue);
+ return new AddLocationChangeImpl(change, nextValue);
}
/**
@@ -155,7 +106,7 @@ public AddLocationChange build() {
* @return AddLocationChange
*/
public AddLocationChange buildUnchecked() {
- return new AddLocationChangeImpl(change, previousValue, nextValue);
+ return new AddLocationChangeImpl(change, nextValue);
}
/**
@@ -174,7 +125,6 @@ public static AddLocationChangeBuilder of() {
public static AddLocationChangeBuilder of(final AddLocationChange template) {
AddLocationChangeBuilder builder = new AddLocationChangeBuilder();
builder.change = template.getChange();
- builder.previousValue = template.getPreviousValue();
builder.nextValue = template.getNextValue();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java
index 7a79c3f1b1b..4b3a12ae471 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddLocationChangeImpl.java
@@ -26,8 +26,6 @@ public class AddLocationChangeImpl implements AddLocationChange, ModelBase {
private String change;
- private com.commercetools.history.models.common.Location previousValue;
-
private com.commercetools.history.models.common.Location nextValue;
/**
@@ -35,10 +33,8 @@ public class AddLocationChangeImpl implements AddLocationChange, ModelBase {
*/
@JsonCreator
AddLocationChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final com.commercetools.history.models.common.Location previousValue,
@JsonProperty("nextValue") final com.commercetools.history.models.common.Location nextValue) {
this.change = change;
- this.previousValue = previousValue;
this.nextValue = nextValue;
this.type = ADD_LOCATION_CHANGE;
}
@@ -66,14 +62,6 @@ public String getChange() {
return this.change;
}
- /**
- * Value before the change.
- */
-
- public com.commercetools.history.models.common.Location getPreviousValue() {
- return this.previousValue;
- }
-
/**
* Value after the change.
*/
@@ -86,10 +74,6 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.Location previousValue) {
- this.previousValue = previousValue;
- }
-
public void setNextValue(final com.commercetools.history.models.common.Location nextValue) {
this.nextValue = nextValue;
}
@@ -106,29 +90,22 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(change, that.change)
- .append(previousValue, that.previousValue)
.append(nextValue, that.nextValue)
.append(type, that.type)
.append(change, that.change)
- .append(previousValue, that.previousValue)
.append(nextValue, that.nextValue)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type)
- .append(change)
- .append(previousValue)
- .append(nextValue)
- .toHashCode();
+ return new HashCodeBuilder(17, 37).append(type).append(change).append(nextValue).toHashCode();
}
@Override
public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("change", change)
- .append("previousValue", previousValue)
.append("nextValue", nextValue)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java
index f92f0f1c210..4d9f231039a 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChange.java
@@ -9,7 +9,7 @@
import javax.validation.Valid;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.change_value.EnumValue;
+import com.commercetools.history.models.common.AttributePlainEnumValue;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -62,7 +62,7 @@ public interface AddPlainEnumValueChange extends Change {
@NotNull
@Valid
@JsonProperty("nextValue")
- public EnumValue getNextValue();
+ public AttributePlainEnumValue getNextValue();
/**
* Name of the updated AttributeDefinition.
@@ -84,7 +84,7 @@ public interface AddPlainEnumValueChange extends Change {
* @param nextValue value to be set
*/
- public void setNextValue(final EnumValue nextValue);
+ public void setNextValue(final AttributePlainEnumValue nextValue);
/**
* Name of the updated AttributeDefinition.
@@ -127,7 +127,7 @@ public static AddPlainEnumValueChange deepCopy(@Nullable final AddPlainEnumValue
AddPlainEnumValueChangeImpl instance = new AddPlainEnumValueChangeImpl();
instance.setChange(template.getChange());
instance.setNextValue(
- com.commercetools.history.models.change_value.EnumValue.deepCopy(template.getNextValue()));
+ com.commercetools.history.models.common.AttributePlainEnumValue.deepCopy(template.getNextValue()));
instance.setAttributeName(template.getAttributeName());
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java
index 8722be97fb5..9db77ba52a4 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeBuilder.java
@@ -26,7 +26,7 @@ public class AddPlainEnumValueChangeBuilder implements Builder builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.change_value.EnumValueBuilder.of()).build();
+ Function builder) {
+ this.nextValue = builder.apply(com.commercetools.history.models.common.AttributePlainEnumValueBuilder.of())
+ .build();
return this;
}
@@ -60,8 +61,8 @@ public AddPlainEnumValueChangeBuilder nextValue(
*/
public AddPlainEnumValueChangeBuilder withNextValue(
- Function builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.change_value.EnumValueBuilder.of());
+ Function builder) {
+ this.nextValue = builder.apply(com.commercetools.history.models.common.AttributePlainEnumValueBuilder.of());
return this;
}
@@ -72,7 +73,7 @@ public AddPlainEnumValueChangeBuilder withNextValue(
*/
public AddPlainEnumValueChangeBuilder nextValue(
- final com.commercetools.history.models.change_value.EnumValue nextValue) {
+ final com.commercetools.history.models.common.AttributePlainEnumValue nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -102,7 +103,7 @@ public String getChange() {
* @return nextValue
*/
- public com.commercetools.history.models.change_value.EnumValue getNextValue() {
+ public com.commercetools.history.models.common.AttributePlainEnumValue getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java
index 0fab6bf2e19..939b2aadc73 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeImpl.java
@@ -26,7 +26,7 @@ public class AddPlainEnumValueChangeImpl implements AddPlainEnumValueChange, Mod
private String change;
- private com.commercetools.history.models.change_value.EnumValue nextValue;
+ private com.commercetools.history.models.common.AttributePlainEnumValue nextValue;
private String attributeName;
@@ -35,7 +35,7 @@ public class AddPlainEnumValueChangeImpl implements AddPlainEnumValueChange, Mod
*/
@JsonCreator
AddPlainEnumValueChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("nextValue") final com.commercetools.history.models.change_value.EnumValue nextValue,
+ @JsonProperty("nextValue") final com.commercetools.history.models.common.AttributePlainEnumValue nextValue,
@JsonProperty("attributeName") final String attributeName) {
this.change = change;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value after the change.
*/
- public com.commercetools.history.models.change_value.EnumValue getNextValue() {
+ public com.commercetools.history.models.common.AttributePlainEnumValue getNextValue() {
return this.nextValue;
}
@@ -86,7 +86,7 @@ public void setChange(final String change) {
this.change = change;
}
- public void setNextValue(final com.commercetools.history.models.change_value.EnumValue nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.AttributePlainEnumValue nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java
index 881c5df356d..fa39a7effa5 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.StateRole;
+import com.commercetools.history.models.common.StateRoleEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -60,7 +60,7 @@ public interface AddStateRolesChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public List getPreviousValue();
+ public List getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface AddStateRolesChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public List getNextValue();
+ public List getNextValue();
/**
* set change
@@ -83,14 +83,14 @@ public interface AddStateRolesChange extends Change {
*/
@JsonIgnore
- public void setPreviousValue(final StateRole... previousValue);
+ public void setPreviousValue(final StateRoleEnum... previousValue);
/**
* Value before the change.
* @param previousValue values to be set
*/
- public void setPreviousValue(final List previousValue);
+ public void setPreviousValue(final List previousValue);
/**
* Value after the change.
@@ -98,14 +98,14 @@ public interface AddStateRolesChange extends Change {
*/
@JsonIgnore
- public void setNextValue(final StateRole... nextValue);
+ public void setNextValue(final StateRoleEnum... nextValue);
/**
* Value after the change.
* @param nextValue values to be set
*/
- public void setNextValue(final List nextValue);
+ public void setNextValue(final List nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java
index f9bd24d6800..218825451fc 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeBuilder.java
@@ -25,9 +25,9 @@ public class AddStateRolesChangeBuilder implements Builder
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* set the value to the change
@@ -47,7 +47,7 @@ public AddStateRolesChangeBuilder change(final String change) {
*/
public AddStateRolesChangeBuilder previousValue(
- final com.commercetools.history.models.common.StateRole... previousValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
return this;
}
@@ -59,7 +59,7 @@ public AddStateRolesChangeBuilder previousValue(
*/
public AddStateRolesChangeBuilder previousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
return this;
}
@@ -71,7 +71,7 @@ public AddStateRolesChangeBuilder previousValue(
*/
public AddStateRolesChangeBuilder plusPreviousValue(
- final com.commercetools.history.models.common.StateRole... previousValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
if (this.previousValue == null) {
this.previousValue = new ArrayList<>();
}
@@ -85,7 +85,8 @@ public AddStateRolesChangeBuilder plusPreviousValue(
* @return Builder
*/
- public AddStateRolesChangeBuilder nextValue(final com.commercetools.history.models.common.StateRole... nextValue) {
+ public AddStateRolesChangeBuilder nextValue(
+ final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
return this;
}
@@ -97,7 +98,7 @@ public AddStateRolesChangeBuilder nextValue(final com.commercetools.history.mode
*/
public AddStateRolesChangeBuilder nextValue(
- final java.util.List nextValue) {
+ final java.util.List nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -109,7 +110,7 @@ public AddStateRolesChangeBuilder nextValue(
*/
public AddStateRolesChangeBuilder plusNextValue(
- final com.commercetools.history.models.common.StateRole... nextValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
if (this.nextValue == null) {
this.nextValue = new ArrayList<>();
}
@@ -131,7 +132,7 @@ public String getChange() {
* @return previousValue
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -140,7 +141,7 @@ public java.util.List getPrev
* @return nextValue
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java
index 180a6eb8436..fa5196d5613 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/AddStateRolesChangeImpl.java
@@ -26,17 +26,17 @@ public class AddStateRolesChangeImpl implements AddStateRolesChange, ModelBase {
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* create instance with all properties
*/
@JsonCreator
AddStateRolesChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final java.util.List previousValue,
- @JsonProperty("nextValue") final java.util.List nextValue) {
+ @JsonProperty("previousValue") final java.util.List previousValue,
+ @JsonProperty("nextValue") final java.util.List nextValue) {
this.change = change;
this.previousValue = previousValue;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value before the change.
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public java.util.List getPrev
* Value after the change.
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
@@ -86,20 +86,20 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.StateRole... previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
}
public void setPreviousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.StateRole... nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
}
- public void setNextValue(final java.util.List nextValue) {
+ public void setNextValue(final java.util.List nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java
index 632b9912bef..cd62449c6de 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/Change.java
@@ -23,7 +23,6 @@
*
* Change change = Change.addAddressChangeBuilder()
* change("{change}")
- * previousValue(previousValueBuilder -> previousValueBuilder)
* nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java
index db643a89b80..a56fcd164cc 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChange.java
@@ -14,11 +14,7 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * Change triggered by the following update actions:
- *
- * - Change Description on Channels.
- * - Change Description on Product Types.
- *
+ * Change triggered by the Change Description update action.
*
*
* Example to create an instance using the builder pattern
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java
index 39363d5c2cf..106a91a0d21 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeDescriptionChangeImpl.java
@@ -17,11 +17,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
/**
- * Change triggered by the following update actions:
- *
- * - Change Description on Channels.
- * - Change Description on Product Types.
- *
+ * Change triggered by the Change Description update action.
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ChangeDescriptionChangeImpl implements ChangeDescriptionChange, ModelBase {
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java
index dd5c829de54..0e8b4f78d6a 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChange.java
@@ -16,11 +16,7 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * Change triggered by the following update actions:
- *
- * - Change Description on Product Types.
- * - Change Description on Channels.
- *
+ * Change triggered by the Change Description update action.
*
*
* Example to create an instance using the builder pattern
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java
index d2b0e8e0408..36b04f552a5 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedDescriptionChangeImpl.java
@@ -17,11 +17,7 @@
import org.apache.commons.lang3.builder.ToStringStyle;
/**
- * Change triggered by the following update actions:
- *
- * - Change Description on Product Types.
- * - Change Description on Channels.
- *
+ * Change triggered by the Change Description update action.
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ChangeLocalizedDescriptionChangeImpl implements ChangeLocalizedDescriptionChange, ModelBase {
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java
index aced0b6d76b..9c29e88ed83 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChange.java
@@ -21,14 +21,10 @@
* Change Name on Cart Discounts.
* Change Name on Categories.
* Change Name on Channels.
- * Change Name on Customer Groups.
* Change Name on Products.
* Change Name on Product Discounts.
* Change Name on Product Selections.
- * Change Name on Product Types.
* Change Name on Shopping Lists.
- * Change Name on Tax Categories.
- * Change Name on Types.
* Change Name on Zones.
*
*
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java
index ccb5b2d5efb..8713edf244b 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeLocalizedNameChangeImpl.java
@@ -22,14 +22,10 @@
* Change Name on Cart Discounts.
* Change Name on Categories.
* Change Name on Channels.
- * Change Name on Customer Groups.
* Change Name on Products.
* Change Name on Product Discounts.
* Change Name on Product Selections.
- * Change Name on Product Types.
* Change Name on Shopping Lists.
- * Change Name on Tax Categories.
- * Change Name on Types.
* Change Name on Zones.
*
*/
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java
index da84ea1aac6..ee78c9991eb 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChange.java
@@ -16,17 +16,9 @@
/**
* Change triggered by the following update actions:
*
- * - Change Name on Cart Discounts.
- * - Change Name on Categories.
- * - Change Name on Channels.
* - Change Name on Customer Groups.
- * - Change Name on Products.
- * - Change Name on Product Discounts.
- * - Change Name on Product Selections.
* - Change Name on Product Types.
- * - Change Name on Shopping Lists.
* - Change Name on Tax Categories.
- * - Change Name on Types.
* - Change Name on Zones.
*
*
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java
index ce09de89243..8912e912335 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeNameChangeImpl.java
@@ -19,17 +19,9 @@
/**
* Change triggered by the following update actions:
*
- * - Change Name on Cart Discounts.
- * - Change Name on Categories.
- * - Change Name on Channels.
* - Change Name on Customer Groups.
- * - Change Name on Products.
- * - Change Name on Product Discounts.
- * - Change Name on Product Selections.
* - Change Name on Product Types.
- * - Change Name on Shopping Lists.
* - Change Name on Tax Categories.
- * - Change Name on Types.
* - Change Name on Zones.
*
*/
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java
index dd58a4f834a..be7159e17d5 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.StateType;
+import com.commercetools.history.models.common.StateTypeEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -23,8 +23,8 @@
*
* ChangeStateTypeChange changeStateTypeChange = ChangeStateTypeChange.builder()
* .change("{change}")
- * .previousValue(StateType.ORDER_STATE)
- * .nextValue(StateType.ORDER_STATE)
+ * .previousValue(StateTypeEnum.ORDER_STATE)
+ * .nextValue(StateTypeEnum.ORDER_STATE)
* .build()
*
*
@@ -60,7 +60,7 @@ public interface ChangeStateTypeChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public StateType getPreviousValue();
+ public StateTypeEnum getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface ChangeStateTypeChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public StateType getNextValue();
+ public StateTypeEnum getNextValue();
/**
* set change
@@ -82,14 +82,14 @@ public interface ChangeStateTypeChange extends Change {
* @param previousValue value to be set
*/
- public void setPreviousValue(final StateType previousValue);
+ public void setPreviousValue(final StateTypeEnum previousValue);
/**
* Value after the change.
* @param nextValue value to be set
*/
- public void setNextValue(final StateType nextValue);
+ public void setNextValue(final StateTypeEnum nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java
index 423499157d2..252fd2ed878 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeBuilder.java
@@ -14,8 +14,8 @@
*
* ChangeStateTypeChange changeStateTypeChange = ChangeStateTypeChange.builder()
* .change("{change}")
- * .previousValue(StateType.ORDER_STATE)
- * .nextValue(StateType.ORDER_STATE)
+ * .previousValue(StateTypeEnum.ORDER_STATE)
+ * .nextValue(StateTypeEnum.ORDER_STATE)
* .build()
*
*
@@ -25,9 +25,9 @@ public class ChangeStateTypeChangeBuilder implements BuilderValue before the change.
*/
- public com.commercetools.history.models.common.StateType getPreviousValue() {
+ public com.commercetools.history.models.common.StateTypeEnum getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public com.commercetools.history.models.common.StateType getPreviousValue() {
* Value after the change.
*/
- public com.commercetools.history.models.common.StateType getNextValue() {
+ public com.commercetools.history.models.common.StateTypeEnum getNextValue() {
return this.nextValue;
}
@@ -86,11 +86,11 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.StateType previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.StateTypeEnum previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.StateType nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.StateTypeEnum nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java
index 53005f40964..6b6160d4ddd 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.ChannelRole;
+import com.commercetools.history.models.common.ChannelRoleEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -60,7 +60,7 @@ public interface RemoveChannelRolesChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public List getPreviousValue();
+ public List getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface RemoveChannelRolesChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public List getNextValue();
+ public List getNextValue();
/**
* set change
@@ -83,14 +83,14 @@ public interface RemoveChannelRolesChange extends Change {
*/
@JsonIgnore
- public void setPreviousValue(final ChannelRole... previousValue);
+ public void setPreviousValue(final ChannelRoleEnum... previousValue);
/**
* Value before the change.
* @param previousValue values to be set
*/
- public void setPreviousValue(final List previousValue);
+ public void setPreviousValue(final List previousValue);
/**
* Value after the change.
@@ -98,14 +98,14 @@ public interface RemoveChannelRolesChange extends Change {
*/
@JsonIgnore
- public void setNextValue(final ChannelRole... nextValue);
+ public void setNextValue(final ChannelRoleEnum... nextValue);
/**
* Value after the change.
* @param nextValue values to be set
*/
- public void setNextValue(final List nextValue);
+ public void setNextValue(final List nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java
index 10b13759b62..ba8207b7a5c 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeBuilder.java
@@ -25,9 +25,9 @@ public class RemoveChannelRolesChangeBuilder implements Builder previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* set the value to the change
@@ -47,7 +47,7 @@ public RemoveChannelRolesChangeBuilder change(final String change) {
*/
public RemoveChannelRolesChangeBuilder previousValue(
- final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
return this;
}
@@ -59,7 +59,7 @@ public RemoveChannelRolesChangeBuilder previousValue(
*/
public RemoveChannelRolesChangeBuilder previousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
return this;
}
@@ -71,7 +71,7 @@ public RemoveChannelRolesChangeBuilder previousValue(
*/
public RemoveChannelRolesChangeBuilder plusPreviousValue(
- final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
if (this.previousValue == null) {
this.previousValue = new ArrayList<>();
}
@@ -86,7 +86,7 @@ public RemoveChannelRolesChangeBuilder plusPreviousValue(
*/
public RemoveChannelRolesChangeBuilder nextValue(
- final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
return this;
}
@@ -98,7 +98,7 @@ public RemoveChannelRolesChangeBuilder nextValue(
*/
public RemoveChannelRolesChangeBuilder nextValue(
- final java.util.List nextValue) {
+ final java.util.List nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -110,7 +110,7 @@ public RemoveChannelRolesChangeBuilder nextValue(
*/
public RemoveChannelRolesChangeBuilder plusNextValue(
- final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
if (this.nextValue == null) {
this.nextValue = new ArrayList<>();
}
@@ -132,7 +132,7 @@ public String getChange() {
* @return previousValue
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -141,7 +141,7 @@ public java.util.List getPr
* @return nextValue
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java
index 8f9157738ad..4483c1bd0f3 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeImpl.java
@@ -26,17 +26,17 @@ public class RemoveChannelRolesChangeImpl implements RemoveChannelRolesChange, M
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* create instance with all properties
*/
@JsonCreator
RemoveChannelRolesChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final java.util.List previousValue,
- @JsonProperty("nextValue") final java.util.List nextValue) {
+ @JsonProperty("previousValue") final java.util.List previousValue,
+ @JsonProperty("nextValue") final java.util.List nextValue) {
this.change = change;
this.previousValue = previousValue;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value before the change.
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public java.util.List getPr
* Value after the change.
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
@@ -86,20 +86,20 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
}
public void setPreviousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
}
- public void setNextValue(final java.util.List nextValue) {
+ public void setNextValue(final java.util.List nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java
index 99e80d363cb..691f0334d2f 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChange.java
@@ -25,7 +25,6 @@
* RemoveLocationChange removeLocationChange = RemoveLocationChange.builder()
* .change("{change}")
* .previousValue(previousValueBuilder -> previousValueBuilder)
- * .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
*
@@ -64,15 +63,6 @@ public interface RemoveLocationChange extends Change {
@JsonProperty("previousValue")
public Location getPreviousValue();
- /**
- * Value after the change.
- * @return nextValue
- */
- @NotNull
- @Valid
- @JsonProperty("nextValue")
- public Location getNextValue();
-
/**
* set change
* @param change value to be set
@@ -87,13 +77,6 @@ public interface RemoveLocationChange extends Change {
public void setPreviousValue(final Location previousValue);
- /**
- * Value after the change.
- * @param nextValue value to be set
- */
-
- public void setNextValue(final Location nextValue);
-
/**
* factory method
* @return instance of RemoveLocationChange
@@ -111,7 +94,6 @@ public static RemoveLocationChange of(final RemoveLocationChange template) {
RemoveLocationChangeImpl instance = new RemoveLocationChangeImpl();
instance.setChange(template.getChange());
instance.setPreviousValue(template.getPreviousValue());
- instance.setNextValue(template.getNextValue());
return instance;
}
@@ -129,7 +111,6 @@ public static RemoveLocationChange deepCopy(@Nullable final RemoveLocationChange
instance.setChange(template.getChange());
instance.setPreviousValue(
com.commercetools.history.models.common.Location.deepCopy(template.getPreviousValue()));
- instance.setNextValue(com.commercetools.history.models.common.Location.deepCopy(template.getNextValue()));
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java
index 1ffeb9facc0..8063a391b0a 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeBuilder.java
@@ -16,7 +16,6 @@
* RemoveLocationChange removeLocationChange = RemoveLocationChange.builder()
* .change("{change}")
* .previousValue(previousValueBuilder -> previousValueBuilder)
- * .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
*
@@ -28,8 +27,6 @@ public class RemoveLocationChangeBuilder implements BuilderValue after the change.
- * @param builder function to build the nextValue value
- * @return Builder
- */
-
- public RemoveLocationChangeBuilder nextValue(
- Function builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of()).build();
- return this;
- }
-
- /**
- * Value after the change.
- * @param builder function to build the nextValue value
- * @return Builder
- */
-
- public RemoveLocationChangeBuilder withNextValue(
- Function builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.common.LocationBuilder.of());
- return this;
- }
-
- /**
- * Value after the change.
- * @param nextValue value to be set
- * @return Builder
- */
-
- public RemoveLocationChangeBuilder nextValue(final com.commercetools.history.models.common.Location nextValue) {
- this.nextValue = nextValue;
- return this;
- }
-
/**
* value of change}
* @return change
@@ -130,15 +92,6 @@ public com.commercetools.history.models.common.Location getPreviousValue() {
return this.previousValue;
}
- /**
- * Value after the change.
- * @return nextValue
- */
-
- public com.commercetools.history.models.common.Location getNextValue() {
- return this.nextValue;
- }
-
/**
* builds RemoveLocationChange with checking for non-null required values
* @return RemoveLocationChange
@@ -146,8 +99,7 @@ public com.commercetools.history.models.common.Location getNextValue() {
public RemoveLocationChange build() {
Objects.requireNonNull(change, RemoveLocationChange.class + ": change is missing");
Objects.requireNonNull(previousValue, RemoveLocationChange.class + ": previousValue is missing");
- Objects.requireNonNull(nextValue, RemoveLocationChange.class + ": nextValue is missing");
- return new RemoveLocationChangeImpl(change, previousValue, nextValue);
+ return new RemoveLocationChangeImpl(change, previousValue);
}
/**
@@ -155,7 +107,7 @@ public RemoveLocationChange build() {
* @return RemoveLocationChange
*/
public RemoveLocationChange buildUnchecked() {
- return new RemoveLocationChangeImpl(change, previousValue, nextValue);
+ return new RemoveLocationChangeImpl(change, previousValue);
}
/**
@@ -175,7 +127,6 @@ public static RemoveLocationChangeBuilder of(final RemoveLocationChange template
RemoveLocationChangeBuilder builder = new RemoveLocationChangeBuilder();
builder.change = template.getChange();
builder.previousValue = template.getPreviousValue();
- builder.nextValue = template.getNextValue();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java
index 11126cb352d..4befde48988 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveLocationChangeImpl.java
@@ -28,18 +28,14 @@ public class RemoveLocationChangeImpl implements RemoveLocationChange, ModelBase
private com.commercetools.history.models.common.Location previousValue;
- private com.commercetools.history.models.common.Location nextValue;
-
/**
* create instance with all properties
*/
@JsonCreator
RemoveLocationChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final com.commercetools.history.models.common.Location previousValue,
- @JsonProperty("nextValue") final com.commercetools.history.models.common.Location nextValue) {
+ @JsonProperty("previousValue") final com.commercetools.history.models.common.Location previousValue) {
this.change = change;
this.previousValue = previousValue;
- this.nextValue = nextValue;
this.type = REMOVE_LOCATION_CHANGE;
}
@@ -74,14 +70,6 @@ public com.commercetools.history.models.common.Location getPreviousValue() {
return this.previousValue;
}
- /**
- * Value after the change.
- */
-
- public com.commercetools.history.models.common.Location getNextValue() {
- return this.nextValue;
- }
-
public void setChange(final String change) {
this.change = change;
}
@@ -90,10 +78,6 @@ public void setPreviousValue(final com.commercetools.history.models.common.Locat
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.Location nextValue) {
- this.nextValue = nextValue;
- }
-
@Override
public boolean equals(Object o) {
if (this == o)
@@ -107,21 +91,15 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(change, that.change)
.append(previousValue, that.previousValue)
- .append(nextValue, that.nextValue)
.append(type, that.type)
.append(change, that.change)
.append(previousValue, that.previousValue)
- .append(nextValue, that.nextValue)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type)
- .append(change)
- .append(previousValue)
- .append(nextValue)
- .toHashCode();
+ return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode();
}
@Override
@@ -129,7 +107,6 @@ public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("change", change)
.append("previousValue", previousValue)
- .append("nextValue", nextValue)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java
index 3f8b9e9fbc0..ea19a4642ed 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.StateRole;
+import com.commercetools.history.models.common.StateRoleEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -60,7 +60,7 @@ public interface RemoveStateRolesChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public List getPreviousValue();
+ public List getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface RemoveStateRolesChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public List getNextValue();
+ public List getNextValue();
/**
* set change
@@ -83,14 +83,14 @@ public interface RemoveStateRolesChange extends Change {
*/
@JsonIgnore
- public void setPreviousValue(final StateRole... previousValue);
+ public void setPreviousValue(final StateRoleEnum... previousValue);
/**
* Value before the change.
* @param previousValue values to be set
*/
- public void setPreviousValue(final List previousValue);
+ public void setPreviousValue(final List previousValue);
/**
* Value after the change.
@@ -98,14 +98,14 @@ public interface RemoveStateRolesChange extends Change {
*/
@JsonIgnore
- public void setNextValue(final StateRole... nextValue);
+ public void setNextValue(final StateRoleEnum... nextValue);
/**
* Value after the change.
* @param nextValue values to be set
*/
- public void setNextValue(final List nextValue);
+ public void setNextValue(final List nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java
index 5a6d4ecccc6..ad3616d2f33 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeBuilder.java
@@ -25,9 +25,9 @@ public class RemoveStateRolesChangeBuilder implements Builder previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* set the value to the change
@@ -47,7 +47,7 @@ public RemoveStateRolesChangeBuilder change(final String change) {
*/
public RemoveStateRolesChangeBuilder previousValue(
- final com.commercetools.history.models.common.StateRole... previousValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
return this;
}
@@ -59,7 +59,7 @@ public RemoveStateRolesChangeBuilder previousValue(
*/
public RemoveStateRolesChangeBuilder previousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
return this;
}
@@ -71,7 +71,7 @@ public RemoveStateRolesChangeBuilder previousValue(
*/
public RemoveStateRolesChangeBuilder plusPreviousValue(
- final com.commercetools.history.models.common.StateRole... previousValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
if (this.previousValue == null) {
this.previousValue = new ArrayList<>();
}
@@ -86,7 +86,7 @@ public RemoveStateRolesChangeBuilder plusPreviousValue(
*/
public RemoveStateRolesChangeBuilder nextValue(
- final com.commercetools.history.models.common.StateRole... nextValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
return this;
}
@@ -98,7 +98,7 @@ public RemoveStateRolesChangeBuilder nextValue(
*/
public RemoveStateRolesChangeBuilder nextValue(
- final java.util.List nextValue) {
+ final java.util.List nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -110,7 +110,7 @@ public RemoveStateRolesChangeBuilder nextValue(
*/
public RemoveStateRolesChangeBuilder plusNextValue(
- final com.commercetools.history.models.common.StateRole... nextValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
if (this.nextValue == null) {
this.nextValue = new ArrayList<>();
}
@@ -132,7 +132,7 @@ public String getChange() {
* @return previousValue
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -141,7 +141,7 @@ public java.util.List getPrev
* @return nextValue
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java
index d74e61fa8ad..9e7a5b2e070 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeImpl.java
@@ -26,17 +26,17 @@ public class RemoveStateRolesChangeImpl implements RemoveStateRolesChange, Model
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* create instance with all properties
*/
@JsonCreator
RemoveStateRolesChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final java.util.List previousValue,
- @JsonProperty("nextValue") final java.util.List nextValue) {
+ @JsonProperty("previousValue") final java.util.List previousValue,
+ @JsonProperty("nextValue") final java.util.List nextValue) {
this.change = change;
this.previousValue = previousValue;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value before the change.
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public java.util.List getPrev
* Value after the change.
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
@@ -86,20 +86,20 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.StateRole... previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
}
public void setPreviousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.StateRole... nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
}
- public void setNextValue(final java.util.List nextValue) {
+ public void setNextValue(final java.util.List nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java
index fe0bee4150a..19f2b5cd221 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChange.java
@@ -25,7 +25,6 @@
* RemoveTaxRateChange removeTaxRateChange = RemoveTaxRateChange.builder()
* .change("{change}")
* .previousValue(previousValueBuilder -> previousValueBuilder)
- * .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
*
@@ -64,15 +63,6 @@ public interface RemoveTaxRateChange extends Change {
@JsonProperty("previousValue")
public TaxRate getPreviousValue();
- /**
- * Value after the change.
- * @return nextValue
- */
- @NotNull
- @Valid
- @JsonProperty("nextValue")
- public TaxRate getNextValue();
-
/**
* set change
* @param change value to be set
@@ -87,13 +77,6 @@ public interface RemoveTaxRateChange extends Change {
public void setPreviousValue(final TaxRate previousValue);
- /**
- * Value after the change.
- * @param nextValue value to be set
- */
-
- public void setNextValue(final TaxRate nextValue);
-
/**
* factory method
* @return instance of RemoveTaxRateChange
@@ -111,7 +94,6 @@ public static RemoveTaxRateChange of(final RemoveTaxRateChange template) {
RemoveTaxRateChangeImpl instance = new RemoveTaxRateChangeImpl();
instance.setChange(template.getChange());
instance.setPreviousValue(template.getPreviousValue());
- instance.setNextValue(template.getNextValue());
return instance;
}
@@ -129,7 +111,6 @@ public static RemoveTaxRateChange deepCopy(@Nullable final RemoveTaxRateChange t
instance.setChange(template.getChange());
instance.setPreviousValue(
com.commercetools.history.models.common.TaxRate.deepCopy(template.getPreviousValue()));
- instance.setNextValue(com.commercetools.history.models.common.TaxRate.deepCopy(template.getNextValue()));
return instance;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java
index c34ef62c995..12d09eb4781 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeBuilder.java
@@ -16,7 +16,6 @@
* RemoveTaxRateChange removeTaxRateChange = RemoveTaxRateChange.builder()
* .change("{change}")
* .previousValue(previousValueBuilder -> previousValueBuilder)
- * .nextValue(nextValueBuilder -> nextValueBuilder)
* .build()
*
*
@@ -28,8 +27,6 @@ public class RemoveTaxRateChangeBuilder implements Builder
private com.commercetools.history.models.common.TaxRate previousValue;
- private com.commercetools.history.models.common.TaxRate nextValue;
-
/**
* set the value to the change
* @param change value to be set
@@ -77,41 +74,6 @@ public RemoveTaxRateChangeBuilder previousValue(
return this;
}
- /**
- * Value after the change.
- * @param builder function to build the nextValue value
- * @return Builder
- */
-
- public RemoveTaxRateChangeBuilder nextValue(
- Function builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.common.TaxRateBuilder.of()).build();
- return this;
- }
-
- /**
- * Value after the change.
- * @param builder function to build the nextValue value
- * @return Builder
- */
-
- public RemoveTaxRateChangeBuilder withNextValue(
- Function builder) {
- this.nextValue = builder.apply(com.commercetools.history.models.common.TaxRateBuilder.of());
- return this;
- }
-
- /**
- * Value after the change.
- * @param nextValue value to be set
- * @return Builder
- */
-
- public RemoveTaxRateChangeBuilder nextValue(final com.commercetools.history.models.common.TaxRate nextValue) {
- this.nextValue = nextValue;
- return this;
- }
-
/**
* value of change}
* @return change
@@ -130,15 +92,6 @@ public com.commercetools.history.models.common.TaxRate getPreviousValue() {
return this.previousValue;
}
- /**
- * Value after the change.
- * @return nextValue
- */
-
- public com.commercetools.history.models.common.TaxRate getNextValue() {
- return this.nextValue;
- }
-
/**
* builds RemoveTaxRateChange with checking for non-null required values
* @return RemoveTaxRateChange
@@ -146,8 +99,7 @@ public com.commercetools.history.models.common.TaxRate getNextValue() {
public RemoveTaxRateChange build() {
Objects.requireNonNull(change, RemoveTaxRateChange.class + ": change is missing");
Objects.requireNonNull(previousValue, RemoveTaxRateChange.class + ": previousValue is missing");
- Objects.requireNonNull(nextValue, RemoveTaxRateChange.class + ": nextValue is missing");
- return new RemoveTaxRateChangeImpl(change, previousValue, nextValue);
+ return new RemoveTaxRateChangeImpl(change, previousValue);
}
/**
@@ -155,7 +107,7 @@ public RemoveTaxRateChange build() {
* @return RemoveTaxRateChange
*/
public RemoveTaxRateChange buildUnchecked() {
- return new RemoveTaxRateChangeImpl(change, previousValue, nextValue);
+ return new RemoveTaxRateChangeImpl(change, previousValue);
}
/**
@@ -175,7 +127,6 @@ public static RemoveTaxRateChangeBuilder of(final RemoveTaxRateChange template)
RemoveTaxRateChangeBuilder builder = new RemoveTaxRateChangeBuilder();
builder.change = template.getChange();
builder.previousValue = template.getPreviousValue();
- builder.nextValue = template.getNextValue();
return builder;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java
index 41873ae49fa..3f41264b24b 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeImpl.java
@@ -28,18 +28,14 @@ public class RemoveTaxRateChangeImpl implements RemoveTaxRateChange, ModelBase {
private com.commercetools.history.models.common.TaxRate previousValue;
- private com.commercetools.history.models.common.TaxRate nextValue;
-
/**
* create instance with all properties
*/
@JsonCreator
RemoveTaxRateChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final com.commercetools.history.models.common.TaxRate previousValue,
- @JsonProperty("nextValue") final com.commercetools.history.models.common.TaxRate nextValue) {
+ @JsonProperty("previousValue") final com.commercetools.history.models.common.TaxRate previousValue) {
this.change = change;
this.previousValue = previousValue;
- this.nextValue = nextValue;
this.type = REMOVE_TAX_RATE_CHANGE;
}
@@ -74,14 +70,6 @@ public com.commercetools.history.models.common.TaxRate getPreviousValue() {
return this.previousValue;
}
- /**
- * Value after the change.
- */
-
- public com.commercetools.history.models.common.TaxRate getNextValue() {
- return this.nextValue;
- }
-
public void setChange(final String change) {
this.change = change;
}
@@ -90,10 +78,6 @@ public void setPreviousValue(final com.commercetools.history.models.common.TaxRa
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.TaxRate nextValue) {
- this.nextValue = nextValue;
- }
-
@Override
public boolean equals(Object o) {
if (this == o)
@@ -107,21 +91,15 @@ public boolean equals(Object o) {
return new EqualsBuilder().append(type, that.type)
.append(change, that.change)
.append(previousValue, that.previousValue)
- .append(nextValue, that.nextValue)
.append(type, that.type)
.append(change, that.change)
.append(previousValue, that.previousValue)
- .append(nextValue, that.nextValue)
.isEquals();
}
@Override
public int hashCode() {
- return new HashCodeBuilder(17, 37).append(type)
- .append(change)
- .append(previousValue)
- .append(nextValue)
- .toHashCode();
+ return new HashCodeBuilder(17, 37).append(type).append(change).append(previousValue).toHashCode();
}
@Override
@@ -129,7 +107,6 @@ public String toString() {
return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("type", type)
.append("change", change)
.append("previousValue", previousValue)
- .append("nextValue", nextValue)
.build();
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java
index 88e65c08c5f..381ba0a49be 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.ChannelRole;
+import com.commercetools.history.models.common.ChannelRoleEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -60,7 +60,7 @@ public interface SetChannelRolesChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public List getPreviousValue();
+ public List getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface SetChannelRolesChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public List getNextValue();
+ public List getNextValue();
/**
* set change
@@ -83,14 +83,14 @@ public interface SetChannelRolesChange extends Change {
*/
@JsonIgnore
- public void setPreviousValue(final ChannelRole... previousValue);
+ public void setPreviousValue(final ChannelRoleEnum... previousValue);
/**
* Value before the change.
* @param previousValue values to be set
*/
- public void setPreviousValue(final List previousValue);
+ public void setPreviousValue(final List previousValue);
/**
* Value after the change.
@@ -98,14 +98,14 @@ public interface SetChannelRolesChange extends Change {
*/
@JsonIgnore
- public void setNextValue(final ChannelRole... nextValue);
+ public void setNextValue(final ChannelRoleEnum... nextValue);
/**
* Value after the change.
* @param nextValue values to be set
*/
- public void setNextValue(final List nextValue);
+ public void setNextValue(final List nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java
index 65e9bb03b9e..9f26f6605a9 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeBuilder.java
@@ -25,9 +25,9 @@ public class SetChannelRolesChangeBuilder implements Builder previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* set the value to the change
@@ -47,7 +47,7 @@ public SetChannelRolesChangeBuilder change(final String change) {
*/
public SetChannelRolesChangeBuilder previousValue(
- final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
return this;
}
@@ -59,7 +59,7 @@ public SetChannelRolesChangeBuilder previousValue(
*/
public SetChannelRolesChangeBuilder previousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
return this;
}
@@ -71,7 +71,7 @@ public SetChannelRolesChangeBuilder previousValue(
*/
public SetChannelRolesChangeBuilder plusPreviousValue(
- final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
if (this.previousValue == null) {
this.previousValue = new ArrayList<>();
}
@@ -86,7 +86,7 @@ public SetChannelRolesChangeBuilder plusPreviousValue(
*/
public SetChannelRolesChangeBuilder nextValue(
- final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
return this;
}
@@ -98,7 +98,7 @@ public SetChannelRolesChangeBuilder nextValue(
*/
public SetChannelRolesChangeBuilder nextValue(
- final java.util.List nextValue) {
+ final java.util.List nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -110,7 +110,7 @@ public SetChannelRolesChangeBuilder nextValue(
*/
public SetChannelRolesChangeBuilder plusNextValue(
- final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
if (this.nextValue == null) {
this.nextValue = new ArrayList<>();
}
@@ -132,7 +132,7 @@ public String getChange() {
* @return previousValue
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -141,7 +141,7 @@ public java.util.List getPr
* @return nextValue
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java
index b132e8aadd3..658fc806f8b 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeImpl.java
@@ -26,17 +26,17 @@ public class SetChannelRolesChangeImpl implements SetChannelRolesChange, ModelBa
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* create instance with all properties
*/
@JsonCreator
SetChannelRolesChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final java.util.List previousValue,
- @JsonProperty("nextValue") final java.util.List nextValue) {
+ @JsonProperty("previousValue") final java.util.List previousValue,
+ @JsonProperty("nextValue") final java.util.List nextValue) {
this.change = change;
this.previousValue = previousValue;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value before the change.
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public java.util.List getPr
* Value after the change.
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
@@ -86,20 +86,20 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.ChannelRole... previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.ChannelRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
}
public void setPreviousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.ChannelRole... nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.ChannelRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
}
- public void setNextValue(final java.util.List nextValue) {
+ public void setNextValue(final java.util.List nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java
index 28d034b4315..3bff2eb2c95 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChange.java
@@ -16,15 +16,7 @@
/**
* Change triggered by the following update actions:
*
- * - Set Description on Cart Discounts.
- * - Set Description on Categories.
- * - Set Description on Discount Codes.
- * - Set Description on Products.
- * - Set Description on Product Discounts.
- * - Set Description on Shopping Lists.
- * - Set Description on States.
* - Set Description on Tax Categories.
- * - Set Description on Types.
* - Set Description on Zones.
*
*
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java
index 71f9fcbe868..4ad78557818 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetDescriptionChangeImpl.java
@@ -19,15 +19,7 @@
/**
* Change triggered by the following update actions:
*
- * - Set Description on Cart Discounts.
- * - Set Description on Categories.
- * - Set Description on Discount Codes.
- * - Set Description on Products.
- * - Set Description on Product Discounts.
- * - Set Description on Shopping Lists.
- * - Set Description on States.
* - Set Description on Tax Categories.
- * - Set Description on Types.
* - Set Description on Zones.
*
*/
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java
index e3b20830e38..ecf676be582 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChange.java
@@ -25,9 +25,7 @@
* Set Description on Product Discounts.
* Set Description on Shopping Lists.
* Set Description on States.
- * Set Description on Tax Categories.
* Set Description on Types.
- * Set Description on Zones.
*
*
*
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java
index 54af0646913..12e490af18f 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetLocalizedDescriptionChangeImpl.java
@@ -26,9 +26,7 @@
* Set Description on Product Discounts.
* Set Description on Shopping Lists.
* Set Description on States.
- * Set Description on Tax Categories.
* Set Description on Types.
- * Set Description on Zones.
*
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java
index a8d11d7bef9..526968b2533 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChange.java
@@ -8,7 +8,7 @@
import javax.annotation.Nullable;
import javax.validation.constraints.NotNull;
-import com.commercetools.history.models.common.StateRole;
+import com.commercetools.history.models.common.StateRoleEnum;
import com.fasterxml.jackson.annotation.*;
import com.fasterxml.jackson.databind.annotation.*;
@@ -60,7 +60,7 @@ public interface SetStateRolesChange extends Change {
*/
@NotNull
@JsonProperty("previousValue")
- public List getPreviousValue();
+ public List getPreviousValue();
/**
* Value after the change.
@@ -68,7 +68,7 @@ public interface SetStateRolesChange extends Change {
*/
@NotNull
@JsonProperty("nextValue")
- public List getNextValue();
+ public List getNextValue();
/**
* set change
@@ -83,14 +83,14 @@ public interface SetStateRolesChange extends Change {
*/
@JsonIgnore
- public void setPreviousValue(final StateRole... previousValue);
+ public void setPreviousValue(final StateRoleEnum... previousValue);
/**
* Value before the change.
* @param previousValue values to be set
*/
- public void setPreviousValue(final List previousValue);
+ public void setPreviousValue(final List previousValue);
/**
* Value after the change.
@@ -98,14 +98,14 @@ public interface SetStateRolesChange extends Change {
*/
@JsonIgnore
- public void setNextValue(final StateRole... nextValue);
+ public void setNextValue(final StateRoleEnum... nextValue);
/**
* Value after the change.
* @param nextValue values to be set
*/
- public void setNextValue(final List nextValue);
+ public void setNextValue(final List nextValue);
/**
* factory method
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java
index 8036d05ed2c..9f31fd2d558 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeBuilder.java
@@ -25,9 +25,9 @@ public class SetStateRolesChangeBuilder implements Builder
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* set the value to the change
@@ -47,7 +47,7 @@ public SetStateRolesChangeBuilder change(final String change) {
*/
public SetStateRolesChangeBuilder previousValue(
- final com.commercetools.history.models.common.StateRole... previousValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
return this;
}
@@ -59,7 +59,7 @@ public SetStateRolesChangeBuilder previousValue(
*/
public SetStateRolesChangeBuilder previousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
return this;
}
@@ -71,7 +71,7 @@ public SetStateRolesChangeBuilder previousValue(
*/
public SetStateRolesChangeBuilder plusPreviousValue(
- final com.commercetools.history.models.common.StateRole... previousValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
if (this.previousValue == null) {
this.previousValue = new ArrayList<>();
}
@@ -85,7 +85,8 @@ public SetStateRolesChangeBuilder plusPreviousValue(
* @return Builder
*/
- public SetStateRolesChangeBuilder nextValue(final com.commercetools.history.models.common.StateRole... nextValue) {
+ public SetStateRolesChangeBuilder nextValue(
+ final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
return this;
}
@@ -97,7 +98,7 @@ public SetStateRolesChangeBuilder nextValue(final com.commercetools.history.mode
*/
public SetStateRolesChangeBuilder nextValue(
- final java.util.List nextValue) {
+ final java.util.List nextValue) {
this.nextValue = nextValue;
return this;
}
@@ -109,7 +110,7 @@ public SetStateRolesChangeBuilder nextValue(
*/
public SetStateRolesChangeBuilder plusNextValue(
- final com.commercetools.history.models.common.StateRole... nextValue) {
+ final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
if (this.nextValue == null) {
this.nextValue = new ArrayList<>();
}
@@ -131,7 +132,7 @@ public String getChange() {
* @return previousValue
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -140,7 +141,7 @@ public java.util.List getPrev
* @return nextValue
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java
index 0ff78fbc99f..8afd6861318 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change/SetStateRolesChangeImpl.java
@@ -26,17 +26,17 @@ public class SetStateRolesChangeImpl implements SetStateRolesChange, ModelBase {
private String change;
- private java.util.List previousValue;
+ private java.util.List previousValue;
- private java.util.List nextValue;
+ private java.util.List nextValue;
/**
* create instance with all properties
*/
@JsonCreator
SetStateRolesChangeImpl(@JsonProperty("change") final String change,
- @JsonProperty("previousValue") final java.util.List previousValue,
- @JsonProperty("nextValue") final java.util.List nextValue) {
+ @JsonProperty("previousValue") final java.util.List previousValue,
+ @JsonProperty("nextValue") final java.util.List nextValue) {
this.change = change;
this.previousValue = previousValue;
this.nextValue = nextValue;
@@ -70,7 +70,7 @@ public String getChange() {
* Value before the change.
*/
- public java.util.List getPreviousValue() {
+ public java.util.List getPreviousValue() {
return this.previousValue;
}
@@ -78,7 +78,7 @@ public java.util.List getPrev
* Value after the change.
*/
- public java.util.List getNextValue() {
+ public java.util.List getNextValue() {
return this.nextValue;
}
@@ -86,20 +86,20 @@ public void setChange(final String change) {
this.change = change;
}
- public void setPreviousValue(final com.commercetools.history.models.common.StateRole... previousValue) {
+ public void setPreviousValue(final com.commercetools.history.models.common.StateRoleEnum... previousValue) {
this.previousValue = new ArrayList<>(Arrays.asList(previousValue));
}
public void setPreviousValue(
- final java.util.List previousValue) {
+ final java.util.List previousValue) {
this.previousValue = previousValue;
}
- public void setNextValue(final com.commercetools.history.models.common.StateRole... nextValue) {
+ public void setNextValue(final com.commercetools.history.models.common.StateRoleEnum... nextValue) {
this.nextValue = new ArrayList<>(Arrays.asList(nextValue));
}
- public void setNextValue(final java.util.List nextValue) {
+ public void setNextValue(final java.util.List nextValue) {
this.nextValue = nextValue;
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java
new file mode 100644
index 00000000000..f0d5cb5bc5d
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValue.java
@@ -0,0 +1,141 @@
+
+package com.commercetools.history.models.common;
+
+import java.time.*;
+import java.util.*;
+import java.util.function.Function;
+
+import javax.annotation.Nullable;
+import javax.validation.Valid;
+import javax.validation.constraints.NotNull;
+
+import com.fasterxml.jackson.annotation.*;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * A localized enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * AttributeLocalizedEnumValue attributeLocalizedEnumValue = AttributeLocalizedEnumValue.builder()
+ * .key("{key}")
+ * .label(labelBuilder -> labelBuilder)
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = AttributeLocalizedEnumValueImpl.class)
+public interface AttributeLocalizedEnumValue {
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @return key
+ */
+ @NotNull
+ @JsonProperty("key")
+ public String getKey();
+
+ /**
+ * Descriptive, localized label of the value.
+ * @return label
+ */
+ @NotNull
+ @Valid
+ @JsonProperty("label")
+ public LocalizedString getLabel();
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @param key value to be set
+ */
+
+ public void setKey(final String key);
+
+ /**
+ * Descriptive, localized label of the value.
+ * @param label value to be set
+ */
+
+ public void setLabel(final LocalizedString label);
+
+ /**
+ * factory method
+ * @return instance of AttributeLocalizedEnumValue
+ */
+ public static AttributeLocalizedEnumValue of() {
+ return new AttributeLocalizedEnumValueImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy AttributeLocalizedEnumValue
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static AttributeLocalizedEnumValue of(final AttributeLocalizedEnumValue template) {
+ AttributeLocalizedEnumValueImpl instance = new AttributeLocalizedEnumValueImpl();
+ instance.setKey(template.getKey());
+ instance.setLabel(template.getLabel());
+ return instance;
+ }
+
+ /**
+ * factory method to create a deep copy of AttributeLocalizedEnumValue
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static AttributeLocalizedEnumValue deepCopy(@Nullable final AttributeLocalizedEnumValue template) {
+ if (template == null) {
+ return null;
+ }
+ AttributeLocalizedEnumValueImpl instance = new AttributeLocalizedEnumValueImpl();
+ instance.setKey(template.getKey());
+ instance.setLabel(com.commercetools.history.models.common.LocalizedString.deepCopy(template.getLabel()));
+ return instance;
+ }
+
+ /**
+ * builder factory method for AttributeLocalizedEnumValue
+ * @return builder
+ */
+ public static AttributeLocalizedEnumValueBuilder builder() {
+ return AttributeLocalizedEnumValueBuilder.of();
+ }
+
+ /**
+ * create builder for AttributeLocalizedEnumValue instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static AttributeLocalizedEnumValueBuilder builder(final AttributeLocalizedEnumValue template) {
+ return AttributeLocalizedEnumValueBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withAttributeLocalizedEnumValue(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-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java
new file mode 100644
index 00000000000..a9ace53f812
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueBuilder.java
@@ -0,0 +1,133 @@
+
+package com.commercetools.history.models.common;
+
+import java.util.*;
+import java.util.function.Function;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * AttributeLocalizedEnumValueBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * AttributeLocalizedEnumValue attributeLocalizedEnumValue = AttributeLocalizedEnumValue.builder()
+ * .key("{key}")
+ * .label(labelBuilder -> labelBuilder)
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class AttributeLocalizedEnumValueBuilder implements Builder {
+
+ private String key;
+
+ private com.commercetools.history.models.common.LocalizedString label;
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @param key value to be set
+ * @return Builder
+ */
+
+ public AttributeLocalizedEnumValueBuilder key(final String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * Descriptive, localized label of the value.
+ * @param builder function to build the label value
+ * @return Builder
+ */
+
+ public AttributeLocalizedEnumValueBuilder label(
+ Function builder) {
+ this.label = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of()).build();
+ return this;
+ }
+
+ /**
+ * Descriptive, localized label of the value.
+ * @param builder function to build the label value
+ * @return Builder
+ */
+
+ public AttributeLocalizedEnumValueBuilder withLabel(
+ Function builder) {
+ this.label = builder.apply(com.commercetools.history.models.common.LocalizedStringBuilder.of());
+ return this;
+ }
+
+ /**
+ * Descriptive, localized label of the value.
+ * @param label value to be set
+ * @return Builder
+ */
+
+ public AttributeLocalizedEnumValueBuilder label(
+ final com.commercetools.history.models.common.LocalizedString label) {
+ this.label = label;
+ return this;
+ }
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @return key
+ */
+
+ public String getKey() {
+ return this.key;
+ }
+
+ /**
+ * Descriptive, localized label of the value.
+ * @return label
+ */
+
+ public com.commercetools.history.models.common.LocalizedString getLabel() {
+ return this.label;
+ }
+
+ /**
+ * builds AttributeLocalizedEnumValue with checking for non-null required values
+ * @return AttributeLocalizedEnumValue
+ */
+ public AttributeLocalizedEnumValue build() {
+ Objects.requireNonNull(key, AttributeLocalizedEnumValue.class + ": key is missing");
+ Objects.requireNonNull(label, AttributeLocalizedEnumValue.class + ": label is missing");
+ return new AttributeLocalizedEnumValueImpl(key, label);
+ }
+
+ /**
+ * builds AttributeLocalizedEnumValue without checking for non-null required values
+ * @return AttributeLocalizedEnumValue
+ */
+ public AttributeLocalizedEnumValue buildUnchecked() {
+ return new AttributeLocalizedEnumValueImpl(key, label);
+ }
+
+ /**
+ * factory method for an instance of AttributeLocalizedEnumValueBuilder
+ * @return builder
+ */
+ public static AttributeLocalizedEnumValueBuilder of() {
+ return new AttributeLocalizedEnumValueBuilder();
+ }
+
+ /**
+ * create builder for AttributeLocalizedEnumValue instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static AttributeLocalizedEnumValueBuilder of(final AttributeLocalizedEnumValue template) {
+ AttributeLocalizedEnumValueBuilder builder = new AttributeLocalizedEnumValueBuilder();
+ builder.key = template.getKey();
+ builder.label = template.getLabel();
+ return builder;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java
new file mode 100644
index 00000000000..a1ac9489014
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueImpl.java
@@ -0,0 +1,98 @@
+
+package com.commercetools.history.models.common;
+
+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;
+
+/**
+ * A localized enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class AttributeLocalizedEnumValueImpl implements AttributeLocalizedEnumValue, ModelBase {
+
+ private String key;
+
+ private com.commercetools.history.models.common.LocalizedString label;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ AttributeLocalizedEnumValueImpl(@JsonProperty("key") final String key,
+ @JsonProperty("label") final com.commercetools.history.models.common.LocalizedString label) {
+ this.key = key;
+ this.label = label;
+ }
+
+ /**
+ * create empty instance
+ */
+ public AttributeLocalizedEnumValueImpl() {
+ }
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ */
+
+ public String getKey() {
+ return this.key;
+ }
+
+ /**
+ * Descriptive, localized label of the value.
+ */
+
+ public com.commercetools.history.models.common.LocalizedString getLabel() {
+ return this.label;
+ }
+
+ public void setKey(final String key) {
+ this.key = key;
+ }
+
+ public void setLabel(final com.commercetools.history.models.common.LocalizedString label) {
+ this.label = label;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ AttributeLocalizedEnumValueImpl that = (AttributeLocalizedEnumValueImpl) o;
+
+ return new EqualsBuilder().append(key, that.key)
+ .append(label, that.label)
+ .append(key, that.key)
+ .append(label, that.label)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(key).append(label).toHashCode();
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key)
+ .append("label", label)
+ .build();
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java
new file mode 100644
index 00000000000..8142cb9bb6f
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValue.java
@@ -0,0 +1,139 @@
+
+package com.commercetools.history.models.common;
+
+import java.time.*;
+import java.util.*;
+import java.util.function.Function;
+
+import javax.annotation.Nullable;
+import javax.validation.constraints.NotNull;
+
+import com.fasterxml.jackson.annotation.*;
+import com.fasterxml.jackson.databind.annotation.*;
+
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * A plain enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
+ *
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * AttributePlainEnumValue attributePlainEnumValue = AttributePlainEnumValue.builder()
+ * .key("{key}")
+ * .label("{label}")
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+@JsonDeserialize(as = AttributePlainEnumValueImpl.class)
+public interface AttributePlainEnumValue {
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @return key
+ */
+ @NotNull
+ @JsonProperty("key")
+ public String getKey();
+
+ /**
+ * Descriptive label of the value.
+ * @return label
+ */
+ @NotNull
+ @JsonProperty("label")
+ public String getLabel();
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @param key value to be set
+ */
+
+ public void setKey(final String key);
+
+ /**
+ * Descriptive label of the value.
+ * @param label value to be set
+ */
+
+ public void setLabel(final String label);
+
+ /**
+ * factory method
+ * @return instance of AttributePlainEnumValue
+ */
+ public static AttributePlainEnumValue of() {
+ return new AttributePlainEnumValueImpl();
+ }
+
+ /**
+ * factory method to create a shallow copy AttributePlainEnumValue
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ public static AttributePlainEnumValue of(final AttributePlainEnumValue template) {
+ AttributePlainEnumValueImpl instance = new AttributePlainEnumValueImpl();
+ instance.setKey(template.getKey());
+ instance.setLabel(template.getLabel());
+ return instance;
+ }
+
+ /**
+ * factory method to create a deep copy of AttributePlainEnumValue
+ * @param template instance to be copied
+ * @return copy instance
+ */
+ @Nullable
+ public static AttributePlainEnumValue deepCopy(@Nullable final AttributePlainEnumValue template) {
+ if (template == null) {
+ return null;
+ }
+ AttributePlainEnumValueImpl instance = new AttributePlainEnumValueImpl();
+ instance.setKey(template.getKey());
+ instance.setLabel(template.getLabel());
+ return instance;
+ }
+
+ /**
+ * builder factory method for AttributePlainEnumValue
+ * @return builder
+ */
+ public static AttributePlainEnumValueBuilder builder() {
+ return AttributePlainEnumValueBuilder.of();
+ }
+
+ /**
+ * create builder for AttributePlainEnumValue instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static AttributePlainEnumValueBuilder builder(final AttributePlainEnumValue template) {
+ return AttributePlainEnumValueBuilder.of(template);
+ }
+
+ /**
+ * accessor map function
+ * @param mapped type
+ * @param helper function to map the object
+ * @return mapped value
+ */
+ default T withAttributePlainEnumValue(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-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java
new file mode 100644
index 00000000000..0430668877b
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueBuilder.java
@@ -0,0 +1,107 @@
+
+package com.commercetools.history.models.common;
+
+import java.util.*;
+
+import io.vrap.rmf.base.client.Builder;
+import io.vrap.rmf.base.client.utils.Generated;
+
+/**
+ * AttributePlainEnumValueBuilder
+ *
+ * Example to create an instance using the builder pattern
+ *
+ *
+ * AttributePlainEnumValue attributePlainEnumValue = AttributePlainEnumValue.builder()
+ * .key("{key}")
+ * .label("{label}")
+ * .build()
+ *
+ *
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class AttributePlainEnumValueBuilder implements Builder {
+
+ private String key;
+
+ private String label;
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @param key value to be set
+ * @return Builder
+ */
+
+ public AttributePlainEnumValueBuilder key(final String key) {
+ this.key = key;
+ return this;
+ }
+
+ /**
+ * Descriptive label of the value.
+ * @param label value to be set
+ * @return Builder
+ */
+
+ public AttributePlainEnumValueBuilder label(final String label) {
+ this.label = label;
+ return this;
+ }
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ * @return key
+ */
+
+ public String getKey() {
+ return this.key;
+ }
+
+ /**
+ * Descriptive label of the value.
+ * @return label
+ */
+
+ public String getLabel() {
+ return this.label;
+ }
+
+ /**
+ * builds AttributePlainEnumValue with checking for non-null required values
+ * @return AttributePlainEnumValue
+ */
+ public AttributePlainEnumValue build() {
+ Objects.requireNonNull(key, AttributePlainEnumValue.class + ": key is missing");
+ Objects.requireNonNull(label, AttributePlainEnumValue.class + ": label is missing");
+ return new AttributePlainEnumValueImpl(key, label);
+ }
+
+ /**
+ * builds AttributePlainEnumValue without checking for non-null required values
+ * @return AttributePlainEnumValue
+ */
+ public AttributePlainEnumValue buildUnchecked() {
+ return new AttributePlainEnumValueImpl(key, label);
+ }
+
+ /**
+ * factory method for an instance of AttributePlainEnumValueBuilder
+ * @return builder
+ */
+ public static AttributePlainEnumValueBuilder of() {
+ return new AttributePlainEnumValueBuilder();
+ }
+
+ /**
+ * create builder for AttributePlainEnumValue instance
+ * @param template instance with prefilled values for the builder
+ * @return builder
+ */
+ public static AttributePlainEnumValueBuilder of(final AttributePlainEnumValue template) {
+ AttributePlainEnumValueBuilder builder = new AttributePlainEnumValueBuilder();
+ builder.key = template.getKey();
+ builder.label = template.getLabel();
+ return builder;
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java
new file mode 100644
index 00000000000..248be829df2
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueImpl.java
@@ -0,0 +1,97 @@
+
+package com.commercetools.history.models.common;
+
+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;
+
+/**
+ * A plain enum value must be unique within the enum, else a DuplicateEnumValues error is returned.
+ */
+@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
+public class AttributePlainEnumValueImpl implements AttributePlainEnumValue, ModelBase {
+
+ private String key;
+
+ private String label;
+
+ /**
+ * create instance with all properties
+ */
+ @JsonCreator
+ AttributePlainEnumValueImpl(@JsonProperty("key") final String key, @JsonProperty("label") final String label) {
+ this.key = key;
+ this.label = label;
+ }
+
+ /**
+ * create empty instance
+ */
+ public AttributePlainEnumValueImpl() {
+ }
+
+ /**
+ * Key of the value used as a programmatic identifier, for example in facets & filters.
+ */
+
+ public String getKey() {
+ return this.key;
+ }
+
+ /**
+ * Descriptive label of the value.
+ */
+
+ public String getLabel() {
+ return this.label;
+ }
+
+ public void setKey(final String key) {
+ this.key = key;
+ }
+
+ public void setLabel(final String label) {
+ this.label = label;
+ }
+
+ @Override
+ public boolean equals(Object o) {
+ if (this == o)
+ return true;
+
+ if (o == null || getClass() != o.getClass())
+ return false;
+
+ AttributePlainEnumValueImpl that = (AttributePlainEnumValueImpl) o;
+
+ return new EqualsBuilder().append(key, that.key)
+ .append(label, that.label)
+ .append(key, that.key)
+ .append(label, that.label)
+ .isEquals();
+ }
+
+ @Override
+ public int hashCode() {
+ return new HashCodeBuilder(17, 37).append(key).append(label).toHashCode();
+ }
+
+ @Override
+ public String toString() {
+ return new ToStringBuilder(this, ToStringStyle.SHORT_PREFIX_STYLE).append("key", key)
+ .append("label", label)
+ .build();
+ }
+
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRole.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRoleEnum.java
similarity index 71%
rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRole.java
rename to commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRoleEnum.java
index f7bc8cd0987..190ac6a9089 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRole.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/ChannelRoleEnum.java
@@ -11,25 +11,25 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * ChannelRole
+ * Describes the purpose and type of the Channel. A Channel can have one or more roles.
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public interface ChannelRole extends JsonEnum {
+public interface ChannelRoleEnum extends JsonEnum {
- ChannelRole INVENTORY_SUPPLY = ChannelRoleEnum.INVENTORY_SUPPLY;
+ ChannelRoleEnum INVENTORY_SUPPLY = ChannelRoleEnumEnum.INVENTORY_SUPPLY;
- ChannelRole PRODUCT_DISTRIBUTION = ChannelRoleEnum.PRODUCT_DISTRIBUTION;
+ ChannelRoleEnum PRODUCT_DISTRIBUTION = ChannelRoleEnumEnum.PRODUCT_DISTRIBUTION;
- ChannelRole ORDER_EXPORT = ChannelRoleEnum.ORDER_EXPORT;
+ ChannelRoleEnum ORDER_EXPORT = ChannelRoleEnumEnum.ORDER_EXPORT;
- ChannelRole ORDER_IMPORT = ChannelRoleEnum.ORDER_IMPORT;
+ ChannelRoleEnum ORDER_IMPORT = ChannelRoleEnumEnum.ORDER_IMPORT;
- ChannelRole PRIMARY = ChannelRoleEnum.PRIMARY;
+ ChannelRoleEnum PRIMARY = ChannelRoleEnumEnum.PRIMARY;
/**
- * possible values of ChannelRole
+ * possible values of ChannelRoleEnum
*/
- enum ChannelRoleEnum implements ChannelRole {
+ enum ChannelRoleEnumEnum implements ChannelRoleEnum {
/**
* InventorySupply
*/
@@ -56,7 +56,7 @@ enum ChannelRoleEnum implements ChannelRole {
PRIMARY("Primary");
private final String jsonName;
- private ChannelRoleEnum(final String jsonName) {
+ private ChannelRoleEnumEnum(final String jsonName) {
this.jsonName = jsonName;
}
@@ -89,14 +89,14 @@ public String toString() {
String toString();
/**
- * factory method for a enum value of ChannelRole
+ * factory method for a enum value of ChannelRoleEnum
* 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 ChannelRole findEnum(String value) {
- return findEnumViaJsonName(value).orElse(new ChannelRole() {
+ public static ChannelRoleEnum findEnum(String value) {
+ return findEnumViaJsonName(value).orElse(new ChannelRoleEnum() {
@Override
public String getJsonName() {
return value;
@@ -118,7 +118,7 @@ public String toString() {
* @param jsonName the json value to be wrapped
* @return optional of enum instance
*/
- public static Optional findEnumViaJsonName(String jsonName) {
+ public static Optional findEnumViaJsonName(String jsonName) {
return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst();
}
@@ -126,8 +126,8 @@ public static Optional findEnumViaJsonName(String jsonName) {
* possible enum values
* @return array of possible enum values
*/
- public static ChannelRole[] values() {
- return ChannelRoleEnum.values();
+ public static ChannelRoleEnum[] values() {
+ return ChannelRoleEnumEnum.values();
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRole.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRoleEnum.java
similarity index 72%
rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRole.java
rename to commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRoleEnum.java
index a680218b82b..899dd09661f 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRole.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateRoleEnum.java
@@ -11,19 +11,19 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * StateRole
+ * For some resource types, a State can fulfill the following predefined roles:
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public interface StateRole extends JsonEnum {
+public interface StateRoleEnum extends JsonEnum {
- StateRole REVIEW_INCLUDED_IN_STATISTICS = StateRoleEnum.REVIEW_INCLUDED_IN_STATISTICS;
+ StateRoleEnum REVIEW_INCLUDED_IN_STATISTICS = StateRoleEnumEnum.REVIEW_INCLUDED_IN_STATISTICS;
- StateRole RETURN = StateRoleEnum.RETURN;
+ StateRoleEnum RETURN = StateRoleEnumEnum.RETURN;
/**
- * possible values of StateRole
+ * possible values of StateRoleEnum
*/
- enum StateRoleEnum implements StateRole {
+ enum StateRoleEnumEnum implements StateRoleEnum {
/**
* ReviewIncludedInStatistics
*/
@@ -35,7 +35,7 @@ enum StateRoleEnum implements StateRole {
RETURN("Return");
private final String jsonName;
- private StateRoleEnum(final String jsonName) {
+ private StateRoleEnumEnum(final String jsonName) {
this.jsonName = jsonName;
}
@@ -68,14 +68,14 @@ public String toString() {
String toString();
/**
- * factory method for a enum value of StateRole
+ * factory method for a enum value of StateRoleEnum
* 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 StateRole findEnum(String value) {
- return findEnumViaJsonName(value).orElse(new StateRole() {
+ public static StateRoleEnum findEnum(String value) {
+ return findEnumViaJsonName(value).orElse(new StateRoleEnum() {
@Override
public String getJsonName() {
return value;
@@ -97,7 +97,7 @@ public String toString() {
* @param jsonName the json value to be wrapped
* @return optional of enum instance
*/
- public static Optional findEnumViaJsonName(String jsonName) {
+ public static Optional findEnumViaJsonName(String jsonName) {
return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst();
}
@@ -105,8 +105,8 @@ public static Optional findEnumViaJsonName(String jsonName) {
* possible enum values
* @return array of possible enum values
*/
- public static StateRole[] values() {
- return StateRoleEnum.values();
+ public static StateRoleEnum[] values() {
+ return StateRoleEnumEnum.values();
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateType.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateTypeEnum.java
similarity index 60%
rename from commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateType.java
rename to commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateTypeEnum.java
index 53b7b8a6ab2..11a650f71a4 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateType.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/common/StateTypeEnum.java
@@ -11,25 +11,31 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * StateType
+ * Resource or object type the State can be assigned to.
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
-public interface StateType extends JsonEnum {
+public interface StateTypeEnum extends JsonEnum {
- StateType ORDER_STATE = StateTypeEnum.ORDER_STATE;
+ StateTypeEnum ORDER_STATE = StateTypeEnumEnum.ORDER_STATE;
- StateType LINE_ITEM_STATE = StateTypeEnum.LINE_ITEM_STATE;
+ StateTypeEnum LINE_ITEM_STATE = StateTypeEnumEnum.LINE_ITEM_STATE;
- StateType PRODUCT_STATE = StateTypeEnum.PRODUCT_STATE;
+ StateTypeEnum PRODUCT_STATE = StateTypeEnumEnum.PRODUCT_STATE;
- StateType REVIEW_STATE = StateTypeEnum.REVIEW_STATE;
+ StateTypeEnum REVIEW_STATE = StateTypeEnumEnum.REVIEW_STATE;
- StateType PAYMENT_STATE = StateTypeEnum.PAYMENT_STATE;
+ StateTypeEnum PAYMENT_STATE = StateTypeEnumEnum.PAYMENT_STATE;
+
+ StateTypeEnum QUOTE_REQUEST_STATE = StateTypeEnumEnum.QUOTE_REQUEST_STATE;
+
+ StateTypeEnum STAGED_QUOTE_STATE = StateTypeEnumEnum.STAGED_QUOTE_STATE;
+
+ StateTypeEnum QUOTE_STATE = StateTypeEnumEnum.QUOTE_STATE;
/**
- * possible values of StateType
+ * possible values of StateTypeEnum
*/
- enum StateTypeEnum implements StateType {
+ enum StateTypeEnumEnum implements StateTypeEnum {
/**
* OrderState
*/
@@ -53,10 +59,25 @@ enum StateTypeEnum implements StateType {
/**
* PaymentState
*/
- PAYMENT_STATE("PaymentState");
+ PAYMENT_STATE("PaymentState"),
+
+ /**
+ * QuoteRequestState
+ */
+ QUOTE_REQUEST_STATE("QuoteRequestState"),
+
+ /**
+ * StagedQuoteState
+ */
+ STAGED_QUOTE_STATE("StagedQuoteState"),
+
+ /**
+ * QuoteState
+ */
+ QUOTE_STATE("QuoteState");
private final String jsonName;
- private StateTypeEnum(final String jsonName) {
+ private StateTypeEnumEnum(final String jsonName) {
this.jsonName = jsonName;
}
@@ -89,14 +110,14 @@ public String toString() {
String toString();
/**
- * factory method for a enum value of StateType
+ * factory method for a enum value of StateTypeEnum
* 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 StateType findEnum(String value) {
- return findEnumViaJsonName(value).orElse(new StateType() {
+ public static StateTypeEnum findEnum(String value) {
+ return findEnumViaJsonName(value).orElse(new StateTypeEnum() {
@Override
public String getJsonName() {
return value;
@@ -118,7 +139,7 @@ public String toString() {
* @param jsonName the json value to be wrapped
* @return optional of enum instance
*/
- public static Optional findEnumViaJsonName(String jsonName) {
+ public static Optional findEnumViaJsonName(String jsonName) {
return Arrays.stream(values()).filter(t -> t.getJsonName().equals(jsonName)).findFirst();
}
@@ -126,8 +147,8 @@ public static Optional findEnumViaJsonName(String jsonName) {
* possible enum values
* @return array of possible enum values
*/
- public static StateType[] values() {
- return StateTypeEnum.values();
+ public static StateTypeEnum[] values() {
+ return StateTypeEnumEnum.values();
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java
index ed2f3fa75fd..e8aa2cef44d 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddAddressChangeTest.java
@@ -24,11 +24,8 @@ public void buildUnchecked(AddAddressChangeBuilder builder) {
@DataProvider
public static Object[][] objectBuilder() {
- return new Object[][] { new Object[] { AddAddressChange.builder().change("change") },
- new Object[] { AddAddressChange.builder()
- .previousValue(new com.commercetools.history.models.common.AddressImpl()) },
- new Object[] { AddAddressChange.builder()
- .nextValue(new com.commercetools.history.models.common.AddressImpl()) } };
+ return new Object[][] { new Object[] { AddAddressChange.builder().change("change") }, new Object[] {
+ AddAddressChange.builder().nextValue(new com.commercetools.history.models.common.AddressImpl()) } };
}
@Test
@@ -38,14 +35,6 @@ public void change() {
Assertions.assertThat(value.getChange()).isEqualTo("change");
}
- @Test
- public void previousValue() {
- AddAddressChange value = AddAddressChange.of();
- value.setPreviousValue(new com.commercetools.history.models.common.AddressImpl());
- Assertions.assertThat(value.getPreviousValue())
- .isEqualTo(new com.commercetools.history.models.common.AddressImpl());
- }
-
@Test
public void nextValue() {
AddAddressChange value = AddAddressChange.of();
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java
index c1eb9ac8b48..a93dd26ee11 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddChannelRolesChangeTest.java
@@ -29,10 +29,10 @@ public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { AddChannelRolesChange.builder().change("change") },
new Object[] { AddChannelRolesChange.builder()
.previousValue(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) },
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) },
new Object[] { AddChannelRolesChange.builder()
.nextValue(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) } };
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) } };
}
@Test
@@ -45,20 +45,20 @@ public void change() {
@Test
public void previousValue() {
AddChannelRolesChange value = AddChannelRolesChange.of();
- value.setPreviousValue(
- Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ value.setPreviousValue(Collections
+ .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
}
@Test
public void nextValue() {
AddChannelRolesChange value = AddChannelRolesChange.of();
- value.setNextValue(
- Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ value.setNextValue(Collections
+ .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
Assertions.assertThat(value.getNextValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java
index 6da99d0d5dc..7231e862ae1 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocalizedEnumValueChangeTest.java
@@ -26,7 +26,7 @@ public void buildUnchecked(AddLocalizedEnumValueChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { AddLocalizedEnumValueChange.builder().change("change") },
new Object[] { AddLocalizedEnumValueChange.builder()
- .nextValue(new com.commercetools.history.models.change_value.LocalizedEnumValueImpl()) },
+ .nextValue(new com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl()) },
new Object[] { AddLocalizedEnumValueChange.builder().fieldName("fieldName") },
new Object[] { AddLocalizedEnumValueChange.builder().attributeName("attributeName") } };
}
@@ -41,9 +41,9 @@ public void change() {
@Test
public void nextValue() {
AddLocalizedEnumValueChange value = AddLocalizedEnumValueChange.of();
- value.setNextValue(new com.commercetools.history.models.change_value.LocalizedEnumValueImpl());
+ value.setNextValue(new com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl());
Assertions.assertThat(value.getNextValue())
- .isEqualTo(new com.commercetools.history.models.change_value.LocalizedEnumValueImpl());
+ .isEqualTo(new com.commercetools.history.models.common.AttributeLocalizedEnumValueImpl());
}
@Test
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java
index 328b1a84dea..82fe2fb991a 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddLocationChangeTest.java
@@ -24,11 +24,8 @@ public void buildUnchecked(AddLocationChangeBuilder builder) {
@DataProvider
public static Object[][] objectBuilder() {
- return new Object[][] { new Object[] { AddLocationChange.builder().change("change") },
- new Object[] { AddLocationChange.builder()
- .previousValue(new com.commercetools.history.models.common.LocationImpl()) },
- new Object[] { AddLocationChange.builder()
- .nextValue(new com.commercetools.history.models.common.LocationImpl()) } };
+ return new Object[][] { new Object[] { AddLocationChange.builder().change("change") }, new Object[] {
+ AddLocationChange.builder().nextValue(new com.commercetools.history.models.common.LocationImpl()) } };
}
@Test
@@ -38,14 +35,6 @@ public void change() {
Assertions.assertThat(value.getChange()).isEqualTo("change");
}
- @Test
- public void previousValue() {
- AddLocationChange value = AddLocationChange.of();
- value.setPreviousValue(new com.commercetools.history.models.common.LocationImpl());
- Assertions.assertThat(value.getPreviousValue())
- .isEqualTo(new com.commercetools.history.models.common.LocationImpl());
- }
-
@Test
public void nextValue() {
AddLocationChange value = AddLocationChange.of();
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java
index 009bc727599..9ff564f8433 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddPlainEnumValueChangeTest.java
@@ -26,7 +26,7 @@ public void buildUnchecked(AddPlainEnumValueChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { AddPlainEnumValueChange.builder().change("change") },
new Object[] { AddPlainEnumValueChange.builder()
- .nextValue(new com.commercetools.history.models.change_value.EnumValueImpl()) },
+ .nextValue(new com.commercetools.history.models.common.AttributePlainEnumValueImpl()) },
new Object[] { AddPlainEnumValueChange.builder().attributeName("attributeName") } };
}
@@ -40,9 +40,9 @@ public void change() {
@Test
public void nextValue() {
AddPlainEnumValueChange value = AddPlainEnumValueChange.of();
- value.setNextValue(new com.commercetools.history.models.change_value.EnumValueImpl());
+ value.setNextValue(new com.commercetools.history.models.common.AttributePlainEnumValueImpl());
Assertions.assertThat(value.getNextValue())
- .isEqualTo(new com.commercetools.history.models.change_value.EnumValueImpl());
+ .isEqualTo(new com.commercetools.history.models.common.AttributePlainEnumValueImpl());
}
@Test
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java
index 2b422fb62b7..b40639b2075 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/AddStateRolesChangeTest.java
@@ -28,10 +28,10 @@ public void buildUnchecked(AddStateRolesChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { AddStateRolesChange.builder().change("change") },
new Object[] { AddStateRolesChange.builder()
- .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRole
+ .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum
.findEnum("ReviewIncludedInStatistics"))) },
new Object[] { AddStateRolesChange.builder()
- .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRole
+ .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum
.findEnum("ReviewIncludedInStatistics"))) } };
}
@@ -46,19 +46,19 @@ public void change() {
public void previousValue() {
AddStateRolesChange value = AddStateRolesChange.of();
value.setPreviousValue(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
}
@Test
public void nextValue() {
AddStateRolesChange value = AddStateRolesChange.of();
value.setNextValue(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
Assertions.assertThat(value.getNextValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java
index 93e2564beb7..6614e5f7b13 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/ChangeStateTypeChangeTest.java
@@ -26,9 +26,9 @@ public void buildUnchecked(ChangeStateTypeChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { ChangeStateTypeChange.builder().change("change") },
new Object[] { ChangeStateTypeChange.builder()
- .previousValue(com.commercetools.history.models.common.StateType.findEnum("OrderState")) },
+ .previousValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")) },
new Object[] { ChangeStateTypeChange.builder()
- .nextValue(com.commercetools.history.models.common.StateType.findEnum("OrderState")) } };
+ .nextValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState")) } };
}
@Test
@@ -41,16 +41,16 @@ public void change() {
@Test
public void previousValue() {
ChangeStateTypeChange value = ChangeStateTypeChange.of();
- value.setPreviousValue(com.commercetools.history.models.common.StateType.findEnum("OrderState"));
+ value.setPreviousValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState"));
Assertions.assertThat(value.getPreviousValue())
- .isEqualTo(com.commercetools.history.models.common.StateType.findEnum("OrderState"));
+ .isEqualTo(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState"));
}
@Test
public void nextValue() {
ChangeStateTypeChange value = ChangeStateTypeChange.of();
- value.setNextValue(com.commercetools.history.models.common.StateType.findEnum("OrderState"));
+ value.setNextValue(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState"));
Assertions.assertThat(value.getNextValue())
- .isEqualTo(com.commercetools.history.models.common.StateType.findEnum("OrderState"));
+ .isEqualTo(com.commercetools.history.models.common.StateTypeEnum.findEnum("OrderState"));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java
index 46ff16b6281..25090a4e690 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveChannelRolesChangeTest.java
@@ -29,10 +29,10 @@ public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { RemoveChannelRolesChange.builder().change("change") },
new Object[] { RemoveChannelRolesChange.builder()
.previousValue(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) },
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) },
new Object[] { RemoveChannelRolesChange.builder()
.nextValue(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) } };
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) } };
}
@Test
@@ -45,20 +45,20 @@ public void change() {
@Test
public void previousValue() {
RemoveChannelRolesChange value = RemoveChannelRolesChange.of();
- value.setPreviousValue(
- Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ value.setPreviousValue(Collections
+ .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
}
@Test
public void nextValue() {
RemoveChannelRolesChange value = RemoveChannelRolesChange.of();
- value.setNextValue(
- Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ value.setNextValue(Collections
+ .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
Assertions.assertThat(value.getNextValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java
index 57f13bfab6f..187273761fb 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveLocationChangeTest.java
@@ -26,9 +26,7 @@ public void buildUnchecked(RemoveLocationChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { RemoveLocationChange.builder().change("change") },
new Object[] { RemoveLocationChange.builder()
- .previousValue(new com.commercetools.history.models.common.LocationImpl()) },
- new Object[] { RemoveLocationChange.builder()
- .nextValue(new com.commercetools.history.models.common.LocationImpl()) } };
+ .previousValue(new com.commercetools.history.models.common.LocationImpl()) } };
}
@Test
@@ -45,12 +43,4 @@ public void previousValue() {
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(new com.commercetools.history.models.common.LocationImpl());
}
-
- @Test
- public void nextValue() {
- RemoveLocationChange value = RemoveLocationChange.of();
- value.setNextValue(new com.commercetools.history.models.common.LocationImpl());
- Assertions.assertThat(value.getNextValue())
- .isEqualTo(new com.commercetools.history.models.common.LocationImpl());
- }
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java
index 6758fcb3055..1938df12757 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveStateRolesChangeTest.java
@@ -28,10 +28,10 @@ public void buildUnchecked(RemoveStateRolesChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { RemoveStateRolesChange.builder().change("change") },
new Object[] { RemoveStateRolesChange.builder()
- .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRole
+ .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum
.findEnum("ReviewIncludedInStatistics"))) },
new Object[] { RemoveStateRolesChange.builder()
- .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRole
+ .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum
.findEnum("ReviewIncludedInStatistics"))) } };
}
@@ -46,19 +46,19 @@ public void change() {
public void previousValue() {
RemoveStateRolesChange value = RemoveStateRolesChange.of();
value.setPreviousValue(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
}
@Test
public void nextValue() {
RemoveStateRolesChange value = RemoveStateRolesChange.of();
value.setNextValue(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
Assertions.assertThat(value.getNextValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java
index e131d733ac8..62871886b10 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/RemoveTaxRateChangeTest.java
@@ -26,9 +26,7 @@ public void buildUnchecked(RemoveTaxRateChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { RemoveTaxRateChange.builder().change("change") },
new Object[] { RemoveTaxRateChange.builder()
- .previousValue(new com.commercetools.history.models.common.TaxRateImpl()) },
- new Object[] { RemoveTaxRateChange.builder()
- .nextValue(new com.commercetools.history.models.common.TaxRateImpl()) } };
+ .previousValue(new com.commercetools.history.models.common.TaxRateImpl()) } };
}
@Test
@@ -45,12 +43,4 @@ public void previousValue() {
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(new com.commercetools.history.models.common.TaxRateImpl());
}
-
- @Test
- public void nextValue() {
- RemoveTaxRateChange value = RemoveTaxRateChange.of();
- value.setNextValue(new com.commercetools.history.models.common.TaxRateImpl());
- Assertions.assertThat(value.getNextValue())
- .isEqualTo(new com.commercetools.history.models.common.TaxRateImpl());
- }
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java
index 2007c019b6c..8dc632cf172 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetChannelRolesChangeTest.java
@@ -29,10 +29,10 @@ public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { SetChannelRolesChange.builder().change("change") },
new Object[] { SetChannelRolesChange.builder()
.previousValue(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) },
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) },
new Object[] { SetChannelRolesChange.builder()
.nextValue(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply"))) } };
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply"))) } };
}
@Test
@@ -45,20 +45,20 @@ public void change() {
@Test
public void previousValue() {
SetChannelRolesChange value = SetChannelRolesChange.of();
- value.setPreviousValue(
- Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ value.setPreviousValue(Collections
+ .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
}
@Test
public void nextValue() {
SetChannelRolesChange value = SetChannelRolesChange.of();
- value.setNextValue(
- Collections.singletonList(com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ value.setNextValue(Collections
+ .singletonList(com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
Assertions.assertThat(value.getNextValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.ChannelRole.findEnum("InventorySupply")));
+ com.commercetools.history.models.common.ChannelRoleEnum.findEnum("InventorySupply")));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java
index 9787fa59f6a..d70e7cdcb43 100644
--- a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/change/SetStateRolesChangeTest.java
@@ -28,10 +28,10 @@ public void buildUnchecked(SetStateRolesChangeBuilder builder) {
public static Object[][] objectBuilder() {
return new Object[][] { new Object[] { SetStateRolesChange.builder().change("change") },
new Object[] { SetStateRolesChange.builder()
- .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRole
+ .previousValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum
.findEnum("ReviewIncludedInStatistics"))) },
new Object[] { SetStateRolesChange.builder()
- .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRole
+ .nextValue(Collections.singletonList(com.commercetools.history.models.common.StateRoleEnum
.findEnum("ReviewIncludedInStatistics"))) } };
}
@@ -46,19 +46,19 @@ public void change() {
public void previousValue() {
SetStateRolesChange value = SetStateRolesChange.of();
value.setPreviousValue(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
Assertions.assertThat(value.getPreviousValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
}
@Test
public void nextValue() {
SetStateRolesChange value = SetStateRolesChange.of();
value.setNextValue(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
Assertions.assertThat(value.getNextValue())
.isEqualTo(Collections.singletonList(
- com.commercetools.history.models.common.StateRole.findEnum("ReviewIncludedInStatistics")));
+ com.commercetools.history.models.common.StateRoleEnum.findEnum("ReviewIncludedInStatistics")));
}
}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java
new file mode 100644
index 00000000000..5c588b38042
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributeLocalizedEnumValueTest.java
@@ -0,0 +1,46 @@
+
+package com.commercetools.history.models.common;
+
+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 AttributeLocalizedEnumValueTest {
+
+ @TestTemplate
+ @UseDataProvider("objectBuilder")
+ public void buildUnchecked(AttributeLocalizedEnumValueBuilder builder) {
+ AttributeLocalizedEnumValue attributeLocalizedEnumValue = builder.buildUnchecked();
+ Assertions.assertThat(attributeLocalizedEnumValue).isInstanceOf(AttributeLocalizedEnumValue.class);
+ }
+
+ @DataProvider
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { AttributeLocalizedEnumValue.builder().key("key") },
+ new Object[] { AttributeLocalizedEnumValue.builder()
+ .label(new com.commercetools.history.models.common.LocalizedStringImpl()) } };
+ }
+
+ @Test
+ public void key() {
+ AttributeLocalizedEnumValue value = AttributeLocalizedEnumValue.of();
+ value.setKey("key");
+ Assertions.assertThat(value.getKey()).isEqualTo("key");
+ }
+
+ @Test
+ public void label() {
+ AttributeLocalizedEnumValue value = AttributeLocalizedEnumValue.of();
+ value.setLabel(new com.commercetools.history.models.common.LocalizedStringImpl());
+ Assertions.assertThat(value.getLabel())
+ .isEqualTo(new com.commercetools.history.models.common.LocalizedStringImpl());
+ }
+}
diff --git a/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java
new file mode 100644
index 00000000000..69db8556f9a
--- /dev/null
+++ b/commercetools/commercetools-sdk-java-history/src/test/java-generated/com/commercetools/history/models/common/AttributePlainEnumValueTest.java
@@ -0,0 +1,44 @@
+
+package com.commercetools.history.models.common;
+
+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 AttributePlainEnumValueTest {
+
+ @TestTemplate
+ @UseDataProvider("objectBuilder")
+ public void buildUnchecked(AttributePlainEnumValueBuilder builder) {
+ AttributePlainEnumValue attributePlainEnumValue = builder.buildUnchecked();
+ Assertions.assertThat(attributePlainEnumValue).isInstanceOf(AttributePlainEnumValue.class);
+ }
+
+ @DataProvider
+ public static Object[][] objectBuilder() {
+ return new Object[][] { new Object[] { AttributePlainEnumValue.builder().key("key") },
+ new Object[] { AttributePlainEnumValue.builder().label("label") } };
+ }
+
+ @Test
+ public void key() {
+ AttributePlainEnumValue value = AttributePlainEnumValue.of();
+ value.setKey("key");
+ Assertions.assertThat(value.getKey()).isEqualTo("key");
+ }
+
+ @Test
+ public void label() {
+ AttributePlainEnumValue value = AttributePlainEnumValue.of();
+ value.setLabel("label");
+ Assertions.assertThat(value.getLabel()).isEqualTo("label");
+ }
+}
diff --git a/references.txt b/references.txt
index 8ab8129b266..5571f5ee515 100644
--- a/references.txt
+++ b/references.txt
@@ -156,3 +156,4 @@ a9bf8d11b284086550a98ffb99550a7c6fd5e27e
df57a82adf35a75cf4d4a27212e68170550b0ad9
d1261b427f37a7d629b64bc1dde53692eb951368
734afcf36b8d35f56f2ad66b91795d8803390d9b
+42782cb8de2a614dbb8ee5488d8872ca797ad4c1
From 432750780e28e3f46c02cf7e6a422062fb0e59e1 Mon Sep 17 00:00:00 2001
From: Lam Tran
Date: Mon, 11 Dec 2023 10:53:27 +0100
Subject: [PATCH 05/59] Add example for opentelemetry export to dynatrace
(#524)
---
examples/spring-otel/README.md | 8 +++++--
.../service/CtpClientBeanService.java | 14 +++++++----
.../springmvc/service/OtelProvider.java | 24 +++++++++++++++++++
3 files changed, 40 insertions(+), 6 deletions(-)
create mode 100644 examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/OtelProvider.java
diff --git a/examples/spring-otel/README.md b/examples/spring-otel/README.md
index d1640f6d842..9d4a469e72b 100644
--- a/examples/spring-otel/README.md
+++ b/examples/spring-otel/README.md
@@ -14,8 +14,8 @@ OpenTelemetry auto instrumentation.
### OpenTelemetry collector
The [OpenTelemetry collector example](https://github.com/commercetools/opentelemetry-collector-example) repository includes
-a docker compose setup for starting a local OpenTelemetry collector in combination with Prometheus, Grafana, JaegerUI
-and NewRelic as exporter target.
+a docker compose setup for starting a local OpenTelemetry collector in combination with Prometheus, Grafana, JaegerUI,
+NewRelic and Dynatrace as exporter target.
## Installation
@@ -49,3 +49,7 @@ see the traces in the Jaeger UI.
Grafana dashboards are to be found at http://localhost:3000/grafana/dashboards/
Prometheus is located at http://localhost:9090
+
+### Choose your OpenTelemetry provider
+To choose exporting to either NewRelic or Dynatrace you need to set the environment variable `OTEL_PROVIDER`
+to either `local`, `newrelic` or `dynatrace`. By default, the `local` settings are used.
diff --git a/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/CtpClientBeanService.java b/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/CtpClientBeanService.java
index ce9315e425a..e20a1e63f69 100644
--- a/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/CtpClientBeanService.java
+++ b/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/CtpClientBeanService.java
@@ -30,16 +30,22 @@ public class CtpClientBeanService {
@Value(value = "${ctp.project.key}")
private String projectKey;
+ @Value(value = "${otel.provider:local}")
+ private OtelProvider otelProvider;
+
private ClientCredentials credentials() {
return ClientCredentials.of().withClientId(clientId).withClientSecret(clientSecret).build();
}
@Bean
public ProjectScopedApiRoot apiRoot() {
- return ApiRootBuilder.of()
+ ApiRootBuilder builder = ApiRootBuilder.of()
.defaultClient(credentials())
- .withSerializer(new OpenTelemetryResponseSerializer(ResponseSerializer.of(), GlobalOpenTelemetry.get()))
- .withTelemetryMiddleware(new OpenTelemetryMiddleware(GlobalOpenTelemetry.get()))
- .build(projectKey);
+ .withTelemetryMiddleware(new OpenTelemetryMiddleware(GlobalOpenTelemetry.get(),
+ otelProvider.supportsHistogram()));
+ if (otelProvider.useOtelSerializer()) {
+ builder.withSerializer(new OpenTelemetryResponseSerializer(ResponseSerializer.of(), GlobalOpenTelemetry.get()));
+ }
+ return builder.build(projectKey);
}
}
diff --git a/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/OtelProvider.java b/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/OtelProvider.java
new file mode 100644
index 00000000000..196209f3ba7
--- /dev/null
+++ b/examples/spring-otel/src/main/java/com/commercetools/sdk/examples/springmvc/service/OtelProvider.java
@@ -0,0 +1,24 @@
+package com.commercetools.sdk.examples.springmvc.service;
+
+public enum OtelProvider {
+ LOCAL(true, true),
+ NEW_RELIC(true, true),
+ DYNATRACE(false, false);
+
+ private final boolean supportsHistogram;
+
+ private final boolean useOtelSerializer;
+
+ OtelProvider(boolean supportsHistogram, boolean useOtelSerializer) {
+ this.supportsHistogram = supportsHistogram;
+ this.useOtelSerializer = useOtelSerializer;
+ }
+
+ public boolean supportsHistogram() {
+ return supportsHistogram;
+ }
+
+ public boolean useOtelSerializer() {
+ return useOtelSerializer;
+ }
+}
From f5f219439fc23196d9c41c3307995af979558f91 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Tue, 12 Dec 2023 08:46:14 +0000
Subject: [PATCH 06/59] build(codegen): updating SDK
---
.../com/commercetools/api/models/order/ShipmentState.java | 2 +-
references.txt | 1 +
2 files changed, 2 insertions(+), 1 deletion(-)
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java
index 61418d20e99..a6d982c476c 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/order/ShipmentState.java
@@ -11,7 +11,7 @@
import io.vrap.rmf.base.client.utils.Generated;
/**
- * Indicates the shipment status of the Parcel.
+ * Indicates the shipment status of the Order.
*/
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public interface ShipmentState extends JsonEnum {
diff --git a/references.txt b/references.txt
index 5571f5ee515..0c634a18169 100644
--- a/references.txt
+++ b/references.txt
@@ -157,3 +157,4 @@ df57a82adf35a75cf4d4a27212e68170550b0ad9
d1261b427f37a7d629b64bc1dde53692eb951368
734afcf36b8d35f56f2ad66b91795d8803390d9b
42782cb8de2a614dbb8ee5488d8872ca797ad4c1
+dafb565c9cf91bdaad65bf8111c8748b0015184c
From 75d1b1969476a73f7fa38e1048ba10b986a5b9d4 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Tue, 12 Dec 2023 09:09:02 +0000
Subject: [PATCH 07/59] build(codegen): updating SDK
---
.../src/main/resources/graphql/schema.graphqls | 6 ------
references.txt | 1 +
2 files changed, 1 insertion(+), 6 deletions(-)
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 af055beca45..50ac5d561ae 100644
--- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
+++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
@@ -1699,7 +1699,6 @@ type Cart implements Versioned & ReferenceExpandable {
customLineItems: [CustomLineItem!]!
totalPrice: Money!
taxedPrice: TaxedPrice
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
discountOnTotalPrice: DiscountOnTotalPrice
shippingAddress: Address
billingAddress: Address
@@ -1862,12 +1861,10 @@ input CartDiscountTargetInput {
totalPrice: CartDiscountTotalPriceTargetInput
}
-"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type CartDiscountTotalPriceTarget implements CartDiscountTarget {
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"
input CartDiscountTotalPriceTargetInput {
dummy: String
}
@@ -4092,7 +4089,6 @@ type DiscountedProductSearchPriceValue {
discount: ProductDiscount
}
-"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
type DiscountedTotalPricePortion {
discount: CartDiscount
discountRef: Reference!
@@ -6451,7 +6447,6 @@ type Order implements Versioned & ReferenceExpandable {
customLineItems: [CustomLineItem!]!
totalPrice: Money!
taxedPrice: TaxedPrice
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
discountOnTotalPrice: DiscountOnTotalPrice
shippingAddress: Address
billingAddress: Address
@@ -13685,7 +13680,6 @@ type TimeType implements FieldType {
name: 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 DiscountOnTotalPrice {
discountedAmount: BaseMoney!
includedDiscounts: [DiscountedTotalPricePortion!]!
diff --git a/references.txt b/references.txt
index 0c634a18169..ee03e653ce2 100644
--- a/references.txt
+++ b/references.txt
@@ -158,3 +158,4 @@ d1261b427f37a7d629b64bc1dde53692eb951368
734afcf36b8d35f56f2ad66b91795d8803390d9b
42782cb8de2a614dbb8ee5488d8872ca797ad4c1
dafb565c9cf91bdaad65bf8111c8748b0015184c
+38de4175b3e39979dedce5a9766cb221be43ae55
From 3c6239bcb3f734e599bfa20b45c5224fbbad8cd3 Mon Sep 17 00:00:00 2001
From: Jens Schulze
Date: Tue, 12 Dec 2023 15:27:18 +0100
Subject: [PATCH 08/59] Update Makefile
---
Makefile | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/Makefile b/Makefile
index 2bd8d031ef7..96f334b6c34 100644
--- a/Makefile
+++ b/Makefile
@@ -8,7 +8,7 @@ CPUS := `./tools/numcpu.sh`
.PHONY: build build_api_sdk build_import_sdk build_import_sdk build_ml_sdk gen_api_sdk gen_import_sdk gen_ml_sdk gen_history_sdk
-build: codegen_install gen_api_sdk gen_import_sdk gen_ml_sdk gen_history_sdk prettify verify
+build: codegen_install gen_api_sdk gen_import_sdk gen_history_sdk prettify verify
build_api_sdk: codegen_install gen_api_sdk prettify verify
build_import_sdk: codegen_install gen_import_sdk prettify verify
build_ml_sdk: codegen_install gen_ml_sdk prettify verify
From 486d885b9f1d01b519c8c0d4f84920f36cb16c37 Mon Sep 17 00:00:00 2001
From: Auto Mation
Date: Wed, 13 Dec 2023 09:45:38 +0000
Subject: [PATCH 09/59] build(codegen): updating SDK
---
.../src/main/resources/graphql/schema.graphqls | 14 --------------
references.txt | 1 +
2 files changed, 1 insertion(+), 14 deletions(-)
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 50ac5d561ae..17332dc2eda 100644
--- a/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
+++ b/commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls
@@ -125,7 +125,6 @@ input AddCartDiscountCode {
validateDuplicates: Boolean = false
}
-"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input AddCartDiscountStore {
store: ResourceIdentifierInput!
}
@@ -1783,11 +1782,7 @@ type CartDiscount implements Versioned & ReferenceExpandable {
descriptionAllLocales: [LocalizedString!]
referenceRefs: [Reference!]!
custom: CustomFieldsType
-
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
storesRef: [KeyReference!]!
-
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
stores: [Store!]!
value: CartDiscountValue!
target: CartDiscountTarget
@@ -1813,8 +1808,6 @@ input CartDiscountDraft {
isActive: Boolean = true
custom: CustomFieldsDraft
key: String
-
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
stores: [ResourceIdentifierInput!]
}
@@ -1869,13 +1862,8 @@ input CartDiscountTotalPriceTargetInput {
dummy: String
}
input CartDiscountUpdateAction {
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
setStores: SetCartDiscountStores
-
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
addStore: AddCartDiscountStore
-
- "BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
removeStore: RemoveCartDiscountStore
changeCartPredicate: ChangeCartDiscountCartPredicate
changeIsActive: ChangeCartDiscountIsActive
@@ -9238,7 +9226,6 @@ input RemoveCartDiscountCode {
discountCode: ReferenceInput!
}
-"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input RemoveCartDiscountStore {
store: ResourceIdentifierInput!
}
@@ -10158,7 +10145,6 @@ input SetCartDiscountKey {
key: String
}
-"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
input SetCartDiscountStores {
stores: [ResourceIdentifierInput!]
}
diff --git a/references.txt b/references.txt
index ee03e653ce2..c52e7319aba 100644
--- a/references.txt
+++ b/references.txt
@@ -159,3 +159,4 @@ d1261b427f37a7d629b64bc1dde53692eb951368
42782cb8de2a614dbb8ee5488d8872ca797ad4c1
dafb565c9cf91bdaad65bf8111c8748b0015184c
38de4175b3e39979dedce5a9766cb221be43ae55
+85aae17bd44bdce82d5c034bb5af040e50b6a308
From 6f477edcd6ea6e56325664d11ca12b2f922dec3d Mon Sep 17 00:00:00 2001
From: Jens Schulze
Date: Thu, 14 Dec 2023 12:31:13 +0100
Subject: [PATCH 10/59] Update ci.yml
---
.github/workflows/ci.yml | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index df4a56033bb..842ffbb9d34 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -2,6 +2,7 @@ on:
- push
- workflow_dispatch
- pull_request
+ - merge_group
name: CI
@@ -71,7 +72,7 @@ jobs:
disable_globbing: true
- name: Run integration tests for PR
- if: github.event_name == 'pull_request'
+ if: github.event_name == 'pull_request' || github.event_name == 'merge_group'
run: ./gradlew clean build publishMavenPublicationToMavenLocal runMainMethodThreadLeakTest runMainMethodMemoryLeakTest
env:
CTP_CLIENT_ID: ${{ secrets.CTP_CLIENT_ID_PR }}
@@ -81,7 +82,7 @@ jobs:
CTP_JVM_SDK_LOG_LEVEL: OFF
- name: Run integration tests
- if: github.event_name != 'pull_request'
+ if: github.event_name != 'pull_request' && github.event_name != 'merge_group'
run: ./gradlew clean build publishMavenPublicationToMavenLocal runMainMethodThreadLeakTest runMainMethodMemoryLeakTest
env:
CTP_CLIENT_ID: ${{ secrets.CTP_CLIENT_ID }}
From 7c679d9fcc972ba88e86776475a45de1e96a521a Mon Sep 17 00:00:00 2001
From: Jens Schulze
Date: Thu, 14 Dec 2023 12:54:19 +0100
Subject: [PATCH 11/59] Update ci.yml
---
.github/workflows/ci.yml | 2 ++
1 file changed, 2 insertions(+)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index 842ffbb9d34..ca0aaa1a026 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -14,6 +14,8 @@ jobs:
name: Integration tests
runs-on: ubuntu-latest
+ concurrency:
+ group: ${{ github.event_name }}
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
From 5ea600c22bbee32f6429bb72b3d43b7bea9e9d5f Mon Sep 17 00:00:00 2001
From: Jens Schulze
Date: Thu, 14 Dec 2023 13:06:36 +0100
Subject: [PATCH 12/59] Update ci.yml
---
.github/workflows/ci.yml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index ca0aaa1a026..e884ad20239 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -16,7 +16,7 @@ jobs:
runs-on: ubuntu-latest
concurrency:
group: ${{ github.event_name }}
-
+ cancel-in-progress: false
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
From 3c717b9b79dd5f8f7b869abae8d8f4324b12661d Mon Sep 17 00:00:00 2001
From: Jens Schulze
Date: Thu, 14 Dec 2023 13:22:34 +0100
Subject: [PATCH 13/59] Update ci.yml
---
.github/workflows/ci.yml | 15 ++++++++-------
1 file changed, 8 insertions(+), 7 deletions(-)
diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml
index e884ad20239..a3ff9d85d1c 100644
--- a/.github/workflows/ci.yml
+++ b/.github/workflows/ci.yml
@@ -1,8 +1,12 @@
on:
- - push
- - workflow_dispatch
- - pull_request
- - merge_group
+ push:
+ branches-ignore:
+ - 'renovate/**'
+ workflow_dispatch:
+ pull_request:
+ branches-ignore:
+ - 'renovate/**'
+ merge_group:
name: CI
@@ -14,9 +18,6 @@ jobs:
name: Integration tests
runs-on: ubuntu-latest
- concurrency:
- group: ${{ github.event_name }}
- cancel-in-progress: false
permissions:
contents: write # for stefanzweifel/git-auto-commit-action to push code in repo
From 70be102b5ce201b6ce491e84a76939fa01f02cf2 Mon Sep 17 00:00:00 2001
From: Jens Schulze
Date: Thu, 14 Dec 2023 14:01:20 +0100
Subject: [PATCH 14/59] disable flaky product search test
---
.../product_projection/ProductProjectionIntegrationTests.java | 2 ++
.../java/commercetools/utils/CommercetoolsTestUtils.java | 3 ++-
2 files changed, 4 insertions(+), 1 deletion(-)
diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/product_projection/ProductProjectionIntegrationTests.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/product_projection/ProductProjectionIntegrationTests.java
index 8865f37003a..c266d6db22e 100644
--- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/product_projection/ProductProjectionIntegrationTests.java
+++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/product_projection/ProductProjectionIntegrationTests.java
@@ -14,6 +14,7 @@
import org.assertj.core.api.Assertions;
import org.assertj.core.util.Lists;
+import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
public class ProductProjectionIntegrationTests {
@@ -83,6 +84,7 @@ public void search() {
}
@Test
+ @Disabled
public void searchBoolean() {
ProjectApiRoot apiRoot = CommercetoolsTestUtils.getProjectApiRoot();
withProduct(product1 -> {
diff --git a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/utils/CommercetoolsTestUtils.java b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/utils/CommercetoolsTestUtils.java
index 8646c6cd1e8..7fc34db6106 100644
--- a/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/utils/CommercetoolsTestUtils.java
+++ b/commercetools/commercetools-sdk-java-api/src/integrationTest/java/commercetools/utils/CommercetoolsTestUtils.java
@@ -83,7 +83,8 @@ public static void assertEventually(final Duration maxWaitTime, final Duration w
}
catch (AssertionError e) {
if (System.currentTimeMillis() > timeOutAt) {
- throw e;
+ throw new AssertionError(
+ String.format("assertEventually timed out after %s seconds", maxWaitTime.getSeconds()), e);
}
}
From 3c0fe5cf7e6c882f3d923ea1ec539599fa9bdcbe Mon Sep 17 00:00:00 2001
From: lojzatran
Date: Thu, 14 Dec 2023 22:34:44 +0100
Subject: [PATCH 15/59] Add example for Spring dynatrace oneagent
---
examples/spring-dynatrace-oneagent/.gitignore | 38 +
.../spring-dynatrace-oneagent/.java-version | 1 +
examples/spring-dynatrace-oneagent/Dockerfile | 30 +
examples/spring-dynatrace-oneagent/README.md | 37 +
.../spring-dynatrace-oneagent/build.gradle | 42 +
.../gradle/wrapper/gradle-wrapper.jar | Bin 0 -> 60756 bytes
.../gradle/wrapper/gradle-wrapper.properties | 5 +
examples/spring-dynatrace-oneagent/gradlew | 240 +
.../spring-dynatrace-oneagent/gradlew.bat | 91 +
.../spring-dynatrace-oneagent/settings.gradle | 1 +
.../springmvc/SpringmvcApplication.java | 15 +
.../springmvc/config/CtpSecurityConfig.java | 32 +
.../springmvc/config/MonitoringConfig.java | 44 +
.../examples/springmvc/config/WebConfig.java | 27 +
.../springmvc/service/CartRepository.java | 86 +
.../service/CtpClientBeanService.java | 36 +
.../springmvc/service/ProductsRepository.java | 28 +
.../examples/springmvc/web/AppController.java | 72 +
.../src/main/resources/logback.xml | 21 +
.../src/main/resources/static/css/site.css | 96 +
.../src/main/resources/static/favicon.ico | Bin 0 -> 5430 bytes
.../src/main/resources/static/js/site.js | 4 +
.../resources/static/lib/bootstrap/LICENSE | 22 +
.../lib/bootstrap/dist/css/bootstrap-grid.css | 3719 ++++++
.../bootstrap/dist/css/bootstrap-grid.css.map | 1 +
.../bootstrap/dist/css/bootstrap-grid.min.css | 7 +
.../dist/css/bootstrap-grid.min.css.map | 1 +
.../bootstrap/dist/css/bootstrap-reboot.css | 331 +
.../dist/css/bootstrap-reboot.css.map | 1 +
.../dist/css/bootstrap-reboot.min.css | 8 +
.../dist/css/bootstrap-reboot.min.css.map | 1 +
.../lib/bootstrap/dist/css/bootstrap.css | 10038 ++++++++++++++
.../lib/bootstrap/dist/css/bootstrap.css.map | 1 +
.../lib/bootstrap/dist/css/bootstrap.min.css | 7 +
.../bootstrap/dist/css/bootstrap.min.css.map | 1 +
.../lib/bootstrap/dist/js/bootstrap.bundle.js | 7013 ++++++++++
.../bootstrap/dist/js/bootstrap.bundle.js.map | 1 +
.../bootstrap/dist/js/bootstrap.bundle.min.js | 7 +
.../dist/js/bootstrap.bundle.min.js.map | 1 +
.../static/lib/bootstrap/dist/js/bootstrap.js | 4435 +++++++
.../lib/bootstrap/dist/js/bootstrap.js.map | 1 +
.../lib/bootstrap/dist/js/bootstrap.min.js | 7 +
.../bootstrap/dist/js/bootstrap.min.js.map | 1 +
.../jquery-validation-unobtrusive/LICENSE.txt | 12 +
.../jquery.validate.unobtrusive.js | 432 +
.../jquery.validate.unobtrusive.min.js | 5 +
.../static/lib/jquery-validation/LICENSE.md | 22 +
.../dist/additional-methods.js | 1158 ++
.../dist/additional-methods.min.js | 4 +
.../jquery-validation/dist/jquery.validate.js | 1601 +++
.../dist/jquery.validate.min.js | 4 +
.../resources/static/lib/jquery/LICENSE.txt | 36 +
.../static/lib/jquery/dist/jquery.js | 10872 ++++++++++++++++
.../static/lib/jquery/dist/jquery.min.js | 2 +
.../static/lib/jquery/dist/jquery.min.map | 1 +
.../main/resources/templates/home/index.html | 11 +
.../main/resources/templates/home/pop.html | 35 +
.../src/main/resources/templates/login.html | 23 +
.../main/resources/templates/me/index.html | 12 +
.../main/resources/templates/me/signin.html | 0
.../resources/templates/mycart/index.html | 37 +
.../resources/templates/shared/error.html | 0
.../resources/templates/shared/layout.html | 54 +
.../templates/shared/login-partial.html | 10 +
.../shared/validation-scripts-partial.html | 2 +
.../springmvc/SpringmvcApplicationTests.java | 13 +
66 files changed, 40896 insertions(+)
create mode 100644 examples/spring-dynatrace-oneagent/.gitignore
create mode 100644 examples/spring-dynatrace-oneagent/.java-version
create mode 100644 examples/spring-dynatrace-oneagent/Dockerfile
create mode 100644 examples/spring-dynatrace-oneagent/README.md
create mode 100644 examples/spring-dynatrace-oneagent/build.gradle
create mode 100644 examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.jar
create mode 100644 examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.properties
create mode 100755 examples/spring-dynatrace-oneagent/gradlew
create mode 100644 examples/spring-dynatrace-oneagent/gradlew.bat
create mode 100644 examples/spring-dynatrace-oneagent/settings.gradle
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/SpringmvcApplication.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/config/CtpSecurityConfig.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/config/MonitoringConfig.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/config/WebConfig.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/service/CartRepository.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/service/CtpClientBeanService.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/service/ProductsRepository.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/java/com/commercetools/sdk/examples/springmvc/web/AppController.java
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/logback.xml
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/css/site.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/favicon.ico
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/js/site.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/LICENSE
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-grid.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-grid.css.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-grid.min.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-grid.min.css.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-reboot.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-reboot.css.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-reboot.min.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap-reboot.min.css.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap.css.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap.min.css
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/css/bootstrap.min.css.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.bundle.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.bundle.js.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.bundle.min.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.bundle.min.js.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.js.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.min.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/bootstrap/dist/js/bootstrap.min.js.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation-unobtrusive/LICENSE.txt
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation-unobtrusive/jquery.validate.unobtrusive.min.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation/LICENSE.md
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation/dist/additional-methods.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation/dist/additional-methods.min.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation/dist/jquery.validate.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery-validation/dist/jquery.validate.min.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery/LICENSE.txt
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery/dist/jquery.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery/dist/jquery.min.js
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/static/lib/jquery/dist/jquery.min.map
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/home/index.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/home/pop.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/login.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/me/index.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/me/signin.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/mycart/index.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/shared/error.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/shared/layout.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/shared/login-partial.html
create mode 100644 examples/spring-dynatrace-oneagent/src/main/resources/templates/shared/validation-scripts-partial.html
create mode 100644 examples/spring-dynatrace-oneagent/src/test/java/com/commercetools/sdk/examples/springmvc/SpringmvcApplicationTests.java
diff --git a/examples/spring-dynatrace-oneagent/.gitignore b/examples/spring-dynatrace-oneagent/.gitignore
new file mode 100644
index 00000000000..1bb1392abb5
--- /dev/null
+++ b/examples/spring-dynatrace-oneagent/.gitignore
@@ -0,0 +1,38 @@
+HELP.md
+.gradle
+build/
+!gradle/wrapper/gradle-wrapper.jar
+!**/src/main/**/build/
+!**/src/test/**/build/
+**/application.properties
+
+### STS ###
+.apt_generated
+.classpath
+.factorypath
+.project
+.settings
+.springBeans
+.sts4-cache
+bin/
+!**/src/main/**/bin/
+!**/src/test/**/bin/
+
+### IntelliJ IDEA ###
+.idea
+*.iws
+*.iml
+*.ipr
+out/
+!**/src/main/**/out/
+!**/src/test/**/out/
+
+### NetBeans ###
+/nbproject/private/
+/nbbuild/
+/dist/
+/nbdist/
+/.nb-gradle/
+
+### VS Code ###
+.vscode/
diff --git a/examples/spring-dynatrace-oneagent/.java-version b/examples/spring-dynatrace-oneagent/.java-version
new file mode 100644
index 00000000000..03b6389f32a
--- /dev/null
+++ b/examples/spring-dynatrace-oneagent/.java-version
@@ -0,0 +1 @@
+17.0
diff --git a/examples/spring-dynatrace-oneagent/Dockerfile b/examples/spring-dynatrace-oneagent/Dockerfile
new file mode 100644
index 00000000000..419ccc99a66
--- /dev/null
+++ b/examples/spring-dynatrace-oneagent/Dockerfile
@@ -0,0 +1,30 @@
+# Use an official OpenJDK runtime as a base image
+FROM openjdk:17-jdk-slim
+
+ENV DT_PAAS_TOKEN="your PAAS token from Dynatrace (https://docs.dynatrace.com/docs/manage/access-control/access-tokens#paas-token)"
+ENV DT_ENVIRONMENT_URL="your environment URL from Dynatrace (https://docs.dynatrace.com/docs/setup-and-configuration/setup-on-container-platforms/docker/set-up-oneagent-on-containers-for-application-only-monitoring#cloud-platforms)"
+ENV CTP_CLIENT_SECRET="CTP client secret"
+ENV CTP_CLIENT_ID="CTP client ID"
+ENV CTP_PROJECT_KEY="CTP project key"
+
+# Set the working directory inside the container
+WORKDIR /app
+
+# Copy the packaged JAR file into the container at the specified path
+COPY build/libs/spring-dynatrace-oneagent-0.0.1-SNAPSHOT.jar /app/spring-dynatrace-oneagent-0.0.1-SNAPSHOT.jar
+
+# Expose the port that your Spring Boot application will run on
+EXPOSE 8080
+
+RUN apt-get update && \
+ apt-get install -y wget unzip && \
+ rm -rf /var/lib/apt/lists/*
+
+# ARGs for Dynatrace OneAgent
+
+RUN mkdir -p /opt/dynatrace/oneagent && ARCHIVE=$(mktemp) && wget -O $ARCHIVE "https://$DT_ENVIRONMENT_URL.live.dynatrace.com/api/v1/deployment/installer/agent/unix/paas/latest?Api-Token=$DT_PAAS_TOKEN&flavor=default&arch=arm&include=$DT_ONEAGENT_TECHNOLOGY" && unzip -o -d /opt/dynatrace/oneagent $ARCHIVE && rm -f $ARCHIVE
+
+ENV LD_PRELOAD /opt/dynatrace/oneagent/agent/lib64/liboneagentproc.so
+
+# Set the entry point to start Dynatrace OneAgent
+ENTRYPOINT [ "java", "-jar", "spring-dynatrace-oneagent-0.0.1-SNAPSHOT.jar" ]
diff --git a/examples/spring-dynatrace-oneagent/README.md b/examples/spring-dynatrace-oneagent/README.md
new file mode 100644
index 00000000000..34f2dc862ec
--- /dev/null
+++ b/examples/spring-dynatrace-oneagent/README.md
@@ -0,0 +1,37 @@
+# Spring MVC example app
+
+Example to show how Java SDK can be used in a Spring Boot application with Dynatrace OneAgent monitoring.
+
+## Requirements
+
+- A Composable Commerce Project with a configured [API Client](https://docs.commercetools.com/tutorials/getting-started#creating-an-api-client).
+ Necessary scopes: `view_published_products`, `manage_orders`
+- Your Project must have existing products containing variants with SKUs, and at least one customer, the storefront search endpoint must be active.
+- If your Project is currently empty, you can install the [SUNRISE sample data](https://docs.commercetools.com/sdk/sunrise-data).
+
+## Installation
+
+1. Clone/Download the example folder.
+2. Navigate to the path `spring-dynatrace-oneagent/`.
+3. Register the client credentials in environment variables:
+ `CTP_CLIENT_ID`, `CTP_CLIENT_SECRET` and `CTP_PROJECT_KEY`
+
+## Using the Spring MVC Example app
+
+### Install Dynatrace OneAgent
+Follow the instructions on the [Dynatrace OneAgent page](
+https://docs.dynatrace.com/docs/setup-and-configuration/dynatrace-oneagent#tabgroup--technology-support--operating-systems) to install the OneAgent on your system.
+
+#### Install Dynatrace OneAgent on Mac
+Currently, it is NOT possible to install Dynatrace OneAgent on macOS. For this case a [Dockerfile](./Dockerfile) is provided.
+Use this file to build the application with the OneAgent included on Docker.
+1. Run `./gradlew bootJar` to build a JAR file. This JAR file is necessary to build the Docker image.
+2. Update ENV variables in the [Dockerfile](./Dockerfile) with your Dynatrace and CTP credentials.
+3. Run `docker build -t spring-dynatrace-oneagent .` to build the Docker image.
+4. Run `docker run -p 8080:8080 spring-dynatrace-oneagent` to start the Docker container.
+
+### Navigate the application
+
+1. Open a new browser window/tab
+2. Navigate to [http://localhost:8080/p](http://localhost:8080/p) and a list of products should appear.
+
diff --git a/examples/spring-dynatrace-oneagent/build.gradle b/examples/spring-dynatrace-oneagent/build.gradle
new file mode 100644
index 00000000000..75ecdb580c1
--- /dev/null
+++ b/examples/spring-dynatrace-oneagent/build.gradle
@@ -0,0 +1,42 @@
+plugins {
+ id 'java'
+ id 'org.springframework.boot' version '3.0.4'
+ id 'io.spring.dependency-management' version '1.1.0'
+}
+
+group = 'com.commercetools.sdk.examples'
+version = '0.0.1-SNAPSHOT'
+
+java {
+ toolchain {
+ languageVersion = JavaLanguageVersion.of(17)
+ }
+}
+
+repositories {
+ mavenLocal()
+ mavenCentral()
+}
+
+ext {
+ versions = [
+ commercetools: "17.3.0",
+ ]
+}
+
+dependencies {
+ implementation "com.commercetools.sdk:commercetools-sdk-java-api:${versions.commercetools}"
+ implementation "com.commercetools.sdk:commercetools-apachehttp-client:${versions.commercetools}"
+ implementation 'org.springframework.boot:spring-boot-starter-actuator'
+ implementation 'org.springframework.boot:spring-boot-starter-security'
+ implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
+ implementation 'org.springframework.boot:spring-boot-starter-web'
+ implementation 'org.thymeleaf.extras:thymeleaf-extras-springsecurity6'
+ testImplementation 'org.springframework.boot:spring-boot-starter-test'
+ testImplementation 'org.springframework.security:spring-security-test'
+ developmentOnly "org.springframework.boot:spring-boot-devtools"
+}
+
+tasks.named('test') {
+ useJUnitPlatform()
+}
diff --git a/examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.jar b/examples/spring-dynatrace-oneagent/gradle/wrapper/gradle-wrapper.jar
new file mode 100644
index 0000000000000000000000000000000000000000..249e5832f090a2944b7473328c07c9755baa3196
GIT binary patch
literal 60756
zcmb5WV{~QRw(p$^Dz@00IL3?^hro$gg*4VI_WAaTyVM5Foj~O|-84
z$;06hMwt*rV;^8iB
z1~&0XWpYJmG?Ts^K9PC62H*`G}xom%S%yq|xvG~FIfP=9*f
zZoDRJBm*Y0aId=qJ?7dyb)6)JGWGwe)MHeNSzhi)Ko6J<-m@v=a%NsP537lHe0R*
z`If4$aaBA#S=w!2z&m>{lpTy^Lm^mg*3?M&7HFv}7K6x*cukLIGX;bQG|QWdn{%_6
zHnwBKr84#B7Z+AnBXa16a?or^R?+>$4`}{*a_>IhbjvyTtWkHw)|ay)ahWUd-qq$~
zMbh6roVsj;_qnC-R{G+Cy6bApVOinSU-;(DxUEl!i2)1EeQ9`hrfqj(nKI7?Z>Xur
zoJz-a`PxkYit1HEbv|jy%~DO^13J-ut986EEG=66S}D3!L}Efp;Bez~7tNq{QsUMm
zh9~(HYg1pA*=37C0}n4g&bFbQ+?-h-W}onYeE{q;cIy%eZK9wZjSwGvT+&Cgv
z?~{9p(;bY_1+k|wkt_|N!@J~aoY@|U_RGoWX<;p{Nu*D*&_phw`8jYkMNpRTWx1H*
z>J-Mi_!`M468#5Aix$$u1M@rJEIOc?k^QBc?T(#=n&*5eS#u*Y)?L8Ha$9wRWdH^3D4|Ps)Y?m0q~SiKiSfEkJ!=^`lJ(%W3o|CZ
zSrZL-Xxc{OrmsQD&s~zPfNJOpSZUl%V8tdG%ei}lQkM+z@-4etFPR>GOH9+Y_F<3=~SXln9Kb-o~f>2a6Xz@AS3cn^;c_>lUwlK(n>z?A>NbC
z`Ud8^aQy>wy=$)w;JZzA)_*Y$Z5hU=KAG&htLw1Uh00yE!|Nu{EZkch
zY9O6x7Y??>!7pUNME*d!=R#s)ghr|R#41l!c?~=3CS8&zr6*aA7n9*)*PWBV2w+&I
zpW1-9fr3j{VTcls1>ua}F*bbju_Xq%^v;-W~paSqlf
zolj*dt`BBjHI)H9{zrkBo=B%>8}4jeBO~kWqO!~Thi!I1H(in=n^fS%nuL=X2+s!p}HfTU#NBGiwEBF^^tKU
zbhhv+0dE-sbK$>J#t-J!B$TMgN@Wh5wTtK2BG}4BGfsZOoRUS#G8Cxv|6EI*n&Xxq
zt{&OxCC+BNqz$9b0WM7_PyBJEVObHFh%%`~!@MNZlo*oXDCwDcFwT~Rls!aApL<)^
zbBftGKKBRhB!{?fX@l2_y~%ygNFfF(XJzHh#?`WlSL{1lKT*gJM
zs>bd^H9NCxqxn(IOky5k-wALFowQr(gw%|`0991u#9jXQh?4l|l>pd6a&rx|v=fPJ
z1mutj{YzpJ_gsClbWFk(G}bSlFi-6@mwoQh-XeD*j@~huW4(8ub%^I|azA)h2t#yG
z7e_V_<4jlM3D(I+qX}yEtqj)cpzN*oCdYHa!nm%0t^wHm)EmFP*|FMw!tb@&`G-u~
zK)=Sf6z+BiTAI}}i{*_Ac$ffr*Wrv$F7_0gJkjx;@)XjYSh`RjAgrCck`x!zP>Ifu
z&%he4P|S)H*(9oB4uvH67^0}I-_ye_!w)u3v2+EY>eD3#8QR24<;7?*hj8k~rS)~7
zSXs5ww)T(0eHSp$hEIBnW|Iun<_i`}VE0Nc$|-R}wlSIs5pV{g_Dar(Zz<4X3`W?K
z6&CAIl4U(Qk-tTcK{|zYF6QG5ArrEB!;5s?tW7
zrE3hcFY&k)+)e{+YOJ0X2uDE_hd2{|m_dC}kgEKqiE9Q^A-+>2UonB+L@v3$9?AYw
zVQv?X*pK;X4Ovc6Ev5Gbg{{Eu*7{N3#0@9oMI~}KnObQE#Y{&3mM4`w%wN+xrKYgD
zB-ay0Q}m{QI;iY`s1Z^NqIkjrTlf`B)B#MajZ#9u41oRBC1oM1vq0i|F59>
z#StM@bHt|#`2)cpl_rWB($DNJ3Lap}QM-+A$3pe}NyP(@+i1>o^fe-oxX#Bt`mcQc
zb?pD4W%#ep|3%CHAYnr*^M6Czg>~L4?l16H1OozM{P*en298b+`i4$|w$|4AHbzqB
zHpYUsHZET$Z0ztC;U+0*+amF!@PI%^oUIZy{`L{%O^i{Xk}X0&nl)n~tVEpcAJSJ}
zverw15zP1P-O8h9nd!&hj$zuwjg?DoxYIw{jWM
zW5_pj+wFy8Tsa9g<7Qa21WaV&;ejoYflRKcz?#fSH_)@*QVlN2l4(QNk|
z4aPnv&mrS&0|6NHq05XQw$J^RR9T{3SOcMKCXIR1iSf+xJ0E_Wv?jEc*I#ZPzyJN2
zUG0UOXHl+PikM*&g$U@g+KbG-RY>uaIl&DEtw_Q=FYq?etc!;hEC_}UX{eyh%dw2V
zTTSlap&5>PY{6I#(6`j-9`D&I#|YPP8a;(sOzgeKDWsLa!i-$frD>zr-oid!Hf&yS
z!i^cr&7tN}OOGmX2)`8k?Tn!!4=tz~3hCTq_9CdiV!NIblUDxHh(FJ$zs)B2(t5@u
z-`^RA1ShrLCkg0)OhfoM;4Z{&oZmAec$qV@
zGQ(7(!CBk<5;Ar%DLJ0p0!ResC#U<+3i<|vib1?{5gCebG7$F7URKZXuX-2WgF>YJ^i
zMhHDBsh9PDU8dlZ$yJKtc6JA#y!y$57%sE>4Nt+wF1lfNIWyA`=hF=9Gj%sRwi@vd
z%2eVV3y&dvAgyuJ=eNJR+*080dbO_t@BFJO<@yqTK&+xc|FRR;p;KVk@J3$S{p`
zGaMj6isho#%m)?pOG^G0mzOAw0z?!AEMsv=0T>WWcE>??WS=fII$t$(^PDPMU(P>o
z_*0s^W#|x)%tx8jIgZY~A2yG;US0m2ZOQt6yJqW@XNY_>_R7(Nxb8Ged6BdYW6{prd!|zuX$@Q2o6Ona8zzYC1u!+2!Y$Jc9a;wy+pXt}o6~Bu1oF1c
zp7Y|SBTNi@=I(K%A60PMjM#sfH$y*c{xUgeSpi#HB`?|`!Tb&-qJ3;vxS!TIz2E
z;?m$vD?eW$Ky=1Yq)adqhc?p&C{7b5o?=)unOeZDH>uTZs-&%#bAkAyw9m4PJgvey
zM5?up*b}eDEY+#@tKec)-c(#QF0P?MRlD1+7%Yk*jW;)`f;0a-ZJ6CQA?E%>i2Dt7T9?s|9ZF|KP4;CNWvaVKZ+Qeut;Jith_y{v*Ny6Co6!8MZx;Wgo
z=qAi%&S;8J{iyD&>3CLCQdTX*$+Rx1AwA*D_J^0>suTgBMBb=*hefV+Ars#mmr+YsI3#!F@Xc1t4F-gB@6aoyT+5O(qMz*zG<9Qq*f0w^V!03rpr*-WLH};
zfM{xSPJeu6D(%8HU%0GEa%waFHE$G?FH^kMS-&I3)ycx|iv{T6Wx}9$$D&6{%1N_8
z_CLw)_9+O4&u94##vI9b-HHm_95m)fa??q07`DniVjAy`t7;)4NpeyAY(aAk(+T_O
z1om+b5K2g_B&b2DCTK<>SE$Ode1DopAi)xaJjU>**AJK3hZrnhEQ9E`2=|HHe<^tv
z63e(bn#fMWuz>4erc47}!J>U58%<&N<6AOAewyzNTqi7hJc|X{782&cM
zHZYclNbBwU6673=!ClmxMfkC$(CykGR@10F!zN1Se83LR&a~$Ht&>~43OX22mt7tcZUpa;9@q}KDX3O&Ugp6<
zLZLfIMO5;pTee1vNyVC$FGxzK2f>0Z-6hM82zKg44nWo|n}$Zk6&;5ry3`(JFEX$q
zK&KivAe${e^5ZGc3a9hOt|!UOE&OocpVryE$Y4sPcs4rJ>>Kbi2_subQ9($2VN(3o
zb~tEzMsHaBmBtaHAyES+d3A(qURgiskSSwUc9CfJ@99&MKp2sooSYZu+-0t0+L*!I
zYagjOlPgx|lep9tiU%ts&McF6b0VE57%E0Ho%2oi?=Ks+5%aj#au^OBwNwhec
zta6QAeQI^V!dF1C)>RHAmB`HnxyqWx?td@4sd15zPd*Fc9hpDXP23kbBenBxGeD$k
z;%0VBQEJ-C)&dTAw_yW@k0u?IUk*NrkJ)(XEeI
z9Y>6Vel>#s_v@=@0<{4A{pl=9cQ&Iah0iD0H`q)7NeCIRz8zx;!
z^OO;1+IqoQNak&pV`qKW+K0^Hqp!~gSohcyS)?^P`JNZXw@gc6{A3OLZ?@1Uc^I2v
z+X!^R*HCm3{7JPq{8*Tn>5;B|X7n4QQ0Bs79uTU%nbqOJh`nX(BVj!#f;#J+WZxx4
z_yM&1Y`2XzhfqkIMO7tB3raJKQS+H5F%o83bM+hxbQ
zeeJm=Dvix$2j|b4?mDacb67v-1^lTp${z=jc1=j~QD>7c*@+1?py>%Kj%Ejp7Y-!?
z8iYRUlGVrQPandAaxFfks53@2EC#0)%mrnmGRn&>=$H$S8q|kE_iWko4`^vCS2aWg
z#!`RHUGyOt*k?bBYu3*j3u0gB#v(3tsije
zgIuNNWNtrOkx@Pzs;A9un+2LX!zw+p3_NX^Sh09HZAf>m8l@O*rXy_82aWT$Q>iyy
zqO7Of)D=wcSn!0+467&!Hl))eff=$aneB?R!YykdKW@k^_uR!+Q1tR)+IJb`-6=jj
zymzA>Sv4>Z&g&WWu#|~GcP7qP&m*w-S$)7Xr;(duqCTe7p8H3k5>Y-n8438+%^9~K
z3r^LIT_K{i7DgEJjIocw_6d0!<;wKT`X;&vv+&msmhAAnIe!OTdybPctzcEzBy88_
zWO{6i4YT%e4^WQZB)KHCvA(0tS
zHu_Bg+6Ko%a9~$EjRB90`P(2~6uI@SFibxct{H#o&y40MdiXblu@VFXbhz>Nko;7R
z70Ntmm-FePqhb%9gL+7U8@(ch|JfH5Fm)5${8|`Lef>LttM_iww6LW2X61ldBmG0z
zax3y)njFe>j*T{i0s8D4=L>X^j0)({R5lMGVS#7(2C9@AxL&C-lZQx~czI7Iv+{%1
z2hEG>RzX4S8x3v#9sgGAnPzptM)g&LB}@%E>fy0vGSa(&q0ch|=ncKjNrK
z`jA~jObJhrJ^ri|-)J^HUyeZXz~XkBp$VhcTEcTdc#a2EUOGVX?@mYx#Vy*!qO$Jv
zQ4rgOJ~M*o-_Wptam=~krnmG*p^j!JAqoQ%+YsDFW7Cc9M%YPiBOrVcD^RY>m9Pd<
zu}#9M?K{+;UIO!D9qOpq9yxUquQRmQNMo0pT`@$pVt=rMvyX)ph(-CCJLvUJy71DI
zBk7oc7)-%ngdj~s@76Yse3L^gV0
z2==qfp&Q~L(+%RHP0n}+xH#k(hPRx(!AdBM$JCfJ5*C=K3ts>P?@@SZ_+{U2qFZb>4kZ{Go37{#
zSQc+-dq*a-Vy4?taS&{Ht|MLRiS)Sn14JOONyXqPNnpq&2y~)6wEG0oNy>qvod$FF
z`9o&?&6uZjhZ4_*5qWVrEfu(>_n2Xi2{@Gz9MZ8!YmjYvIMasE9yVQL10NBrTCczq
zcTY1q^PF2l!Eraguf{+PtHV3=2A?Cu&NN&a8V(y;q(^_mFc6)%Yfn&X&~Pq
zU1?qCj^LF(EQB1F`8NxNjyV%fde}dEa(Hx=r7$~ts2dzDwyi6ByBAIx$NllB4%K=O
z$AHz1<2bTUb>(MCVPpK(E9wlLElo(aSd(Os)^Raum`d(g9Vd_+Bf&V;l=@mM=cC>)
z)9b0enb)u_7V!!E_bl>u5nf&Rl|2r=2F3rHMdb7y9E}}F82^$Rf+P8%dKnOeKh1vs
zhH^P*4Ydr^$)$h@4KVzxrHyy#cKmWEa9P5DJ|-
zG;!Qi35Tp7XNj60=$!S6U#!(${6hyh7d4q=pF{`0t|N^|L^d8pD{O9@tF~W;#Je*P
z&ah%W!KOIN;SyAEhAeTafJ4uEL`(RtnovM+cb(O#>xQnk?dzAjG^~4$dFn^<@-Na3
z395;wBnS{t*H;Jef2eE!2}u5Ns{AHj>WYZDgQJt8v%x?9{MXqJsGP|l%OiZqQ1aB!
z%E=*Ig`(!tHh>}4_z5IMpg{49UvD*Pp9!pxt_gdAW%sIf3k6CTycOT1McPl=_#0?8
zVjz8Hj*Vy9c5-krd-{BQ{6Xy|P$6LJvMuX$*
zA+@I_66_ET5l2&gk9n4$1M3LN8(yEViRx&mtd#LD}AqEs?RW=xKC(OCWH;~>(X6h!uDxXIPH06xh
z*`F4cVlbDP`A)-fzf>MuScYsmq&1LUMGaQ3bRm6i7OsJ|%uhTDT
zlvZA1M}nz*SalJWNT|`dBm1$xlaA>CCiQ
zK`xD-RuEn>-`Z?M{1%@wewf#8?F|(@1e0+T4>nmlSRrNK5f)BJ2H*$q(H>zGD0>eL
zQ!tl_Wk)k*e6v^m*{~A;@6+JGeWU-q9>?+L_#UNT%G?4&BnOgvm9@o7l?ov~XL+et
zbGT)|G7)KAeqb=wHSPk+J1bdg7N3$vp(ekjI1D9V$G5Cj!=R2w=3*4!z*J-r-cyeb
zd(i2KmX!|Lhey!snRw
z?#$Gu%S^SQEKt&kep)up#j&9}e+3=JJBS(s>MH+|=R(`8xK{mmndWo_r`-w1#SeRD&YtAJ#GiVI*TkQZ}&aq<+bU2+coU3!jCI6E+Ad_xFW*ghnZ$q
zAoF*i&3n1j#?B8x;kjSJD${1jdRB;)R*)Ao!9bd|C7{;iqDo|T&>KSh6*hCD!rwv=
zyK#F@2+cv3=|S1Kef(E6Niv8kyLVLX&e=U;{0x{$tDfShqkjUME>f8d(5nzSkY6@!
z^-0>DM)wa&%m#UF1F?zR`8Y3X#tA!*7Q$P3lZJ%*KNlrk_uaPkxw~
zxZ1qlE;Zo;nb@!SMazSjM>;34ROOoygo%SF);LL>rRonWwR>bmSd1XD^~sGSu$Gg#
zFZ`|yKU0%!v07dz^v(tY%;So(e`o{ZYTX`hm;@b0%8|H>VW`*cr8R%3n|ehw2`(9B+V72`>SY}9^8oh$En80mZK9T4abVG*to;E
z1_S6bgDOW?!Oy1LwYy=w3q~KKdbNtyH#d24PFjX)KYMY93{3-mPP-H>@M-_>N~DDu
zENh~reh?JBAK=TFN-SfDfT^=+{w4ea2KNWXq2Y<;?(gf(FgVp8Zp-oEjKzB%2Iqj;48GmY3h=bcdYJ}~&4tS`Q1sb=^emaW$IC$|R+r-8V-
zf0$gGE(CS_n4s>oicVk)MfvVg#I>iDvf~Ov8bk}sSxluG!6#^Z_zhB&U^`eIi1@j(
z^CK$z^stBHtaDDHxn+R;3u+>Lil^}fj?7eaGB
z&5nl^STqcaBxI@v>%zG|j))G(rVa4aY=B@^2{TFkW~YP!8!9TG#(-nOf^^X-%m9{Z
zCC?iC`G-^RcBSCuk=Z`(FaUUe?hf3{0C>>$?Vs
z`2Uud9M+T&KB6o4o9kvdi^Q=Bw!asPdxbe#W-Oaa#_NP(qpyF@bVxv5D5))srkU#m
zj_KA+#7sqDn*Ipf!F5Byco4HOSd!Ui$l94|IbW%Ny(s1>f4|Mv^#NfB31N~kya9!k
zWCGL-$0ZQztBate^fd>R!hXY_N9ZjYp3V~4_V
z#eB)Kjr8yW=+oG)BuNdZG?jaZlw+l_ma8aET(s+-x+=F-t#Qoiuu1i`^x8Sj>b^U}
zs^z<()YMFP7CmjUC@M=&lA5W7t&cxTlzJAts*%PBDAPuqcV5o7HEnqjif_7xGt)F%
zGx2b4w{@!tE)$p=l3&?Bf#`+!-RLOleeRk3
z7#pF|w@6_sBmn1nECqdunmG^}pr5(ZJQVvAt$6p3H(16~;vO>?sTE`Y+mq5YP&PBo
zvq!7#W$Gewy`;%6o^!Dtjz~x)T}Bdk*BS#=EY=ODD&B=V6TD2z^hj1m5^d6s)D*wk
zu$z~D7QuZ2b?5`p)E8e2_L38v3WE{V`bVk;6fl#o2`)
z99JsWhh?$oVRn@$S#)uK&8DL8>An0&S<%V8hnGD7Z^;Y(%6;^9!7kDQ5bjR_V+~wp
zfx4m3z6CWmmZ<8gDGUyg3>t8wgJ5NkkiEm^(sedCicP^&3D%}6LtIUq>mXCAt{9eF
zNXL$kGcoUTf_Lhm`t;hD-SE)m=iBnxRU(NyL}f6~1uH)`K!hmYZjLI%H}AmEF5RZt
z06$wn63GHnApHXZZJ}s^s)j9(BM6e*7IBK6Bq(!)d~zR#rbxK9NVIlgquoMq
z=eGZ9NR!SEqP6=9UQg#@!rtbbSBUM#ynF);zKX+|!Zm}*{H
z+j=d?