Skip to content

Commit 391ad09

Browse files
authored
Merge pull request #28 from commercetools/gen-sdk-updates
2 parents a155dca + 2c16aa3 commit 391ad09

File tree

328 files changed

+331
-39
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

328 files changed

+331
-39
lines changed
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=a2545af9b9acb5b52197c2de1d07a019a3f9d947
1+
hash=538ad98afd8b3bb709d89e67509a5080c6577b5f

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyCustomersPasswordTokenTest.php

Lines changed: 2 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -128,15 +128,15 @@ function (ApiRequestBuilder $builder): RequestInterface {
128128
public function getRequestBuilderResponses()
129129
{
130130
return [
131-
'ByProjectKeyCustomersPasswordTokenPost_201' => [
131+
'ByProjectKeyCustomersPasswordTokenPost_200' => [
132132
function (ApiRequestBuilder $builder): RequestInterface {
133133
return $builder
134134
->withProjectKey("projectKey")
135135
->customers()
136136
->passwordToken()
137137
->post(null);
138138
},
139-
201
139+
200
140140
],
141141
'ByProjectKeyCustomersPasswordTokenPost_400' => [
142142
function (ApiRequestBuilder $builder): RequestInterface {
@@ -198,16 +198,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
198198
},
199199
503
200200
],
201-
'ByProjectKeyCustomersPasswordTokenPost_200' => [
202-
function (ApiRequestBuilder $builder): RequestInterface {
203-
return $builder
204-
->withProjectKey("projectKey")
205-
->customers()
206-
->passwordToken()
207-
->post(null);
208-
},
209-
200
210-
],
211201
'ByProjectKeyCustomersPasswordTokenPost_599' => [
212202
function (ApiRequestBuilder $builder): RequestInterface {
213203
return $builder

lib/commercetools-api-tests/test/unit/Client/Resource/ResourceByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenTest.php

Lines changed: 2 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -130,7 +130,7 @@ function (ApiRequestBuilder $builder): RequestInterface {
130130
public function getRequestBuilderResponses()
131131
{
132132
return [
133-
'ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost_201' => [
133+
'ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost_200' => [
134134
function (ApiRequestBuilder $builder): RequestInterface {
135135
return $builder
136136
->withProjectKey("projectKey")
@@ -139,7 +139,7 @@ function (ApiRequestBuilder $builder): RequestInterface {
139139
->passwordToken()
140140
->post(null);
141141
},
142-
201
142+
200
143143
],
144144
'ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost_400' => [
145145
function (ApiRequestBuilder $builder): RequestInterface {
@@ -207,17 +207,6 @@ function (ApiRequestBuilder $builder): RequestInterface {
207207
},
208208
503
209209
],
210-
'ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost_200' => [
211-
function (ApiRequestBuilder $builder): RequestInterface {
212-
return $builder
213-
->withProjectKey("projectKey")
214-
->inStoreKeyWithStoreKeyValue("storeKey")
215-
->customers()
216-
->passwordToken()
217-
->post(null);
218-
},
219-
200
220-
],
221210
'ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost_599' => [
222211
function (ApiRequestBuilder $builder): RequestInterface {
223212
return $builder
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=a2545af9b9acb5b52197c2de1d07a019a3f9d947
1+
hash=538ad98afd8b3bb709d89e67509a5080c6577b5f

lib/commercetools-api/src/Client/Resource/ByProjectKeyCustomersPasswordTokenPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function mapFromResponse(?ResponseInterface $response, string $resultType
5252
}
5353
if (is_null($resultType)) {
5454
switch ($response->getStatusCode()) {
55-
case '201':
55+
case '200':
5656
$resultType = CustomerTokenModel::class;
5757

5858
break;

lib/commercetools-api/src/Client/Resource/ByProjectKeyInStoreKeyByStoreKeyCustomersPasswordTokenPost.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ public function mapFromResponse(?ResponseInterface $response, string $resultType
5252
}
5353
if (is_null($resultType)) {
5454
switch ($response->getStatusCode()) {
55-
case '201':
55+
case '200':
5656
$resultType = CustomerTokenModel::class;
5757

5858
break;
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=a2545af9b9acb5b52197c2de1d07a019a3f9d947
1+
hash=538ad98afd8b3bb709d89e67509a5080c6577b5f
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=a2545af9b9acb5b52197c2de1d07a019a3f9d947
1+
hash=538ad98afd8b3bb709d89e67509a5080c6577b5f
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
hash=a2545af9b9acb5b52197c2de1d07a019a3f9d947
1+
hash=538ad98afd8b3bb709d89e67509a5080c6577b5f

lib/commercetools-history/src/Models/Change/AddAddressChangeModel.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,7 @@
2121
*/
2222
final class AddAddressChangeModel extends JsonObjectModel implements AddAddressChange
2323
{
24+
2425
public const DISCRIMINATOR_VALUE = 'AddAddressChange';
2526
/**
2627
* @var ?string

0 commit comments

Comments
 (0)