Skip to content

Commit 77fcf46

Browse files
committed
Updated API from documentation release
1 parent be04b8a commit 77fcf46

File tree

4 files changed

+8
-6
lines changed

4 files changed

+8
-6
lines changed

api-specs/api/types/cart-discount/CartDiscountPatternTarget.raml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,9 +15,9 @@ properties:
1515
Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
1616
1717
Based on the availability of matching units, the `triggerPattern` can match multiple times, limiting the number of maximum times the discount will be applied.
18-
To further limit the discount application, set the `maxOccurrence`.
18+
The units matched in the `triggerPattern` are excluded and not considered for the `targetPattern`.
1919
20-
If empty, the Discount will apply indefinitely.
20+
To further limit the discount application, set the `maxOccurrence`.
2121
targetPattern:
2222
type: array
2323
items: PatternComponent

api-specs/api/types/cart-discount/CountOnCustomLineItemUnits.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ properties:
2525
If not provided, the component will match all units that satisfy the predicate.
2626
minimum: 1
2727
excludeCount?:
28+
(markDeprecated): true
2829
type: integer
2930
description: |
3031
Number of units of a Custom Line Item to exclude on every application of the Discount.

api-specs/api/types/cart-discount/CountOnLineItemUnits.raml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ properties:
2525
If not provided, the component will match all units that satisfy the predicate.
2626
minimum: 1
2727
excludeCount?:
28+
(markDeprecated): true
2829
type: integer
2930
description: |
3031
Number of units of a Line Item to exclude on every application of the Discount.

api-specs/graphql/schema.sdl

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."

0 commit comments

Comments
 (0)