Skip to content

Commit

Permalink
Merge pull request #55 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude authored Oct 28, 2021
2 parents e99921c + 302c773 commit c77d1f3
Show file tree
Hide file tree
Showing 252 changed files with 2,079 additions and 297 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -128,15 +128,15 @@ function (ApiRequestBuilder $builder): RequestInterface {
public function getRequestBuilderResponses()
{
return [
'ByProjectKeyInStoreKeyByStoreKeyLoginPost_201' => [
'ByProjectKeyInStoreKeyByStoreKeyLoginPost_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->inStoreKeyWithStoreKeyValue("storeKey")
->login()
->post(null);
},
201
200
],
'ByProjectKeyInStoreKeyByStoreKeyLoginPost_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -126,14 +126,14 @@ function (ApiRequestBuilder $builder): RequestInterface {
public function getRequestBuilderResponses()
{
return [
'ByProjectKeyLoginPost_201' => [
'ByProjectKeyLoginPost_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->login()
->post(null);
},
201
200
],
'ByProjectKeyLoginPost_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -389,6 +389,16 @@ function (ApiRequestBuilder $builder): RequestInterface {
public function getRequestBuilderResponses()
{
return [
'ByProjectKeyProductProjectionsSearchPost_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->productProjections()
->search()
->post(null);
},
200
],
'ByProjectKeyProductProjectionsSearchPost_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,7 @@

/**
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDGet
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDHead
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDPost
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsByIDDelete
* @covers \Commercetools\Api\Client\Resource\ResourceByProjectKeyProductsByID
Expand Down Expand Up @@ -197,6 +198,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/products/test_ID',
],
'ByProjectKeyProductsByIDHead' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("test_projectKey")
->products()
->withId("test_ID")
->head();
},
'head',
'test_projectKey/products/test_ID',
],
'ByProjectKeyProductsByIDPost_withPriceCurrency' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -432,6 +444,15 @@ function (ApiRequestBuilder $builder): RequestInterface {
->get();
}
],
'ByProjectKeyProductsByIDHead' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
}
],
'ByProjectKeyProductsByIDPost' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -546,6 +567,96 @@ function (ApiRequestBuilder $builder): RequestInterface {
},
599
],
'ByProjectKeyProductsByIDHead_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
200
],
'ByProjectKeyProductsByIDHead_404' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
404
],
'ByProjectKeyProductsByIDHead_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
400
],
'ByProjectKeyProductsByIDHead_401' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
401
],
'ByProjectKeyProductsByIDHead_403' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
403
],
'ByProjectKeyProductsByIDHead_500' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
500
],
'ByProjectKeyProductsByIDHead_502' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
502
],
'ByProjectKeyProductsByIDHead_503' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
503
],
'ByProjectKeyProductsByIDHead_599' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withId("ID")
->head();
},
599
],
'ByProjectKeyProductsByIDPost_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@

/**
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsKeyByKeyGet
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsKeyByKeyHead
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsKeyByKeyPost
* @covers \Commercetools\Api\Client\Resource\ByProjectKeyProductsKeyByKeyDelete
* @covers \Commercetools\Api\Client\Resource\ResourceByProjectKeyProductsKeyByKey
Expand Down Expand Up @@ -187,6 +188,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
'get',
'test_projectKey/products/key=test_key',
],
'ByProjectKeyProductsKeyByKeyHead' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("test_projectKey")
->products()
->withKey("test_key")
->head();
},
'head',
'test_projectKey/products/key=test_key',
],
'ByProjectKeyProductsKeyByKeyPost_withPriceCurrency' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -410,6 +422,15 @@ function (ApiRequestBuilder $builder): RequestInterface {
->get();
}
],
'ByProjectKeyProductsKeyByKeyHead' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
}
],
'ByProjectKeyProductsKeyByKeyPost' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down Expand Up @@ -524,6 +545,96 @@ function (ApiRequestBuilder $builder): RequestInterface {
},
599
],
'ByProjectKeyProductsKeyByKeyHead_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
200
],
'ByProjectKeyProductsKeyByKeyHead_404' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
404
],
'ByProjectKeyProductsKeyByKeyHead_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
400
],
'ByProjectKeyProductsKeyByKeyHead_401' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
401
],
'ByProjectKeyProductsKeyByKeyHead_403' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
403
],
'ByProjectKeyProductsKeyByKeyHead_500' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
500
],
'ByProjectKeyProductsKeyByKeyHead_502' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
502
],
'ByProjectKeyProductsKeyByKeyHead_503' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
503
],
'ByProjectKeyProductsKeyByKeyHead_599' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->products()
->withKey("key")
->head();
},
599
],
'ByProjectKeyProductsKeyByKeyPost_200' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Loading

0 comments on commit c77d1f3

Please sign in to comment.