Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions changes.md
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,7 @@
<summary>Changed Property(s)</summary>

- :warning: changed property `discount` of type `DiscountedTotalPricePortion` from type `CartDiscountReference` to `Reference`
- :warning: changed property `actions` of type `MyBusinessUnitUpdate` from type `BusinessUnitUpdateAction[]` to `MyBusinessUnitUpdateAction[]`
</details>


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Commercetools\Api\Models\Me;

use Commercetools\Api\Models\BusinessUnit\BusinessUnitUpdateActionCollection;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;

Expand All @@ -30,7 +29,7 @@ public function getVersion();
* <p>Update actions to be performed on the BusinessUnit.</p>
*

* @return null|BusinessUnitUpdateActionCollection
* @return null|MyBusinessUnitUpdateActionCollection
*/
public function getActions();

Expand All @@ -40,7 +39,7 @@ public function getActions();
public function setVersion(?int $version): void;

/**
* @param ?BusinessUnitUpdateActionCollection $actions
* @param ?MyBusinessUnitUpdateActionCollection $actions
*/
public function setActions(?BusinessUnitUpdateActionCollection $actions): void;
public function setActions(?MyBusinessUnitUpdateActionCollection $actions): void;
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Commercetools\Api\Models\Me;

use Commercetools\Api\Models\BusinessUnit\BusinessUnitUpdateActionCollection;
use Commercetools\Base\Builder;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
Expand All @@ -29,7 +28,7 @@

/**

* @var ?BusinessUnitUpdateActionCollection
* @var ?MyBusinessUnitUpdateActionCollection
*/
private $actions;

Expand All @@ -49,7 +48,7 @@
* <p>Update actions to be performed on the BusinessUnit.</p>
*

* @return null|BusinessUnitUpdateActionCollection
* @return null|MyBusinessUnitUpdateActionCollection
*/
public function getActions()
{
Expand All @@ -68,10 +67,10 @@
}

/**
* @param ?BusinessUnitUpdateActionCollection $actions
* @param ?MyBusinessUnitUpdateActionCollection $actions
* @return $this
*/
public function withActions(?BusinessUnitUpdateActionCollection $actions)
public function withActions(?MyBusinessUnitUpdateActionCollection $actions)

Check warning on line 73 in lib/commercetools-api/src/Models/Me/MyBusinessUnitUpdateBuilder.php

View check run for this annotation

Codecov / codecov/patch

lib/commercetools-api/src/Models/Me/MyBusinessUnitUpdateBuilder.php#L73

Added line #L73 was not covered by tests
{
$this->actions = $actions;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@

namespace Commercetools\Api\Models\Me;

use Commercetools\Api\Models\BusinessUnit\BusinessUnitUpdateActionCollection;
use Commercetools\Base\DateTimeImmutableCollection;
use Commercetools\Base\JsonObject;
use Commercetools\Base\JsonObjectModel;
Expand All @@ -28,7 +27,7 @@

/**
*
* @var ?BusinessUnitUpdateActionCollection
* @var ?MyBusinessUnitUpdateActionCollection
*/
protected $actions;

Expand All @@ -38,7 +37,7 @@
*/
public function __construct(
?int $version = null,
?BusinessUnitUpdateActionCollection $actions = null
?MyBusinessUnitUpdateActionCollection $actions = null
) {
$this->version = $version;
$this->actions = $actions;
Expand Down Expand Up @@ -69,7 +68,7 @@
* <p>Update actions to be performed on the BusinessUnit.</p>
*
*
* @return null|BusinessUnitUpdateActionCollection
* @return null|MyBusinessUnitUpdateActionCollection
*/
public function getActions()
{
Expand All @@ -79,7 +78,7 @@
if (is_null($data)) {
return null;
}
$this->actions = BusinessUnitUpdateActionCollection::fromArray($data);
$this->actions = MyBusinessUnitUpdateActionCollection::fromArray($data);

Check warning on line 81 in lib/commercetools-api/src/Models/Me/MyBusinessUnitUpdateModel.php

View check run for this annotation

Codecov / codecov/patch

lib/commercetools-api/src/Models/Me/MyBusinessUnitUpdateModel.php#L81

Added line #L81 was not covered by tests
}

return $this->actions;
Expand All @@ -95,9 +94,9 @@
}

/**
* @param ?BusinessUnitUpdateActionCollection $actions
* @param ?MyBusinessUnitUpdateActionCollection $actions
*/
public function setActions(?BusinessUnitUpdateActionCollection $actions): void
public function setActions(?MyBusinessUnitUpdateActionCollection $actions): void

Check warning on line 99 in lib/commercetools-api/src/Models/Me/MyBusinessUnitUpdateModel.php

View check run for this annotation

Codecov / codecov/patch

lib/commercetools-api/src/Models/Me/MyBusinessUnitUpdateModel.php#L99

Added line #L99 was not covered by tests
{
$this->actions = $actions;
}
Expand Down
1 change: 1 addition & 0 deletions references.txt
Original file line number Diff line number Diff line change
Expand Up @@ -402,3 +402,4 @@ f0288f95a5fe33fd2973df3f8290defb15129192
010dd0b21f278cd6ccfc7833ab0c9245d0ae11ab
790830d35463033d3b7e35060d16659c82040f4e
178cffb2a2cf988d054f8e346aae35f20a517e6b
761762c7caad45bc86b08db7021a033fff18ba90