Skip to content

Commit

Permalink
Merge pull request #46 from commercetools/gen-sdk-updates
Browse files Browse the repository at this point in the history
  • Loading branch information
jenschude authored Aug 26, 2021
2 parents 56f854a + af9828f commit 1c16115
Show file tree
Hide file tree
Showing 258 changed files with 883 additions and 171 deletions.
2 changes: 1 addition & 1 deletion lib/commercetools-api-tests/gen.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hash=2ae50c8bff848e58a83392ec3ac954ea0b73a0a5
hash=72debff6f782e83756ab34a51b3abe2b03442d4c
Original file line number Diff line number Diff line change
Expand Up @@ -379,6 +379,17 @@ function (ApiRequestBuilder $builder): RequestInterface {
},
201
],
'ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost_409' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->inStoreKeyWithStoreKeyValue("storeKey")
->me()
->orders()
->post(null);
},
409
],
'ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,16 @@ function (ApiRequestBuilder $builder): RequestInterface {
},
201
],
'ByProjectKeyMeOrdersPost_409' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->me()
->orders()
->post(null);
},
409
],
'ByProjectKeyMeOrdersPost_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -371,6 +371,15 @@ function (ApiRequestBuilder $builder): RequestInterface {
},
201
],
'ByProjectKeyOrdersPost_409' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey("projectKey")
->orders()
->post(null);
},
409
],
'ByProjectKeyOrdersPost_400' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
2 changes: 1 addition & 1 deletion lib/commercetools-api/gen.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
hash=2ae50c8bff848e58a83392ec3ac954ea0b73a0a5
hash=72debff6f782e83756ab34a51b3abe2b03442d4c
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@

/**
* @psalm-suppress PropertyNotSetInConstructor
* @template-implements Conflicting<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost>
* @template-implements Expandable<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost>
* @template-implements Deprecatable201<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost>
* @template-implements Errorable<ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost>
*/
class ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost extends ApiRequest implements Expandable, Deprecatable201, Errorable
class ByProjectKeyInStoreKeyByStoreKeyMeOrdersPost extends ApiRequest implements Conflicting, Expandable, Deprecatable201, Errorable
{
/**
* @param ?object|array|string $body
Expand All @@ -60,6 +61,10 @@ public function mapFromResponse(?ResponseInterface $response, string $resultType
case '201':
$resultType = OrderModel::class;

break;
case '409':
$resultType = ErrorResponseModel::class;

break;
case '400':
$resultType = ErrorResponseModel::class;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@

/**
* @psalm-suppress PropertyNotSetInConstructor
* @template-implements Conflicting<ByProjectKeyMeOrdersPost>
* @template-implements Expandable<ByProjectKeyMeOrdersPost>
* @template-implements Deprecatable201<ByProjectKeyMeOrdersPost>
* @template-implements Errorable<ByProjectKeyMeOrdersPost>
*/
class ByProjectKeyMeOrdersPost extends ApiRequest implements Expandable, Deprecatable201, Errorable
class ByProjectKeyMeOrdersPost extends ApiRequest implements Conflicting, Expandable, Deprecatable201, Errorable
{
/**
* @param ?object|array|string $body
Expand All @@ -60,6 +61,10 @@ public function mapFromResponse(?ResponseInterface $response, string $resultType
case '201':
$resultType = OrderModel::class;

break;
case '409':
$resultType = ErrorResponseModel::class;

break;
case '400':
$resultType = ErrorResponseModel::class;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -29,11 +29,12 @@

/**
* @psalm-suppress PropertyNotSetInConstructor
* @template-implements Conflicting<ByProjectKeyOrdersPost>
* @template-implements Expandable<ByProjectKeyOrdersPost>
* @template-implements Deprecatable201<ByProjectKeyOrdersPost>
* @template-implements Errorable<ByProjectKeyOrdersPost>
*/
class ByProjectKeyOrdersPost extends ApiRequest implements Expandable, Deprecatable201, Errorable
class ByProjectKeyOrdersPost extends ApiRequest implements Conflicting, Expandable, Deprecatable201, Errorable
{
/**
* @param ?object|array|string $body
Expand All @@ -60,6 +61,10 @@ public function mapFromResponse(?ResponseInterface $response, string $resultType
case '201':
$resultType = OrderModel::class;

break;
case '409':
$resultType = ErrorResponseModel::class;

break;
case '400':
$resultType = ErrorResponseModel::class;
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Cart/Cart.php
Original file line number Diff line number Diff line change
Expand Up @@ -88,14 +88,14 @@ public function getCreatedAt();
public function getLastModifiedAt();

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Cart/CartBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -258,7 +258,7 @@ public function getKey()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -268,7 +268,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Cart/CartModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,7 +386,7 @@ public function getKey()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -406,7 +406,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,14 +62,14 @@ public function getCreatedAt();
public function getLastModifiedAt();

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -179,7 +179,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -280,7 +280,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Category/Category.php
Original file line number Diff line number Diff line change
Expand Up @@ -61,14 +61,14 @@ public function getCreatedAt();
public function getLastModifiedAt();

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Category/CategoryBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -164,7 +164,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -174,7 +174,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Category/CategoryModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -273,7 +273,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Channel/Channel.php
Original file line number Diff line number Diff line change
Expand Up @@ -56,14 +56,14 @@ public function getCreatedAt();
public function getLastModifiedAt();

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Channel/ChannelBuilder.php
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -152,7 +152,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
4 changes: 2 additions & 2 deletions lib/commercetools-api/src/Models/Channel/ChannelModel.php
Original file line number Diff line number Diff line change
Expand Up @@ -221,7 +221,7 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources updated after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources updated after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
Expand All @@ -241,7 +241,7 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 1/02/2019 except for events not tracked.</p>
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -44,11 +44,15 @@ public function getCreatedAt();
public function getLastModifiedAt();

/**
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy();

/**
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
public function getCreatedBy();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -105,6 +105,8 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy()
Expand All @@ -113,6 +115,8 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
public function getCreatedBy()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ public function getLastModifiedAt()
}

/**
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|LastModifiedBy
*/
public function getLastModifiedBy()
Expand All @@ -192,6 +194,8 @@ public function getLastModifiedBy()
}

/**
* <p>Present on resources created after 2019-02-01 except for <a href="/client-logging#events-tracked">events not tracked</a>.</p>
*
* @return null|CreatedBy
*/
public function getCreatedBy()
Expand Down
Loading

0 comments on commit 1c16115

Please sign in to comment.