You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTarget.java
@@ -41,18 +42,20 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
41
42
StringPATTERN = "pattern";
42
43
43
44
/**
44
-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
45
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
46
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
45
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
46
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
47
+
* <p>If empty, the Discount will apply indefinitely.</p>
47
48
* @return triggerPattern
48
49
*/
50
+
@NotNull
49
51
@Valid
50
52
@JsonProperty("triggerPattern")
51
53
publicList<PatternComponent> getTriggerPattern();
52
54
53
55
/**
54
-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
56
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
55
57
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
58
+
* <p>This array cannot be empty.</p>
56
59
* @return targetPattern
57
60
*/
58
61
@NotNull
@@ -78,36 +81,38 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
78
81
publicSelectionModegetSelectionMode();
79
82
80
83
/**
81
-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
82
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
83
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
84
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
85
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
86
+
* <p>If empty, the Discount will apply indefinitely.</p>
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
92
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
93
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
94
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
95
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
96
+
* <p>If empty, the Discount will apply indefinitely.</p>
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
103
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
101
104
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
113
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
110
114
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
Copy file name to clipboardExpand all lines: commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetBuilder.java
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
40
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
41
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
39
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
40
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
41
+
* <p>If empty, the Discount will apply indefinitely.</p>
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
54
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
55
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
53
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
54
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
55
+
* <p>If empty, the Discount will apply indefinitely.</p>
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
68
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
69
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
67
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
68
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
69
+
* <p>If empty, the Discount will apply indefinitely.</p>
@@ -81,9 +81,9 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(
81
81
}
82
82
83
83
/**
84
-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
85
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
86
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
84
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
85
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
86
+
* <p>If empty, the Discount will apply indefinitely.</p>
87
87
* @param builder function to build the triggerPattern value
88
88
* @return Builder
89
89
*/
@@ -99,9 +99,9 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(
99
99
}
100
100
101
101
/**
102
-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
103
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
104
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
102
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
103
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
104
+
* <p>If empty, the Discount will apply indefinitely.</p>
105
105
* @param builder function to build the triggerPattern value
106
106
* @return Builder
107
107
*/
@@ -115,8 +115,9 @@ public CartDiscountPatternTargetBuilder withTriggerPattern(
115
115
}
116
116
117
117
/**
118
-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
118
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
119
119
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
120
+
* <p>This array cannot be empty.</p>
120
121
* @param targetPattern value to be set
121
122
* @return Builder
122
123
*/
@@ -128,8 +129,9 @@ public CartDiscountPatternTargetBuilder targetPattern(
128
129
}
129
130
130
131
/**
131
-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
132
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
132
133
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
134
+
* <p>This array cannot be empty.</p>
133
135
* @param targetPattern value to be set
134
136
* @return Builder
135
137
*/
@@ -141,8 +143,9 @@ public CartDiscountPatternTargetBuilder targetPattern(
141
143
}
142
144
143
145
/**
144
-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
146
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
145
147
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
148
+
* <p>This array cannot be empty.</p>
146
149
* @param targetPattern value to be set
147
150
* @return Builder
148
151
*/
@@ -157,8 +160,9 @@ public CartDiscountPatternTargetBuilder plusTargetPattern(
157
160
}
158
161
159
162
/**
160
-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
163
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
161
164
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
165
+
* <p>This array cannot be empty.</p>
162
166
* @param builder function to build the targetPattern value
163
167
* @return Builder
164
168
*/
@@ -174,8 +178,9 @@ public CartDiscountPatternTargetBuilder plusTargetPattern(
174
178
}
175
179
176
180
/**
177
-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
181
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
178
182
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
183
+
* <p>This array cannot be empty.</p>
179
184
* @param builder function to build the targetPattern value
180
185
* @return Builder
181
186
*/
@@ -213,20 +218,20 @@ public CartDiscountPatternTargetBuilder selectionMode(
213
218
}
214
219
215
220
/**
216
-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
217
-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
218
-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
221
+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
222
+
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, limiting the number of maximum times the discount will be applied. To further limit the discount application, set the <code>maxOccurrence</code>.</p>
223
+
* <p>If empty, the Discount will apply indefinitely.</p>
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
232
+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
229
233
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
234
+
* <p>This array cannot be empty.</p>
230
235
* @return targetPattern
231
236
*/
232
237
@@ -259,6 +264,7 @@ public com.commercetools.api.models.cart_discount.SelectionMode getSelectionMode
259
264
* @return CartDiscountPatternTarget
260
265
*/
261
266
publicCartDiscountPatternTargetbuild() {
267
+
Objects.requireNonNull(triggerPattern, CartDiscountPatternTarget.class + ": triggerPattern is missing");
262
268
Objects.requireNonNull(targetPattern, CartDiscountPatternTarget.class + ": targetPattern is missing");
263
269
Objects.requireNonNull(selectionMode, CartDiscountPatternTarget.class + ": selectionMode is missing");
0 commit comments