Skip to content

Commit

Permalink
Merge pull request #112 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
Update generated SDKs
  • Loading branch information
jenschude authored Sep 5, 2023
2 parents 1cd02c1 + 1def0b9 commit 1b3625b
Show file tree
Hide file tree
Showing 1,248 changed files with 49,399 additions and 10,015 deletions.
8 changes: 8 additions & 0 deletions api-php-mixin.raml
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
#%RAML 1.0 Extension
usage: Adds PHP SDK extended functionality
extends: api.raml
types:
CartDiscountValueFixedDraft:
properties:
money:
type: Money[]
612 changes: 360 additions & 252 deletions changes.md

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,7 @@
"monolog/monolog": "^1.3 || ^2.0",
"phpunit/phpunit": "^9.0 | 8.5.22",
"cache/array-adapter": "^1.0",
"symplify/easy-coding-standard": "11.1.5"
"symplify/easy-coding-standard": "12.0.7"
},
"config": {
"allow-plugins": {
Expand Down
22 changes: 6 additions & 16 deletions ecs.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,12 @@
declare(strict_types=1);

ini_set("memory_limit", "-1");
use Commercetools\Tools\SummaryOnlyOutputFormatter;
use ECSPrefix202208\Symfony\Component\DependencyInjection\Loader\Configurator\ContainerConfigurator;
use Symplify\EasyCodingStandard\ValueObject\Set\SetList;
use Symplify\EasyCodingStandard\ValueObject\Option;
use Symplify\EasyCodingStandard\Config\ECSConfig;

return static function (ContainerConfigurator $containerConfigurator): void {
$parameters = $containerConfigurator->parameters();

$parameters->set(Option::CACHE_DIRECTORY, __DIR__ . '/.ecs_cache');

$parameters->set(Option::PATHS, [__DIR__ . '/src', __DIR__ . '/test', __DIR__ . '/lib/commercetools-api/src', __DIR__ . '/lib/commercetools-api-tests/test', __DIR__ . '/lib/commercetools-base/src', __DIR__ . '/lib/commercetools-base/test', __DIR__ . '/lib/commercetools-import/src', __DIR__ . '/lib/commercetools-import-tests/test', __DIR__ . '/lib/commercetools-ml/src', __DIR__ . '/lib/commercetools-ml-tests/test']);
$parameters->set(Option::PARALLEL, true);

$containerConfigurator->import(SetList::PSR_12);

$services = $containerConfigurator->services();

$services->set(SummaryOnlyOutputFormatter::class);
return static function (ECSConfig $ecsConfig): void {
$ecsConfig->cacheDirectory(__DIR__ . '/.ecs_cache');
$ecsConfig->paths([__DIR__ . '/src', __DIR__ . '/test', __DIR__ . '/lib/commercetools-api/src', __DIR__ . '/lib/commercetools-api-tests/test', __DIR__ . '/lib/commercetools-base/src', __DIR__ . '/lib/commercetools-base/test', __DIR__ . '/lib/commercetools-import/src', __DIR__ . '/lib/commercetools-import-tests/test', __DIR__ . '/lib/commercetools-ml/src', __DIR__ . '/lib/commercetools-ml-tests/test']);
$ecsConfig->parallel();
$ecsConfig->sets([SetList::PSR_12]);
};
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyExtensionsByIDGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->withId('test_ID')
->get()
->withExpand('expand');
},
'get',
'test_projectKey/extensions/test_ID?expand=expand',
],
'ByProjectKeyExtensionsByIDGet' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand All @@ -115,18 +103,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/extensions/test_ID',
],
'ByProjectKeyExtensionsByIDPost_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->withId('test_ID')
->post(null)
->withExpand('expand');
},
'post',
'test_projectKey/extensions/test_ID?expand=expand',
],
'ByProjectKeyExtensionsByIDPost' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand All @@ -150,18 +126,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'delete',
'test_projectKey/extensions/test_ID?version=version',
],
'ByProjectKeyExtensionsByIDDelete_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->withId('test_ID')
->delete()
->withExpand('expand');
},
'delete',
'test_projectKey/extensions/test_ID?expand=expand',
],
'ByProjectKeyExtensionsByIDDelete' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -92,18 +92,6 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyExtensionsKeyByKeyGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->withKey('test_key')
->get()
->withExpand('expand');
},
'get',
'test_projectKey/extensions/key=test_key?expand=expand',
],
'ByProjectKeyExtensionsKeyByKeyGet' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand All @@ -115,18 +103,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/extensions/key=test_key',
],
'ByProjectKeyExtensionsKeyByKeyPost_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->withKey('test_key')
->post(null)
->withExpand('expand');
},
'post',
'test_projectKey/extensions/key=test_key?expand=expand',
],
'ByProjectKeyExtensionsKeyByKeyPost' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand All @@ -150,18 +126,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'delete',
'test_projectKey/extensions/key=test_key?version=version',
],
'ByProjectKeyExtensionsKeyByKeyDelete_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->withKey('test_key')
->delete()
->withExpand('expand');
},
'delete',
'test_projectKey/extensions/key=test_key?expand=expand',
],
'ByProjectKeyExtensionsKeyByKeyDelete' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -102,17 +102,6 @@ public function testExecuteServerException(callable $builderFunction)
public function getRequests()
{
return [
'ByProjectKeyExtensionsGet_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->get()
->withExpand('expand');
},
'get',
'test_projectKey/extensions?expand=expand',
],
'ByProjectKeyExtensionsGet_withSort' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -189,17 +178,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/extensions',
],
'ByProjectKeyExtensionsPost_withExpand' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->extensions()
->post(null)
->withExpand('expand');
},
'post',
'test_projectKey/extensions?expand=expand',
],
'ByProjectKeyExtensionsPost' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Loading

0 comments on commit 1b3625b

Please sign in to comment.