Skip to content

Update generated SDKs #841

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Mar 6, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,3 +38,11 @@
- added property `discountTypeCombination` to type `Order`
</details>


<details>
<summary>MarkDeprecated Property(s)</summary>

- marked property `CountOnCustomLineItemUnits::excludeCount` as deprecated
- marked property `CountOnLineItemUnits::excludeCount` as deprecated
</details>

Original file line number Diff line number Diff line change
Expand Up @@ -3128,7 +3128,7 @@ type CountOnCustomLineItemUnits implements PatternComponent {
predicate: String!
minCount: Int
maxCount: Int
excludeCount: Int
excludeCount: Int @deprecated(reason: "Please use 'triggerPattern' to exclude.")
type: String!
}

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

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

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

"[ISO 3166-1](http://en.wikipedia.org/wiki/ISO_3166-1) country code."
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,8 +43,8 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @return triggerPattern
*/
@NotNull
Expand Down Expand Up @@ -82,8 +82,8 @@ public interface CartDiscountPatternTarget extends CartDiscountTarget {

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param triggerPattern values to be set
*/

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

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param triggerPattern values to be set
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@ public class CartDiscountPatternTargetBuilder implements Builder<CartDiscountPat

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param triggerPattern value to be set
* @return Builder
*/
Expand All @@ -51,8 +51,8 @@ public CartDiscountPatternTargetBuilder triggerPattern(

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param triggerPattern value to be set
* @return Builder
*/
Expand All @@ -65,8 +65,8 @@ public CartDiscountPatternTargetBuilder triggerPattern(

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param triggerPattern value to be set
* @return Builder
*/
Expand All @@ -82,8 +82,8 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param builder function to build the triggerPattern value
* @return Builder
*/
Expand All @@ -100,8 +100,8 @@ public CartDiscountPatternTargetBuilder plusTriggerPattern(

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @param builder function to build the triggerPattern value
* @return Builder
*/
Expand Down Expand Up @@ -219,8 +219,8 @@ public CartDiscountPatternTargetBuilder selectionMode(

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
* @return triggerPattern
*/

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ public String getType() {

/**
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
* <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>
* <p>If empty, the Discount will apply indefinitely.</p>
* <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>
* <p>To further limit the discount application, set the <code>maxOccurrence</code>.</p>
*/

public java.util.List<com.commercetools.api.models.cart_discount.PatternComponent> getTriggerPattern() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public interface CountOnCustomLineItemUnits extends PatternComponent {
* <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>
* @return excludeCount
*/

@Deprecated
@JsonProperty("excludeCount")
public Integer getExcludeCount();

Expand Down Expand Up @@ -99,7 +99,7 @@ public interface CountOnCustomLineItemUnits extends PatternComponent {
* <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>
* @param excludeCount value to be set
*/

@Deprecated
public void setExcludeCount(final Integer excludeCount);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class CountOnCustomLineItemUnitsBuilder implements Builder<CountOnCustomL
@Nullable
private Integer maxCount;

@Deprecated
@Nullable
private Integer excludeCount;

Expand Down Expand Up @@ -75,7 +76,7 @@ public CountOnCustomLineItemUnitsBuilder maxCount(@Nullable final Integer maxCou
* @param excludeCount value to be set
* @return Builder
*/

@Deprecated
public CountOnCustomLineItemUnitsBuilder excludeCount(@Nullable final Integer excludeCount) {
this.excludeCount = excludeCount;
return this;
Expand Down Expand Up @@ -117,7 +118,7 @@ public Integer getMaxCount() {
* <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>
* @return excludeCount
*/

@Deprecated
@Nullable
public Integer getExcludeCount() {
return this.excludeCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class CountOnCustomLineItemUnitsImpl implements CountOnCustomLineItemUnit

private Integer maxCount;

@Deprecated
private Integer excludeCount;

/**
Expand Down Expand Up @@ -91,7 +92,7 @@ public Integer getMaxCount() {
* <p>Set only when configuring the <code>targetPattern</code>.</p>
* <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>
*/

@Deprecated
public Integer getExcludeCount() {
return this.excludeCount;
}
Expand All @@ -108,6 +109,7 @@ public void setMaxCount(final Integer maxCount) {
this.maxCount = maxCount;
}

@Deprecated
public void setExcludeCount(final Integer excludeCount) {
this.excludeCount = excludeCount;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ public interface CountOnLineItemUnits extends PatternComponent {
* <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>
* @return excludeCount
*/

@Deprecated
@JsonProperty("excludeCount")
public Integer getExcludeCount();

Expand Down Expand Up @@ -99,7 +99,7 @@ public interface CountOnLineItemUnits extends PatternComponent {
* <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>
* @param excludeCount value to be set
*/

@Deprecated
public void setExcludeCount(final Integer excludeCount);

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,7 @@ public class CountOnLineItemUnitsBuilder implements Builder<CountOnLineItemUnits
@Nullable
private Integer maxCount;

@Deprecated
@Nullable
private Integer excludeCount;

Expand Down Expand Up @@ -75,7 +76,7 @@ public CountOnLineItemUnitsBuilder maxCount(@Nullable final Integer maxCount) {
* @param excludeCount value to be set
* @return Builder
*/

@Deprecated
public CountOnLineItemUnitsBuilder excludeCount(@Nullable final Integer excludeCount) {
this.excludeCount = excludeCount;
return this;
Expand Down Expand Up @@ -117,7 +118,7 @@ public Integer getMaxCount() {
* <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>
* @return excludeCount
*/

@Deprecated
@Nullable
public Integer getExcludeCount() {
return this.excludeCount;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,7 @@ public class CountOnLineItemUnitsImpl implements CountOnLineItemUnits, ModelBase

private Integer maxCount;

@Deprecated
private Integer excludeCount;

/**
Expand Down Expand Up @@ -91,7 +92,7 @@ public Integer getMaxCount() {
* <p>Set only when configuring the <code>targetPattern</code>.</p>
* <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>
*/

@Deprecated
public Integer getExcludeCount() {
return this.excludeCount;
}
Expand All @@ -108,6 +109,7 @@ public void setMaxCount(final Integer maxCount) {
this.maxCount = maxCount;
}

@Deprecated
public void setExcludeCount(final Integer excludeCount) {
this.excludeCount = excludeCount;
}
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -379,3 +379,4 @@ cf0f702598daf6d644ae327099b96b83f5539dfb
5f1b9a7bef052b7f67754d4eccf9d18d139d53c1
054434149a1d2198bd77716c69dbdc13d84cfbb1
bc499c5a4815716efc119199dd274dc72f538a36
77fcf46413ef8bb5133eb0907f42cba037c54c61