Skip to content

Commit e59d1a8

Browse files
committed
build(codegen): updating SDK
1 parent 196d7ed commit e59d1a8

File tree

8 files changed

+43
-25
lines changed

8 files changed

+43
-25
lines changed

changes.md

Lines changed: 21 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,22 @@
99
</details>
1010

1111

12+
<details>
13+
<summary>Required Property(s)</summary>
14+
15+
- :warning: changed property `triggerPattern` of type `CartDiscountPatternTarget` to be required
16+
</details>
17+
18+
19+
<details>
20+
<summary>Added Property(s)</summary>
21+
22+
- added property `inheritedStores` to type `BusinessUnit`
23+
- added property `inheritedStores` to type `Company`
24+
- added property `inheritedStores` to type `Division`
25+
</details>
26+
27+
1228
<details>
1329
<summary>Added Method(s)</summary>
1430

@@ -25,21 +41,19 @@
2541
- added method `$apiRoot->withProjectKey()->inStoreKeyWithStoreKeyValue()->businessUnits()->withId()->delete()`
2642
</details>
2743

44+
**History changes**
2845

2946
<details>
30-
<summary>Added Property(s)</summary>
47+
<summary>Changed Property(s)</summary>
3148

32-
- added property `inheritedStores` to type `BusinessUnit`
33-
- added property `inheritedStores` to type `Company`
34-
- added property `inheritedStores` to type `Division`
49+
- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
3550
</details>
3651

37-
**History changes**
3852

3953
<details>
40-
<summary>Changed Property(s)</summary>
54+
<summary>Required Property(s)</summary>
4155

42-
- :warning: changed property `extensions` of type `GraphQLError` from type `GraphQLErrorObject` to `object`
56+
- :warning: changed property `triggerPattern` of type `ChangeTargetPatternChangeValue` to be required
4357
</details>
4458

4559

lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTarget.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,19 +19,20 @@ interface CartDiscountPatternTarget extends CartDiscountTarget
1919
public const FIELD_SELECTION_MODE = 'selectionMode';
2020

2121
/**
22-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
23-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied.
22+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
23+
* <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.
2424
* To further limit the discount application, set the <code>maxOccurrence</code>.</p>
25-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
25+
* <p>If empty, the Discount will apply indefinitely.</p>
2626
*
2727
2828
* @return null|PatternComponentCollection
2929
*/
3030
public function getTriggerPattern();
3131

3232
/**
33-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
33+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
3434
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
35+
* <p>This array cannot be empty.</p>
3536
*
3637
3738
* @return null|PatternComponentCollection

lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetBuilder.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -45,10 +45,10 @@ final class CartDiscountPatternTargetBuilder implements Builder
4545
private $selectionMode;
4646

4747
/**
48-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
49-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied.
48+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
49+
* <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.
5050
* To further limit the discount application, set the <code>maxOccurrence</code>.</p>
51-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
51+
* <p>If empty, the Discount will apply indefinitely.</p>
5252
*
5353
5454
* @return null|PatternComponentCollection
@@ -59,8 +59,9 @@ public function getTriggerPattern()
5959
}
6060

6161
/**
62-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
62+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
6363
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
64+
* <p>This array cannot be empty.</p>
6465
*
6566
6667
* @return null|PatternComponentCollection

lib/commercetools-api/src/Models/CartDiscount/CartDiscountPatternTargetModel.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,10 @@ public function getType()
8787
}
8888

8989
/**
90-
* <p>Units of a (Custom) Line Item that trigger a discount application.</p>
91-
* <p>Based on the availability of matching units, the <code>triggerPattern</code> can match multiple times, effecting the number of times the discount will be applied.
90+
* <p>Defines the set of units of (Custom) Line Items in a Cart that trigger a discount application.</p>
91+
* <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.
9292
* To further limit the discount application, set the <code>maxOccurrence</code>.</p>
93-
* <p>If empty or not set, the Discount will apply indefinitely.</p>
93+
* <p>If empty, the Discount will apply indefinitely.</p>
9494
*
9595
*
9696
* @return null|PatternComponentCollection
@@ -110,8 +110,9 @@ public function getTriggerPattern()
110110
}
111111

112112
/**
113-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
113+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
114114
* <p>Based on the availability of matching units and the limits from the <code>triggerPattern</code> or <code>maxOccurence</code>, the <code>targetPattern</code> can match multiple times.</p>
115+
* <p>This array cannot be empty.</p>
115116
*
116117
*
117118
* @return null|PatternComponentCollection

lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValue.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -27,15 +27,15 @@ interface ChangeTargetPatternChangeValue extends ChangeTargetChangeValue
2727
public function getType();
2828

2929
/**
30-
* <p>Units of a (Custom) Line Item that triggered the discount application.</p>
30+
* <p>Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.</p>
3131
*
3232
3333
* @return null|PatternComponentCollection
3434
*/
3535
public function getTriggerPattern();
3636

3737
/**
38-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
38+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
3939
*
4040
4141
* @return null|PatternComponentCollection

lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueBuilder.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ final class ChangeTargetPatternChangeValueBuilder implements Builder
4646
private $selectionMode;
4747

4848
/**
49-
* <p>Units of a (Custom) Line Item that triggered the discount application.</p>
49+
* <p>Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.</p>
5050
*
5151
5252
* @return null|PatternComponentCollection
@@ -57,7 +57,7 @@ public function getTriggerPattern()
5757
}
5858

5959
/**
60-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
60+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
6161
*
6262
6363
* @return null|PatternComponentCollection

lib/commercetools-history/src/Models/ChangeValue/ChangeTargetPatternChangeValueModel.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ public function getType()
8989
}
9090

9191
/**
92-
* <p>Units of a (Custom) Line Item that triggered the discount application.</p>
92+
* <p>Defines the set of units of (Custom) Line Items in a Cart that triggered the discount application.</p>
9393
*
9494
*
9595
* @return null|PatternComponentCollection
@@ -109,7 +109,7 @@ public function getTriggerPattern()
109109
}
110110

111111
/**
112-
* <p>Units of (Custom) Line Items on which the Discount is applied.</p>
112+
* <p>Defines the set of units of (Custom) Line Items in a Cart on which the Discount is applied.</p>
113113
*
114114
*
115115
* @return null|PatternComponentCollection

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,3 +347,4 @@ e8f731a742ca2997342b1b5f98121d86c8189a3b
347347
b7b82f5a701908239fcf39781bcbfa80823c9fa0
348348
cc1732f88ea3dc336358ff9f39cda9d5271cf7c2
349349
e3d5bc9cb69146c5d1dd755ed5e8cf2f54566b3a
350+
591d5eaefd1d56fd350895ccea401cb42f2f0ee8

0 commit comments

Comments
 (0)