diff --git a/changes.md b/changes.md index 0900bdd1775..efc454e7076 100644 --- a/changes.md +++ b/changes.md @@ -9,6 +9,22 @@ +
+Required Property(s) + +- :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required +
+ + +
+Added Property(s) + +- added property `inheritedStores` to type `BusinessUnit` +- added property `inheritedStores` to type `Company` +- added property `inheritedStores` to type `Division` +
+ +
Added Method(s) @@ -25,21 +41,19 @@ - added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->businessUnits()->withId()->delete()`
+**History changes**
-Added Property(s) +Changed Property(s) -- added property `inheritedStores` to type `BusinessUnit` -- added property `inheritedStores` to type `Company` -- added property `inheritedStores` to type `Division` +- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
-**History changes**
-Changed Property(s) +Required Property(s) -- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object` +- :warning: changed property `triggerPattern` of type `ChangeTargetPatternChangeValue` to be required
diff --git a/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTarget.php b/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTarget.php index d945eabd0be..08163bcbc5a 100644 --- a/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTarget.php +++ b/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTarget.php @@ -19,10 +19,10 @@ interface CartDiscountPatternTarget extends CartDiscountTarget public const FIELD_SELECTION_MODE = 'selectionMode'; /** - *

Units of a (Custom) Line Item that trigger a discount application.

- *

Based on the availability of matching units, the triggerPattern can match multiple times, effecting the number of times the discount will be applied. + *

Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.

+ *

Based on the availability of matching units, the triggerPattern can match multiple times, limiting the number of maximum times the discount will be applied. * To further limit the discount application, set the maxOccurrence.

- *

If empty or not set, the Discount will apply indefinitely.

+ *

If empty, the Discount will apply indefinitely.

* * @return null|PatternComponentCollection @@ -30,8 +30,9 @@ interface CartDiscountPatternTarget extends CartDiscountTarget public function getTriggerPattern(); /** - *

Units of (Custom) Line Items on which the Discount is applied.

+ *

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

*

Based on the availability of matching units and the limits from the triggerPattern or maxOccurence, the targetPattern can match multiple times.

+ *

This array cannot be empty.

* * @return null|PatternComponentCollection diff --git a/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetBuilder.php b/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetBuilder.php index 3b9afa3aadf..532020ce9e4 100644 --- a/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetBuilder.php +++ b/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetBuilder.php @@ -45,10 +45,10 @@ final class CartDiscountPatternTargetBuilder implements Builder private $selectionMode; /** - *

Units of a (Custom) Line Item that trigger a discount application.

- *

Based on the availability of matching units, the triggerPattern can match multiple times, effecting the number of times the discount will be applied. + *

Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.

+ *

Based on the availability of matching units, the triggerPattern can match multiple times, limiting the number of maximum times the discount will be applied. * To further limit the discount application, set the maxOccurrence.

- *

If empty or not set, the Discount will apply indefinitely.

+ *

If empty, the Discount will apply indefinitely.

* * @return null|PatternComponentCollection @@ -59,8 +59,9 @@ public function getTriggerPattern() } /** - *

Units of (Custom) Line Items on which the Discount is applied.

+ *

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

*

Based on the availability of matching units and the limits from the triggerPattern or maxOccurence, the targetPattern can match multiple times.

+ *

This array cannot be empty.

* * @return null|PatternComponentCollection diff --git a/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetModel.php b/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetModel.php index 00bf6bbcfdd..837df154eae 100644 --- a/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetModel.php +++ b/lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetModel.php @@ -87,10 +87,10 @@ public function getType() } /** - *

Units of a (Custom) Line Item that trigger a discount application.

- *

Based on the availability of matching units, the triggerPattern can match multiple times, effecting the number of times the discount will be applied. + *

Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.

+ *

Based on the availability of matching units, the triggerPattern can match multiple times, limiting the number of maximum times the discount will be applied. * To further limit the discount application, set the maxOccurrence.

- *

If empty or not set, the Discount will apply indefinitely.

+ *

If empty, the Discount will apply indefinitely.

* * * @return null|PatternComponentCollection @@ -110,8 +110,9 @@ public function getTriggerPattern() } /** - *

Units of (Custom) Line Items on which the Discount is applied.

+ *

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

*

Based on the availability of matching units and the limits from the triggerPattern or maxOccurence, the targetPattern can match multiple times.

+ *

This array cannot be empty.

* * * @return null|PatternComponentCollection diff --git a/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValue.php b/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValue.php index a733416abfb..ad47c888580 100644 --- a/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValue.php +++ b/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValue.php @@ -27,7 +27,7 @@ interface ChangeTargetPatternChangeValue extends ChangeTargetChangeValue public function getType(); /** - *

Units of a (Custom) Line Item that triggered the discount application.

+ *

Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.

* * @return null|PatternComponentCollection @@ -35,7 +35,7 @@ public function getType(); public function getTriggerPattern(); /** - *

Units of (Custom) Line Items on which the Discount is applied.

+ *

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

* * @return null|PatternComponentCollection diff --git a/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueBuilder.php b/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueBuilder.php index 2431ad8ba3f..6e788f41cf8 100644 --- a/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueBuilder.php +++ b/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueBuilder.php @@ -46,7 +46,7 @@ final class ChangeTargetPatternChangeValueBuilder implements Builder private $selectionMode; /** - *

Units of a (Custom) Line Item that triggered the discount application.

+ *

Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.

* * @return null|PatternComponentCollection @@ -57,7 +57,7 @@ public function getTriggerPattern() } /** - *

Units of (Custom) Line Items on which the Discount is applied.

+ *

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

* * @return null|PatternComponentCollection diff --git a/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueModel.php b/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueModel.php index 4250438d5fd..bb499b46721 100644 --- a/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueModel.php +++ b/lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueModel.php @@ -89,7 +89,7 @@ public function getType() } /** - *

Units of a (Custom) Line Item that triggered the discount application.

+ *

Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.

* * * @return null|PatternComponentCollection @@ -109,7 +109,7 @@ public function getTriggerPattern() } /** - *

Units of (Custom) Line Items on which the Discount is applied.

+ *

Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.

* * * @return null|PatternComponentCollection diff --git a/references.txt b/references.txt index c0c6878a285..c6255d6cc99 100644 --- a/references.txt +++ b/references.txt @@ -347,3 +347,4 @@ e8f731a742ca2997342b1b5f98121d86c8189a3b b7b82f5a701908239fcf39781bcbfa80823c9fa0 cc1732f88ea3dc336358ff9f39cda9d5271cf7c2 e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a +591d5eaefd1d56fd350895ccea401cb42f2f0ee8