Skip to content

Commit 591d5ea

Browse files
committed
Updated API from documentation release
1 parent ed2b07d commit 591d5ea

File tree

2 files changed

+10
-8
lines changed

2 files changed

+10
-8
lines changed

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

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,23 +8,25 @@ description: |
88
99
Unlike [CartDiscountLineItemsTarget](#cartdiscountlineitemstarget) and [CartDiscountCustomLineItemsTarget](#cartdiscountcustomlineitemstarget), it does not apply to a (Custom) Line Item as a whole, but to individual units of a (Custom) Line Item. The discounts can apply multiple times on the same cart, but each unit can be discounted only once.
1010
properties:
11-
triggerPattern?:
11+
triggerPattern:
1212
type: array
1313
items: PatternComponent
1414
description: |
15-
Units of a (Custom) Line Item that trigger a discount application.
15+
Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.
1616
17-
Based on the availability of matching units, the `triggerPattern` can match multiple times, effecting the number of times the discount will be applied.
17+
Based on the availability of matching units, the `triggerPattern` can match multiple times, limiting the number of maximum times the discount will be applied.
1818
To further limit the discount application, set the `maxOccurrence`.
1919
20-
If empty or not set, the Discount will apply indefinitely.
20+
If empty, the Discount will apply indefinitely.
2121
targetPattern:
2222
type: array
2323
items: PatternComponent
2424
description: |
25-
Units of (Custom) Line Items on which the Discount is applied.
25+
Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
2626
2727
Based on the availability of matching units and the limits from the `triggerPattern` or `maxOccurence`, the `targetPattern` can match multiple times.
28+
29+
This array cannot be empty.
2830
maxOccurrence?:
2931
type: integer
3032
description: |

api-specs/history/types/change/change-value/ChangeTargetPatternChangeValue.raml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -9,16 +9,16 @@ properties:
99
type: string
1010
enum:
1111
- pattern
12-
triggerPattern?:
12+
triggerPattern:
1313
type: array
1414
items: PatternComponent
1515
description: |
16-
Units of a (Custom) Line Item that triggered the discount application.
16+
Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.
1717
targetPattern:
1818
type: array
1919
items: PatternComponent
2020
description: |
21-
Units of (Custom) Line Items on which the Discount is applied.
21+
Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.
2222
maxOccurrence?:
2323
type: integer
2424
description: |

0 commit comments

Comments
 (0)