Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
31 commits
Select commit Hold shift + click to select a range
7b8bf8b
build(codegen): updating SDK
ct-sdks[bot] May 28, 2026
04ff058
build(codegen): updating SDK
ct-sdks[bot] Jun 1, 2026
0f21133
build(codegen): updating SDK
ct-sdks[bot] Jun 2, 2026
7a5a85b
build(codegen): updating SDK
ct-sdks[bot] Jun 2, 2026
2ed7615
build(codegen): updating SDK
ct-sdks[bot] Jun 3, 2026
e7d2049
build(codegen): updating SDK
ct-sdks[bot] Jun 3, 2026
aa4545f
build(codegen): updating SDK
ct-sdks[bot] Jun 4, 2026
1f424c3
build(codegen): updating SDK
ct-sdks[bot] Jun 5, 2026
abac86a
build(codegen): updating SDK
ct-sdks[bot] Jun 8, 2026
fcc6588
build(codegen): updating SDK
ct-sdks[bot] Jun 8, 2026
40726f2
build(codegen): updating SDK
ct-sdks[bot] Jun 9, 2026
c8c4957
build(codegen): updating SDK
ct-sdks[bot] Jun 10, 2026
494d82b
build(codegen): updating SDK
ct-sdks[bot] Jun 10, 2026
cb881e9
build(codegen): updating SDK
ct-sdks[bot] Jun 10, 2026
2c58a6a
build(codegen): updating SDK
ct-sdks[bot] Jun 11, 2026
f57971b
build(codegen): updating SDK
ct-sdks[bot] Jun 16, 2026
914620f
build(codegen): updating SDK
ct-sdks[bot] Jun 16, 2026
64647c0
build(codegen): updating SDK
ct-sdks[bot] Jun 16, 2026
32f868b
build(codegen): updating SDK
ct-sdks[bot] Jun 17, 2026
a14db48
build(codegen): updating SDK
ct-sdks[bot] Jun 18, 2026
a2f76d5
build(codegen): updating SDK
ct-sdks[bot] Jun 18, 2026
ae01a7a
build(codegen): updating SDK
ct-sdks[bot] Jun 18, 2026
0d698ec
build(codegen): updating SDK
ct-sdks[bot] Jun 19, 2026
31a7091
build(codegen): updating SDK
ct-sdks[bot] Jun 19, 2026
2131771
build(codegen): updating SDK
ct-sdks[bot] Jun 23, 2026
2d0ce3d
build(codegen): updating SDK
ct-sdks[bot] Jun 23, 2026
2f574a7
build(codegen): updating SDK
ct-sdks[bot] Jun 24, 2026
fa6b52c
build(codegen): updating SDK
ct-sdks[bot] Jun 24, 2026
1529c80
build(codegen): updating SDK
ct-sdks[bot] Jun 24, 2026
343c6cd
build(codegen): updating SDK
ct-sdks[bot] Jun 25, 2026
fbf48aa
build(codegen): updating SDK
ct-sdks[bot] Jun 25, 2026
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
960 changes: 487 additions & 473 deletions changes.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
'post',
'test_projectKey/business-units/test_ID',
],
'ByProjectKeyBusinessUnitsByIDDelete_withDataErasure' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->businessUnits()
->withId('test_ID')
->delete()
->withDataErasure('dataErasure');
},
'delete',
'test_projectKey/business-units/test_ID?dataErasure=dataErasure',
],
'ByProjectKeyBusinessUnitsByIDDelete_withVersion' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,18 @@ function (ApiRequestBuilder $builder): RequestInterface {
'post',
'test_projectKey/business-units/key=test_key',
],
'ByProjectKeyBusinessUnitsKeyByKeyDelete_withDataErasure' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->businessUnits()
->withKey('test_key')
->delete()
->withDataErasure('dataErasure');
},
'delete',
'test_projectKey/business-units/key=test_key?dataErasure=dataErasure',
],
'ByProjectKeyBusinessUnitsKeyByKeyDelete_withVersion' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ function (ApiRequestBuilder $builder): RequestInterface {
'post',
'test_projectKey/in-store/key=test_storeKey/business-units/test_ID',
],
'ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete_withDataErasure' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->inStoreKeyWithStoreKeyValue('test_storeKey')
->businessUnits()
->withId('test_ID')
->delete()
->withDataErasure('dataErasure');
},
'delete',
'test_projectKey/in-store/key=test_storeKey/business-units/test_ID?dataErasure=dataErasure',
],
'ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete_withVersion' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,19 @@ function (ApiRequestBuilder $builder): RequestInterface {
'post',
'test_projectKey/in-store/key=test_storeKey/business-units/key=test_key',
],
'ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete_withDataErasure' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
->withProjectKey('test_projectKey')
->inStoreKeyWithStoreKeyValue('test_storeKey')
->businessUnits()
->withKey('test_key')
->delete()
->withDataErasure('dataErasure');
},
'delete',
'test_projectKey/in-store/key=test_storeKey/business-units/key=test_key?dataErasure=dataErasure',
],
'ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete_withVersion' => [
function (ApiRequestBuilder $builder): RequestInterface {
return $builder
Expand Down
457 changes: 232 additions & 225 deletions lib/commercetools-api/docs/RequestBuilder.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
/**

* @psalm-suppress PropertyNotSetInConstructor
* @template-implements DataErasure<ByProjectKeyBusinessUnitsByIDDelete>
* @template-implements Versioned<ByProjectKeyBusinessUnitsByIDDelete>
* @template-implements Conflicting<ByProjectKeyBusinessUnitsByIDDelete>
* @template-implements Expandable<ByProjectKeyBusinessUnitsByIDDelete>
* @template-implements Errorable<ByProjectKeyBusinessUnitsByIDDelete>
* @template-implements Deprecatable200<ByProjectKeyBusinessUnitsByIDDelete>
*/
class ByProjectKeyBusinessUnitsByIDDelete extends ApiRequest implements Versioned, Conflicting, Expandable, Errorable, Deprecatable200
class ByProjectKeyBusinessUnitsByIDDelete extends ApiRequest implements DataErasure, Versioned, Conflicting, Expandable, Errorable, Deprecatable200
{
/**
* @param ?object|array|string $body
Expand Down Expand Up @@ -150,6 +151,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $dataErasure
*/
public function withDataErasure($dataErasure): ByProjectKeyBusinessUnitsByIDDelete
{
return $this->withQueryParam('dataErasure', $dataErasure);
}

/**
*
* @psalm-param scalar|scalar[] $version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
/**

* @psalm-suppress PropertyNotSetInConstructor
* @template-implements DataErasure<ByProjectKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Versioned<ByProjectKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Conflicting<ByProjectKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Expandable<ByProjectKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Errorable<ByProjectKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Deprecatable200<ByProjectKeyBusinessUnitsKeyByKeyDelete>
*/
class ByProjectKeyBusinessUnitsKeyByKeyDelete extends ApiRequest implements Versioned, Conflicting, Expandable, Errorable, Deprecatable200
class ByProjectKeyBusinessUnitsKeyByKeyDelete extends ApiRequest implements DataErasure, Versioned, Conflicting, Expandable, Errorable, Deprecatable200
{
/**
* @param ?object|array|string $body
Expand Down Expand Up @@ -150,6 +151,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $dataErasure
*/
public function withDataErasure($dataErasure): ByProjectKeyBusinessUnitsKeyByKeyDelete
{
return $this->withQueryParam('dataErasure', $dataErasure);
}

/**
*
* @psalm-param scalar|scalar[] $version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
/**

* @psalm-suppress PropertyNotSetInConstructor
* @template-implements DataErasure<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete>
* @template-implements Versioned<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete>
* @template-implements Conflicting<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete>
* @template-implements Expandable<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete>
* @template-implements Errorable<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete>
* @template-implements Deprecatable200<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete>
*/
class ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete extends ApiRequest implements Versioned, Conflicting, Expandable, Errorable, Deprecatable200
class ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete extends ApiRequest implements DataErasure, Versioned, Conflicting, Expandable, Errorable, Deprecatable200
{
/**
* @param ?object|array|string $body
Expand Down Expand Up @@ -150,6 +151,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $dataErasure
*/
public function withDataErasure($dataErasure): ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsByIDDelete
{
return $this->withQueryParam('dataErasure', $dataErasure);
}

/**
*
* @psalm-param scalar|scalar[] $version
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,14 @@
/**

* @psalm-suppress PropertyNotSetInConstructor
* @template-implements DataErasure<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Versioned<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Conflicting<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Expandable<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Errorable<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete>
* @template-implements Deprecatable200<ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete>
*/
class ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete extends ApiRequest implements Versioned, Conflicting, Expandable, Errorable, Deprecatable200
class ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete extends ApiRequest implements DataErasure, Versioned, Conflicting, Expandable, Errorable, Deprecatable200
{
/**
* @param ?object|array|string $body
Expand Down Expand Up @@ -150,6 +151,15 @@ function (RequestException $e) use ($resultType) {
);
}

/**
*
* @psalm-param scalar|scalar[] $dataErasure
*/
public function withDataErasure($dataErasure): ByProjectKeyInStoreKeyByStoreKeyBusinessUnitsKeyByKeyDelete
{
return $this->withQueryParam('dataErasure', $dataErasure);
}

/**
*
* @psalm-param scalar|scalar[] $version
Expand Down
8 changes: 4 additions & 4 deletions lib/commercetools-api/src/Models/ApiClient/ApiClient.php
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ interface ApiClient extends JsonObject
public const FIELD_REFRESH_TOKEN_VALIDITY_SECONDS = 'refreshTokenValiditySeconds';

/**
* <p>The OAuth2 <code>client_id</code> that can be used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* <p>The OAuth2 <code>client_id</code> that can be used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*

* @return null|string
Expand All @@ -41,7 +41,7 @@ public function getId();
public function getName();

/**
* <p>Whitespace-separated list of <a href="/../api/scopes">OAuth scopes</a> that can be used when <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtaining an access token</a>.</p>
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*

* @return null|string
Expand All @@ -50,15 +50,15 @@ public function getScope();

/**
* <p>Only shown once in the response of creating the APIClient.
* This is the OAuth2 <code>client_secret</code> that can be used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* This is the OAuth2 <code>client_secret</code> that can be used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*

* @return null|string
*/
public function getSecret();

/**
* <p>Date of the last day this APIClient was used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* <p>Date of the last day this APIClient was used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*

* @return null|DateTimeImmutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -76,7 +76,7 @@ final class ApiClientBuilder implements Builder
private $refreshTokenValiditySeconds;

/**
* <p>The OAuth2 <code>client_id</code> that can be used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* <p>The OAuth2 <code>client_id</code> that can be used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*

* @return null|string
Expand All @@ -98,7 +98,7 @@ public function getName()
}

/**
* <p>Whitespace-separated list of <a href="/../api/scopes">OAuth scopes</a> that can be used when <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtaining an access token</a>.</p>
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*

* @return null|string
Expand All @@ -110,7 +110,7 @@ public function getScope()

/**
* <p>Only shown once in the response of creating the APIClient.
* This is the OAuth2 <code>client_secret</code> that can be used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* This is the OAuth2 <code>client_secret</code> that can be used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*

* @return null|string
Expand All @@ -121,7 +121,7 @@ public function getSecret()
}

/**
* <p>Date of the last day this APIClient was used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* <p>Date of the last day this APIClient was used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*

* @return null|DateTimeImmutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@ interface ApiClientDraft extends JsonObject
public function getName();

/**
* <p>Whitespace-separated list of <a href="/../api/scopes">OAuth scopes</a> that can be used when <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtaining an access token</a>.</p>
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*

* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ public function getName()
}

/**
* <p>Whitespace-separated list of <a href="/../api/scopes">OAuth scopes</a> that can be used when <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtaining an access token</a>.</p>
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*

* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ public function getName()
}

/**
* <p>Whitespace-separated list of <a href="/../api/scopes">OAuth scopes</a> that can be used when <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtaining an access token</a>.</p>
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*
*
* @return null|string
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ public function __construct(
}

/**
* <p>The OAuth2 <code>client_id</code> that can be used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* <p>The OAuth2 <code>client_id</code> that can be used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*
*
* @return null|string
Expand Down Expand Up @@ -141,7 +141,7 @@ public function getName()
}

/**
* <p>Whitespace-separated list of <a href="/../api/scopes">OAuth scopes</a> that can be used when <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtaining an access token</a>.</p>
* <p>Whitespace-separated list of <a href="/api/scopes">OAuth scopes</a> that can be used when <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtaining an access token</a>.</p>
*
*
* @return null|string
Expand All @@ -162,7 +162,7 @@ public function getScope()

/**
* <p>Only shown once in the response of creating the APIClient.
* This is the OAuth2 <code>client_secret</code> that can be used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* This is the OAuth2 <code>client_secret</code> that can be used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*
*
* @return null|string
Expand All @@ -182,7 +182,7 @@ public function getSecret()
}

/**
* <p>Date of the last day this APIClient was used to <a href="/../api/authorization#request-an-access-token-using-the-composable-commerce-oauth-20-service">obtain an access token</a>.</p>
* <p>Date of the last day this APIClient was used to <a href="/api/authorization#request-an-access-token-using-the-internal-oauth-20-service">obtain an access token</a>.</p>
*
*
* @return null|DateTimeImmutable
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,15 +20,15 @@ interface ApiClientPagedQueryResponse extends JsonObject
public const FIELD_RESULTS = 'results';

/**
* <p>Number of <a href="/../api/general-concepts#limit">results requested</a>.</p>
* <p>Number of <a href="/api/general-concepts#limit">results requested</a>.</p>
*

* @return null|int
*/
public function getLimit();

/**
* <p>Number of <a href="/../api/general-concepts#offset">elements skipped</a>.</p>
* <p>Number of <a href="/api/general-concepts#offset">elements skipped</a>.</p>
*

* @return null|int
Expand All @@ -45,10 +45,10 @@ public function getCount();

/**
* <p>Total number of results matching the query.
* This number is an estimation that is not <a href="/../api/general-concepts#strong-consistency">strongly consistent</a>.
* This number is an estimation that is not <a href="/api/general-concepts#strong-consistency">strongly consistent</a>.
* This field is returned by default.
* For improved performance, calculating this field can be deactivated by using the query parameter <code>withTotal=false</code>.
* When the results are filtered with a <a href="/../api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/../api/limits#queries">limit</a>.</p>
* When the results are filtered with a <a href="/api/predicates/query">Query Predicate</a>, <code>total</code> is subject to a <a href="/api/limits#queries">limit</a>.</p>
*

* @return null|int
Expand Down
Loading
Loading