From a77ee7fe66c6456ac502f32a60f20243ee0ed7cf Mon Sep 17 00:00:00 2001
From: "ct-sdks[bot]" <153784748+ct-sdks[bot]@users.noreply.github.com>
Date: Mon, 13 Jan 2025 15:00:12 +0000
Subject: [PATCH] build(codegen): updating SDK
---
changes.md | 28 ++++++--
.../CartDiscountPatternTarget.java | 29 +++++----
.../CartDiscountPatternTargetBuilder.java | 64 ++++++++++---------
.../CartDiscountPatternTargetImpl.java | 9 +--
.../ChangeTargetPatternChangeValue.java | 14 ++--
...ChangeTargetPatternChangeValueBuilder.java | 42 ++++++------
.../ChangeTargetPatternChangeValueImpl.java | 4 +-
references.txt | 1 +
8 files changed, 110 insertions(+), 81 deletions(-)
diff --git a/changes.md b/changes.md
index 9d3fadfc94..1a2df4e505 100644
--- a/changes.md
+++ b/changes.md
@@ -9,6 +9,22 @@
+Required Property(s)
+
+- :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required
+Added Property(s)
+
+- added property `inheritedStores` to type `BusinessUnit`
+- added property `inheritedStores` to type `Company`
+- added property `inheritedStores` to type `Division`
+Added Method(s)
@@ -25,21 +41,19 @@
- added method `apiRoot.withProjectKey().inStoreKeyWithStoreKeyValue().businessUnits().withId().delete()`
Added Property(s)
+Changed Property(s)
-- added property `inheritedStores` to type `BusinessUnit`
-- added property `inheritedStores` to type `Company`
-- added property `inheritedStores` to type `Division`
+- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
Changed Property(s)
+Required Property(s)
-- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
+- :warning: changed property `triggerPattern` of type `ChangeTargetPatternChangeValue` to be required
* CartDiscountPatternTarget cartDiscountPatternTarget = CartDiscountPatternTarget.builder()
+ * .plusTriggerPattern(triggerPatternBuilder -> triggerPatternBuilder)
* .plusTargetPattern(targetPatternBuilder -> targetPatternBuilder)
* .selectionMode(SelectionMode.CHEAPEST)
* .build()
@@ -41,18 +42,20 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
String PATTERN = "pattern";
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @return triggerPattern
*/
+ @NotNull
@Valid
@JsonProperty("triggerPattern")
public List getTriggerPattern();
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @return targetPattern
*/
@NotNull
@@ -78,9 +81,9 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
public SelectionMode getSelectionMode();
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param triggerPattern values to be set
*/
@@ -88,17 +91,18 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
public void setTriggerPattern(final PatternComponent... triggerPattern);
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param triggerPattern values to be set
*/
public void setTriggerPattern(final List triggerPattern);
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param targetPattern values to be set
*/
@@ -106,8 +110,9 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
public void setTargetPattern(final PatternComponent... targetPattern);
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param targetPattern values to be set
*/
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetBuilder.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetBuilder.java
index 8f8172c8af..dad2327e01 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetBuilder.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetBuilder.java
@@ -16,6 +16,7 @@
*
*
* CartDiscountPatternTarget cartDiscountPatternTarget = CartDiscountPatternTarget.builder()
+ * .plusTriggerPattern(triggerPatternBuilder -> triggerPatternBuilder)
* .plusTargetPattern(targetPatternBuilder -> targetPatternBuilder)
* .selectionMode(SelectionMode.CHEAPEST)
* .build()
@@ -25,7 +26,6 @@
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class CartDiscountPatternTargetBuilder implements Builder {
- @Nullable
private java.util.List triggerPattern;
private java.util.List targetPattern;
@@ -36,43 +36,43 @@ public class CartDiscountPatternTargetBuilder implements BuilderUnits of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param triggerPattern value to be set
* @return Builder
*/
public CartDiscountPatternTargetBuilder triggerPattern(
- @Nullable final com.commercetools.api.models.cart_discount.PatternComponent... triggerPattern) {
+ final com.commercetools.api.models.cart_discount.PatternComponent... triggerPattern) {
this.triggerPattern = new ArrayList<>(Arrays.asList(triggerPattern));
return this;
}
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param triggerPattern value to be set
* @return Builder
*/
public CartDiscountPatternTargetBuilder triggerPattern(
- @Nullable final java.util.List triggerPattern) {
+ final java.util.List triggerPattern) {
this.triggerPattern = triggerPattern;
return this;
}
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param triggerPattern value to be set
* @return Builder
*/
public CartDiscountPatternTargetBuilder plusTriggerPattern(
- @Nullable final com.commercetools.api.models.cart_discount.PatternComponent... triggerPattern) {
+ final com.commercetools.api.models.cart_discount.PatternComponent... triggerPattern) {
if (this.triggerPattern == null) {
this.triggerPattern = new ArrayList<>();
}
@@ -81,9 +81,9 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(
}
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param builder function to build the triggerPattern value
* @return Builder
*/
@@ -99,9 +99,9 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(
}
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @param builder function to build the triggerPattern value
* @return Builder
*/
@@ -115,8 +115,9 @@ public CartDiscountPatternTargetBuilder withTriggerPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param targetPattern value to be set
* @return Builder
*/
@@ -128,8 +129,9 @@ public CartDiscountPatternTargetBuilder targetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param targetPattern value to be set
* @return Builder
*/
@@ -141,8 +143,9 @@ public CartDiscountPatternTargetBuilder targetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param targetPattern value to be set
* @return Builder
*/
@@ -157,8 +160,9 @@ public CartDiscountPatternTargetBuilder plusTargetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param builder function to build the targetPattern value
* @return Builder
*/
@@ -174,8 +178,9 @@ public CartDiscountPatternTargetBuilder plusTargetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @param builder function to build the targetPattern value
* @return Builder
*/
@@ -213,20 +218,20 @@ public CartDiscountPatternTargetBuilder selectionMode(
}
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
* @return triggerPattern
*/
- @Nullable
public java.util.List getTriggerPattern() {
return this.triggerPattern;
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
* @return targetPattern
*/
@@ -259,6 +264,7 @@ public com.commercetools.api.models.cart_discount.SelectionMode getSelectionMode
* @return CartDiscountPatternTarget
*/
public CartDiscountPatternTarget build() {
+ Objects.requireNonNull(triggerPattern, CartDiscountPatternTarget.class + ": triggerPattern is missing");
Objects.requireNonNull(targetPattern, CartDiscountPatternTarget.class + ": targetPattern is missing");
Objects.requireNonNull(selectionMode, CartDiscountPatternTarget.class + ": selectionMode is missing");
return new CartDiscountPatternTargetImpl(triggerPattern, targetPattern, maxOccurrence, selectionMode);
diff --git a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetImpl.java b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetImpl.java
index 00efbfe488..aba122e1d8 100644
--- a/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetImpl.java
+++ b/commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetImpl.java
@@ -65,9 +65,9 @@ public String getType() {
}
/**
- * Units of a (Custom) Line Item that trigger a discount application.
- * Based on the availability of matching units, the triggerPattern
can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
- * If empty or not set, the Discount will apply indefinitely.
+ * Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
+ * Based on the availability of matching units, the triggerPattern
can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the maxOccurrence
.
+ * If empty, the Discount will apply indefinitely.
*/
public java.util.List getTriggerPattern() {
@@ -75,8 +75,9 @@ public java.util.ListUnits of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* Based on the availability of matching units and the limits from the triggerPattern
or maxOccurence
, the targetPattern
can match multiple times.
+ * This array cannot be empty.
*/
public java.util.List getTargetPattern() {
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValue.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValue.java
index 79fe8ac91e..0c5419c17a 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValue.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValue.java
@@ -26,6 +26,7 @@
*
*
* ChangeTargetPatternChangeValue changeTargetPatternChangeValue = ChangeTargetPatternChangeValue.builder()
+ * .plusTriggerPattern(triggerPatternBuilder -> triggerPatternBuilder)
* .plusTargetPattern(targetPatternBuilder -> targetPatternBuilder)
* .selectionMode(SelectionMode.CHEAPEST)
* .build()
@@ -50,15 +51,16 @@ public interface ChangeTargetPatternChangeValue extends ChangeTargetChangeValue
public String getType();
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @return triggerPattern
*/
+ @NotNull
@Valid
@JsonProperty("triggerPattern")
public List getTriggerPattern();
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @return targetPattern
*/
@NotNull
@@ -84,7 +86,7 @@ public interface ChangeTargetPatternChangeValue extends ChangeTargetChangeValue
public SelectionMode getSelectionMode();
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param triggerPattern values to be set
*/
@@ -92,14 +94,14 @@ public interface ChangeTargetPatternChangeValue extends ChangeTargetChangeValue
public void setTriggerPattern(final PatternComponent... triggerPattern);
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param triggerPattern values to be set
*/
public void setTriggerPattern(final List triggerPattern);
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param targetPattern values to be set
*/
@@ -107,7 +109,7 @@ public interface ChangeTargetPatternChangeValue extends ChangeTargetChangeValue
public void setTargetPattern(final PatternComponent... targetPattern);
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param targetPattern values to be set
*/
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java
index de4ba29c27..71590b8a57 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueBuilder.java
@@ -16,6 +16,7 @@
*
*
* ChangeTargetPatternChangeValue changeTargetPatternChangeValue = ChangeTargetPatternChangeValue.builder()
+ * .plusTriggerPattern(triggerPatternBuilder -> triggerPatternBuilder)
* .plusTargetPattern(targetPatternBuilder -> targetPatternBuilder)
* .selectionMode(SelectionMode.CHEAPEST)
* .build()
@@ -25,7 +26,6 @@
@Generated(value = "io.vrap.rmf.codegen.rendering.CoreCodeGenerator", comments = "https://github.com/commercetools/rmf-codegen")
public class ChangeTargetPatternChangeValueBuilder implements Builder {
- @Nullable
private java.util.List triggerPattern;
private java.util.List targetPattern;
@@ -36,37 +36,37 @@ public class ChangeTargetPatternChangeValueBuilder implements BuilderUnits of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param triggerPattern value to be set
* @return Builder
*/
public ChangeTargetPatternChangeValueBuilder triggerPattern(
- @Nullable final com.commercetools.history.models.cart_discount.PatternComponent... triggerPattern) {
+ final com.commercetools.history.models.cart_discount.PatternComponent... triggerPattern) {
this.triggerPattern = new ArrayList<>(Arrays.asList(triggerPattern));
return this;
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param triggerPattern value to be set
* @return Builder
*/
public ChangeTargetPatternChangeValueBuilder triggerPattern(
- @Nullable final java.util.List triggerPattern) {
+ final java.util.List triggerPattern) {
this.triggerPattern = triggerPattern;
return this;
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param triggerPattern value to be set
* @return Builder
*/
public ChangeTargetPatternChangeValueBuilder plusTriggerPattern(
- @Nullable final com.commercetools.history.models.cart_discount.PatternComponent... triggerPattern) {
+ final com.commercetools.history.models.cart_discount.PatternComponent... triggerPattern) {
if (this.triggerPattern == null) {
this.triggerPattern = new ArrayList<>();
}
@@ -75,7 +75,7 @@ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern(
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param builder function to build the triggerPattern value
* @return Builder
*/
@@ -91,7 +91,7 @@ public ChangeTargetPatternChangeValueBuilder plusTriggerPattern(
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param builder function to build the triggerPattern value
* @return Builder
*/
@@ -105,7 +105,7 @@ public ChangeTargetPatternChangeValueBuilder withTriggerPattern(
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param builder function to build the triggerPattern value
* @return Builder
*/
@@ -117,7 +117,7 @@ public ChangeTargetPatternChangeValueBuilder addTriggerPattern(
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @param builder function to build the triggerPattern value
* @return Builder
*/
@@ -129,7 +129,7 @@ public ChangeTargetPatternChangeValueBuilder setTriggerPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param targetPattern value to be set
* @return Builder
*/
@@ -141,7 +141,7 @@ public ChangeTargetPatternChangeValueBuilder targetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param targetPattern value to be set
* @return Builder
*/
@@ -153,7 +153,7 @@ public ChangeTargetPatternChangeValueBuilder targetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param targetPattern value to be set
* @return Builder
*/
@@ -168,7 +168,7 @@ public ChangeTargetPatternChangeValueBuilder plusTargetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param builder function to build the targetPattern value
* @return Builder
*/
@@ -184,7 +184,7 @@ public ChangeTargetPatternChangeValueBuilder plusTargetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param builder function to build the targetPattern value
* @return Builder
*/
@@ -198,7 +198,7 @@ public ChangeTargetPatternChangeValueBuilder withTargetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param builder function to build the targetPattern value
* @return Builder
*/
@@ -210,7 +210,7 @@ public ChangeTargetPatternChangeValueBuilder addTargetPattern(
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @param builder function to build the targetPattern value
* @return Builder
*/
@@ -246,17 +246,16 @@ public ChangeTargetPatternChangeValueBuilder selectionMode(
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
* @return triggerPattern
*/
- @Nullable
public java.util.List getTriggerPattern() {
return this.triggerPattern;
}
/**
- * Units of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
* @return targetPattern
*/
@@ -289,6 +288,7 @@ public com.commercetools.history.models.common.SelectionMode getSelectionMode()
* @return ChangeTargetPatternChangeValue
*/
public ChangeTargetPatternChangeValue build() {
+ Objects.requireNonNull(triggerPattern, ChangeTargetPatternChangeValue.class + ": triggerPattern is missing");
Objects.requireNonNull(targetPattern, ChangeTargetPatternChangeValue.class + ": targetPattern is missing");
Objects.requireNonNull(selectionMode, ChangeTargetPatternChangeValue.class + ": selectionMode is missing");
return new ChangeTargetPatternChangeValueImpl(triggerPattern, targetPattern, maxOccurrence, selectionMode);
diff --git a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueImpl.java b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueImpl.java
index 90dc81960c..ca464111d8 100644
--- a/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueImpl.java
+++ b/commercetools/commercetools-sdk-java-history/src/main/java-generated/com/commercetools/history/models/change_value/ChangeTargetPatternChangeValueImpl.java
@@ -64,7 +64,7 @@ public String getType() {
}
/**
- * Units of a (Custom) Line Item that triggered the discount application.
+ * Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
*/
public java.util.List getTriggerPattern() {
@@ -72,7 +72,7 @@ public java.util.ListUnits of (Custom) Line Items on which the Discount is applied.
+ * Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
*/
public java.util.List getTargetPattern() {
diff --git a/references.txt b/references.txt
index 6019e027de..2d7e80e137 100644
--- a/references.txt
+++ b/references.txt
@@ -358,3 +358,4 @@ cc1732f88ea3dc336358ff9f39cda9d5271cf7c2
d042ef009240bb55e9b5b18003aba682ec9baa98
7d500b75265e9fdc6c5a47acb4e1df29523f707c
e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
+591d5eaefd1d56fd350895ccea401cb42f2f0ee8