Skip to content

Commit adfcaa9

Browse files
committed
build(codegen): updating SDK
1 parent f0368e2 commit adfcaa9

File tree

12 files changed

+49
-34
lines changed

12 files changed

+49
-34
lines changed

changes.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,3 +38,11 @@
3838
- added property `discountTypeCombination` to type `Order`
3939
</details>
4040

41+
42+
<details>
43+
<summary>MarkDeprecated Property(s)</summary>
44+
45+
- marked property `CountOnCustomLineItemUnits::excludeCount` as deprecated
46+
- marked property `CountOnLineItemUnits::excludeCount` as deprecated
47+
</details>
48+

commercetools/commercetools-graphql-api/src/main/resources/graphql/schema.graphqls

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3128,7 +3128,7 @@ type CountOnCustomLineItemUnits implements PatternComponent {
31283128
predicate: String!
31293129
minCount: Int
31303130
maxCount: Int
3131-
excludeCount: Int
3131+
excludeCount: Int @deprecated(reason: "Please use 'triggerPattern' to exclude.")
31323132
type: String!
31333133
}
31343134

@@ -3137,15 +3137,15 @@ input CountOnCustomLineItemUnitsInput {
31373137
predicate: String!
31383138
minCount: Int = 1
31393139
maxCount: Int
3140-
excludeCount: Int
3140+
excludeCount: Int @deprecated(reason: "Please use 'triggerPattern' to exclude.")
31413141
}
31423142

31433143
"BETA: This feature can be subject to change and should be used carefully in production. https://docs.commercetools.com/api/contract#public-beta"
31443144
type CountOnLineItemUnits implements PatternComponent {
31453145
predicate: String!
31463146
minCount: Int
31473147
maxCount: Int
3148-
excludeCount: Int
3148+
excludeCount: Int @deprecated(reason: "Please use 'triggerPattern' to exclude.")
31493149
type: String!
31503150
}
31513151

@@ -3154,7 +3154,7 @@ input CountOnLineItemUnitsInput {
31543154
predicate: String!
31553155
minCount: Int = 1
31563156
maxCount: Int
3157-
excludeCount: Int
3157+
excludeCount: Int @deprecated(reason: "Please use 'triggerPattern' to exclude.")
31583158
}
31593159

31603160
"[ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) country code."

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTarget.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
4343

4444
/**
4545
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
47+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
4848
* @return triggerPattern
4949
*/
5050
@NotNull
@@ -82,8 +82,8 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
8282

8383
/**
8484
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
86+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
8787
* @param triggerPattern values to be set
8888
*/
8989

@@ -92,8 +92,8 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {
9292

9393
/**
9494
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
96+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
9797
* @param triggerPattern values to be set
9898
*/
9999

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetBuilder.java

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -37,8 +37,8 @@ public class CartDiscountPatternTargetBuilder implements Builder<CartDiscountPat
3737

3838
/**
3939
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
41+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
4242
* @param triggerPattern value to be set
4343
* @return Builder
4444
*/
@@ -51,8 +51,8 @@ public CartDiscountPatternTargetBuilder triggerPattern(
5151

5252
/**
5353
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
55+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
5656
* @param triggerPattern value to be set
5757
* @return Builder
5858
*/
@@ -65,8 +65,8 @@ public CartDiscountPatternTargetBuilder triggerPattern(
6565

6666
/**
6767
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
69+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
7070
* @param triggerPattern value to be set
7171
* @return Builder
7272
*/
@@ -82,8 +82,8 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(
8282

8383
/**
8484
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
86+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
8787
* @param builder function to build the triggerPattern value
8888
* @return Builder
8989
*/
@@ -100,8 +100,8 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(
100100

101101
/**
102102
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
104+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
105105
* @param builder function to build the triggerPattern value
106106
* @return Builder
107107
*/
@@ -219,8 +219,8 @@ public CartDiscountPatternTargetBuilder selectionMode(
219219

220220
/**
221221
* <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>
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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
223+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
224224
* @return triggerPattern
225225
*/
226226

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CartDiscountPatternTargetImpl.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ public String getType() {
6666

6767
/**
6868
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
69-
* <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>
70-
* <p>If empty, the Discount will apply indefinitely.</p>
69+
* <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. The units matched in the <code>triggerPattern</code> are excluded and not considered for the <code>targetPattern</code>.</p>
70+
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
7171
*/
7272

7373
public java.util.List<com.commercetools.api.models.cart_discount.PatternComponent> getTriggerPattern() {

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CountOnCustomLineItemUnits.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface CountOnCustomLineItemUnits extends PatternComponent {
6767
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
6868
* @return excludeCount
6969
*/
70-
70+
@Deprecated
7171
@JsonProperty("excludeCount")
7272
public Integer getExcludeCount();
7373

@@ -99,7 +99,7 @@ public interface CountOnCustomLineItemUnits extends PatternComponent {
9999
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
100100
* @param excludeCount value to be set
101101
*/
102-
102+
@Deprecated
103103
public void setExcludeCount(final Integer excludeCount);
104104

105105
/**

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CountOnCustomLineItemUnitsBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class CountOnCustomLineItemUnitsBuilder implements Builder<CountOnCustomL
3131
@Nullable
3232
private Integer maxCount;
3333

34+
@Deprecated
3435
@Nullable
3536
private Integer excludeCount;
3637

@@ -75,7 +76,7 @@ public CountOnCustomLineItemUnitsBuilder maxCount(@Nullable final Integer maxCou
7576
* @param excludeCount value to be set
7677
* @return Builder
7778
*/
78-
79+
@Deprecated
7980
public CountOnCustomLineItemUnitsBuilder excludeCount(@Nullable final Integer excludeCount) {
8081
this.excludeCount = excludeCount;
8182
return this;
@@ -117,7 +118,7 @@ public Integer getMaxCount() {
117118
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
118119
* @return excludeCount
119120
*/
120-
121+
@Deprecated
121122
@Nullable
122123
public Integer getExcludeCount() {
123124
return this.excludeCount;

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CountOnCustomLineItemUnitsImpl.java

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,7 @@ public class CountOnCustomLineItemUnitsImpl implements CountOnCustomLineItemUnit
3030

3131
private Integer maxCount;
3232

33+
@Deprecated
3334
private Integer excludeCount;
3435

3536
/**
@@ -91,7 +92,7 @@ public Integer getMaxCount() {
9192
* <p>Set only when configuring the <code>targetPattern</code>.</p>
9293
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
9394
*/
94-
95+
@Deprecated
9596
public Integer getExcludeCount() {
9697
return this.excludeCount;
9798
}
@@ -108,6 +109,7 @@ public void setMaxCount(final Integer maxCount) {
108109
this.maxCount = maxCount;
109110
}
110111

112+
@Deprecated
111113
public void setExcludeCount(final Integer excludeCount) {
112114
this.excludeCount = excludeCount;
113115
}

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CountOnLineItemUnits.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ public interface CountOnLineItemUnits extends PatternComponent {
6767
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
6868
* @return excludeCount
6969
*/
70-
70+
@Deprecated
7171
@JsonProperty("excludeCount")
7272
public Integer getExcludeCount();
7373

@@ -99,7 +99,7 @@ public interface CountOnLineItemUnits extends PatternComponent {
9999
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
100100
* @param excludeCount value to be set
101101
*/
102-
102+
@Deprecated
103103
public void setExcludeCount(final Integer excludeCount);
104104

105105
/**

commercetools/commercetools-sdk-java-api/src/main/java-generated/com/commercetools/api/models/cart_discount/CountOnLineItemUnitsBuilder.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ public class CountOnLineItemUnitsBuilder implements Builder<CountOnLineItemUnits
3131
@Nullable
3232
private Integer maxCount;
3333

34+
@Deprecated
3435
@Nullable
3536
private Integer excludeCount;
3637

@@ -75,7 +76,7 @@ public CountOnLineItemUnitsBuilder maxCount(@Nullable final Integer maxCount) {
7576
* @param excludeCount value to be set
7677
* @return Builder
7778
*/
78-
79+
@Deprecated
7980
public CountOnLineItemUnitsBuilder excludeCount(@Nullable final Integer excludeCount) {
8081
this.excludeCount = excludeCount;
8182
return this;
@@ -117,7 +118,7 @@ public Integer getMaxCount() {
117118
* <p>The units matched first (satisfying the pattern component) will be excluded from the resulting set. The <code>minCount</code>and <code>maxCount</code> are considered only after the exclusion. Pattern components are matched only if any further units satisfying the pattern component exist. For example, if 5 jeans are required but only 3 should be discounted, the <code>excludeCount</code> value must be 2.</p>
118119
* @return excludeCount
119120
*/
120-
121+
@Deprecated
121122
@Nullable
122123
public Integer getExcludeCount() {
123124
return this.excludeCount;

0 commit comments

Comments
 (0)