Skip to content

Commit a464edd

Browse files
committed
build(codegen): updating SDK
1 parent a85c445 commit a464edd

File tree

5 files changed

+82
-1
lines changed

5 files changed

+82
-1
lines changed

changes.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -238,6 +238,7 @@
238238
- added property `inheritedStores` to type `BusinessUnit`
239239
- added property `inheritedStores` to type `Company`
240240
- added property `inheritedStores` to type `Division`
241+
- added property `makeInheritedAssociatesExplicit` to type `BusinessUnitChangeAssociateModeAction`
241242
- added property `discountGroup` to type `CartDiscount`
242243
- added property `discountGroup` to type `CartDiscountDraft`
243244
- added property `priceRoundingMode` to type `Cart`

lib/commercetools-api/src/Models/BusinessUnit/BusinessUnitChangeAssociateModeAction.php

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@
1414
interface BusinessUnitChangeAssociateModeAction extends BusinessUnitUpdateAction
1515
{
1616
public const FIELD_ASSOCIATE_MODE = 'associateMode';
17+
public const FIELD_MAKE_INHERITED_ASSOCIATES_EXPLICIT = 'makeInheritedAssociatesExplicit';
1718

1819
/**
1920
* <p>The new value for <code>associateMode</code>.</p>
@@ -23,8 +24,21 @@ interface BusinessUnitChangeAssociateModeAction extends BusinessUnitUpdateAction
2324
*/
2425
public function getAssociateMode();
2526

27+
/**
28+
* <p>If set to <code>true</code> during a change to <code>associateMode=&quot;Explicit&quot;</code>, all inherited Associates will be converted to explicit Associates.</p>
29+
*
30+
31+
* @return null|bool
32+
*/
33+
public function getMakeInheritedAssociatesExplicit();
34+
2635
/**
2736
* @param ?string $associateMode
2837
*/
2938
public function setAssociateMode(?string $associateMode): void;
39+
40+
/**
41+
* @param ?bool $makeInheritedAssociatesExplicit
42+
*/
43+
public function setMakeInheritedAssociatesExplicit(?bool $makeInheritedAssociatesExplicit): void;
3044
}

lib/commercetools-api/src/Models/BusinessUnit/BusinessUnitChangeAssociateModeActionBuilder.php

Lines changed: 30 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,12 @@ final class BusinessUnitChangeAssociateModeActionBuilder implements Builder
2626
*/
2727
private $associateMode;
2828

29+
/**
30+
31+
* @var ?bool
32+
*/
33+
private $makeInheritedAssociatesExplicit;
34+
2935
/**
3036
* <p>The new value for <code>associateMode</code>.</p>
3137
*
@@ -37,6 +43,17 @@ public function getAssociateMode()
3743
return $this->associateMode;
3844
}
3945

46+
/**
47+
* <p>If set to <code>true</code> during a change to <code>associateMode=&quot;Explicit&quot;</code>, all inherited Associates will be converted to explicit Associates.</p>
48+
*
49+
50+
* @return null|bool
51+
*/
52+
public function getMakeInheritedAssociatesExplicit()
53+
{
54+
return $this->makeInheritedAssociatesExplicit;
55+
}
56+
4057
/**
4158
* @param ?string $associateMode
4259
* @return $this
@@ -48,11 +65,23 @@ public function withAssociateMode(?string $associateMode)
4865
return $this;
4966
}
5067

68+
/**
69+
* @param ?bool $makeInheritedAssociatesExplicit
70+
* @return $this
71+
*/
72+
public function withMakeInheritedAssociatesExplicit(?bool $makeInheritedAssociatesExplicit)
73+
{
74+
$this->makeInheritedAssociatesExplicit = $makeInheritedAssociatesExplicit;
75+
76+
return $this;
77+
}
78+
5179

5280
public function build(): BusinessUnitChangeAssociateModeAction
5381
{
5482
return new BusinessUnitChangeAssociateModeActionModel(
55-
$this->associateMode
83+
$this->associateMode,
84+
$this->makeInheritedAssociatesExplicit
5685
);
5786
}
5887

lib/commercetools-api/src/Models/BusinessUnit/BusinessUnitChangeAssociateModeActionModel.php

Lines changed: 36 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,15 +32,23 @@ final class BusinessUnitChangeAssociateModeActionModel extends JsonObjectModel i
3232
*/
3333
protected $associateMode;
3434

35+
/**
36+
*
37+
* @var ?bool
38+
*/
39+
protected $makeInheritedAssociatesExplicit;
40+
3541

3642
/**
3743
* @psalm-suppress MissingParamType
3844
*/
3945
public function __construct(
4046
?string $associateMode = null,
47+
?bool $makeInheritedAssociatesExplicit = null,
4148
?string $action = null
4249
) {
4350
$this->associateMode = $associateMode;
51+
$this->makeInheritedAssociatesExplicit = $makeInheritedAssociatesExplicit;
4452
$this->action = $action ?? self::DISCRIMINATOR_VALUE;
4553
}
4654

@@ -82,6 +90,26 @@ public function getAssociateMode()
8290
return $this->associateMode;
8391
}
8492

93+
/**
94+
* <p>If set to <code>true</code> during a change to <code>associateMode=&quot;Explicit&quot;</code>, all inherited Associates will be converted to explicit Associates.</p>
95+
*
96+
*
97+
* @return null|bool
98+
*/
99+
public function getMakeInheritedAssociatesExplicit()
100+
{
101+
if (is_null($this->makeInheritedAssociatesExplicit)) {
102+
/** @psalm-var ?bool $data */
103+
$data = $this->raw(self::FIELD_MAKE_INHERITED_ASSOCIATES_EXPLICIT);
104+
if (is_null($data)) {
105+
return null;
106+
}
107+
$this->makeInheritedAssociatesExplicit = (bool) $data;
108+
}
109+
110+
return $this->makeInheritedAssociatesExplicit;
111+
}
112+
85113

86114
/**
87115
* @param ?string $associateMode
@@ -90,4 +118,12 @@ public function setAssociateMode(?string $associateMode): void
90118
{
91119
$this->associateMode = $associateMode;
92120
}
121+
122+
/**
123+
* @param ?bool $makeInheritedAssociatesExplicit
124+
*/
125+
public function setMakeInheritedAssociatesExplicit(?bool $makeInheritedAssociatesExplicit): void
126+
{
127+
$this->makeInheritedAssociatesExplicit = $makeInheritedAssociatesExplicit;
128+
}
93129
}

references.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -445,3 +445,4 @@ c388d876a51d22b2b8a73249fe4694b297db6cd5
445445
62b5cf36742b61ed6fb52a93f1c241070a87e6fb
446446
bb49fa04d50e4e0267846c7d805ae8ebc254bdea
447447
bb49fa04d50e4e0267846c7d805ae8ebc254bdea
448+
619fb89cb6ac5d2a1d5f1b7d2f51a51e13e7ace9

0 commit comments

Comments
 (0)