-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #40 from commercetools/gen-sdk-updates
Update generated SDKs
- Loading branch information
Showing
60 changed files
with
1,191 additions
and
132 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
hash=f0c268413ad3a79b40cf1506214f032faa04c4bb | ||
hash=54444c4eae550cc5db7327b4047c36aa5f064bf7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1 @@ | ||
hash=f0c268413ad3a79b40cf1506214f032faa04c4bb | ||
hash=54444c4eae550cc5db7327b4047c36aa5f064bf7 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
27 changes: 27 additions & 0 deletions
27
lib/commercetools-api/src/Models/Project/ProjectChangeShoppingListsConfiguration.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* This file has been auto generated | ||
* Do not change it. | ||
*/ | ||
|
||
namespace Commercetools\Api\Models\Project; | ||
|
||
use Commercetools\Base\DateTimeImmutableCollection; | ||
use Commercetools\Base\JsonObject; | ||
|
||
interface ProjectChangeShoppingListsConfiguration extends ProjectUpdateAction | ||
{ | ||
public const FIELD_SHOPPING_LISTS_CONFIGURATION = 'shoppingListsConfiguration'; | ||
|
||
/** | ||
* @return null|ShoppingListsConfiguration | ||
*/ | ||
public function getShoppingListsConfiguration(); | ||
|
||
/** | ||
* @param ?ShoppingListsConfiguration $shoppingListsConfiguration | ||
*/ | ||
public function setShoppingListsConfiguration(?ShoppingListsConfiguration $shoppingListsConfiguration): void; | ||
} |
69 changes: 69 additions & 0 deletions
69
lib/commercetools-api/src/Models/Project/ProjectChangeShoppingListsConfigurationBuilder.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,69 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* This file has been auto generated | ||
* Do not change it. | ||
*/ | ||
|
||
namespace Commercetools\Api\Models\Project; | ||
|
||
use Commercetools\Base\Builder; | ||
use Commercetools\Base\DateTimeImmutableCollection; | ||
use Commercetools\Base\JsonObject; | ||
use Commercetools\Base\JsonObjectModel; | ||
use Commercetools\Base\MapperFactory; | ||
use stdClass; | ||
|
||
/** | ||
* @implements Builder<ProjectChangeShoppingListsConfiguration> | ||
*/ | ||
final class ProjectChangeShoppingListsConfigurationBuilder implements Builder | ||
{ | ||
/** | ||
* @var null|ShoppingListsConfiguration|ShoppingListsConfigurationBuilder | ||
*/ | ||
private $shoppingListsConfiguration; | ||
|
||
/** | ||
* @return null|ShoppingListsConfiguration | ||
*/ | ||
public function getShoppingListsConfiguration() | ||
{ | ||
return $this->shoppingListsConfiguration instanceof ShoppingListsConfigurationBuilder ? $this->shoppingListsConfiguration->build() : $this->shoppingListsConfiguration; | ||
} | ||
|
||
/** | ||
* @param ?ShoppingListsConfiguration $shoppingListsConfiguration | ||
* @return $this | ||
*/ | ||
public function withShoppingListsConfiguration(?ShoppingListsConfiguration $shoppingListsConfiguration) | ||
{ | ||
$this->shoppingListsConfiguration = $shoppingListsConfiguration; | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @deprecated use withShoppingListsConfiguration() instead | ||
* @return $this | ||
*/ | ||
public function withShoppingListsConfigurationBuilder(?ShoppingListsConfigurationBuilder $shoppingListsConfiguration) | ||
{ | ||
$this->shoppingListsConfiguration = $shoppingListsConfiguration; | ||
|
||
return $this; | ||
} | ||
|
||
public function build(): ProjectChangeShoppingListsConfiguration | ||
{ | ||
return new ProjectChangeShoppingListsConfigurationModel( | ||
$this->shoppingListsConfiguration instanceof ShoppingListsConfigurationBuilder ? $this->shoppingListsConfiguration->build() : $this->shoppingListsConfiguration | ||
); | ||
} | ||
|
||
public static function of(): ProjectChangeShoppingListsConfigurationBuilder | ||
{ | ||
return new self(); | ||
} | ||
} |
55 changes: 55 additions & 0 deletions
55
...ommercetools-api/src/Models/Project/ProjectChangeShoppingListsConfigurationCollection.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<?php | ||
|
||
declare(strict_types=1); | ||
/** | ||
* This file has been auto generated | ||
* Do not change it. | ||
*/ | ||
|
||
namespace Commercetools\Api\Models\Project; | ||
|
||
use Commercetools\Api\Models\Project\ProjectUpdateActionCollection; | ||
use Commercetools\Exception\InvalidArgumentException; | ||
use stdClass; | ||
|
||
/** | ||
* @extends ProjectUpdateActionCollection<ProjectChangeShoppingListsConfiguration> | ||
* @method ProjectChangeShoppingListsConfiguration current() | ||
* @method ProjectChangeShoppingListsConfiguration at($offset) | ||
*/ | ||
class ProjectChangeShoppingListsConfigurationCollection extends ProjectUpdateActionCollection | ||
{ | ||
/** | ||
* @psalm-assert ProjectChangeShoppingListsConfiguration $value | ||
* @psalm-param ProjectChangeShoppingListsConfiguration|stdClass $value | ||
* @throws InvalidArgumentException | ||
* | ||
* @return ProjectChangeShoppingListsConfigurationCollection | ||
*/ | ||
public function add($value) | ||
{ | ||
if (!$value instanceof ProjectChangeShoppingListsConfiguration) { | ||
throw new InvalidArgumentException(); | ||
} | ||
$this->store($value); | ||
|
||
return $this; | ||
} | ||
|
||
/** | ||
* @psalm-return callable(int):?ProjectChangeShoppingListsConfiguration | ||
*/ | ||
protected function mapper() | ||
{ | ||
return function (int $index): ?ProjectChangeShoppingListsConfiguration { | ||
$data = $this->get($index); | ||
if ($data instanceof stdClass) { | ||
/** @var ProjectChangeShoppingListsConfiguration $data */ | ||
$data = ProjectChangeShoppingListsConfigurationModel::of($data); | ||
$this->set($data, $index); | ||
} | ||
|
||
return $data; | ||
}; | ||
} | ||
} |
Oops, something went wrong.