Skip to content

Commit af826a3

Browse files
Merge pull request #484 from commercetools/gen-sdk-updates
Update generated SDKs
2 parents 358e935 + 598cbd9 commit af826a3

805 files changed

Lines changed: 805 additions & 804 deletions

File tree

Some content is hidden

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

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ByProjectKeyApiClientsByIDDelete extends ApiRequest implements Errorable,
4141
*/
4242
public function __construct(string $projectKey, string $ID, $body = null, array $headers = [], ?ClientInterface $client = null)
4343
{
44-
$uri = str_replace(['{projectKey}', '{ID}'], [$projectKey, $ID], '{projectKey}/api-clients/{ID}');
44+
$uri = str_replace(['{projectKey}', '{ID}'], [urlencode($projectKey), urlencode($ID)], '{projectKey}/api-clients/{ID}');
4545
parent::__construct($client, 'DELETE', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4646
}
4747

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ class ByProjectKeyApiClientsByIDGet extends ApiRequest implements Errorable, Dep
4141
*/
4242
public function __construct(string $projectKey, string $ID, $body = null, array $headers = [], ?ClientInterface $client = null)
4343
{
44-
$uri = str_replace(['{projectKey}', '{ID}'], [$projectKey, $ID], '{projectKey}/api-clients/{ID}');
44+
$uri = str_replace(['{projectKey}', '{ID}'], [urlencode($projectKey), urlencode($ID)], '{projectKey}/api-clients/{ID}');
4545
parent::__construct($client, 'GET', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4646
}
4747

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ByProjectKeyApiClientsByIDHead extends ApiRequest implements Errorable, De
3939
*/
4040
public function __construct(string $projectKey, string $ID, $body = null, array $headers = [], ?ClientInterface $client = null)
4141
{
42-
$uri = str_replace(['{projectKey}', '{ID}'], [$projectKey, $ID], '{projectKey}/api-clients/{ID}');
42+
$uri = str_replace(['{projectKey}', '{ID}'], [urlencode($projectKey), urlencode($ID)], '{projectKey}/api-clients/{ID}');
4343
parent::__construct($client, 'HEAD', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4444
}
4545

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ByProjectKeyApiClientsGet extends ApiRequest implements Expandable, Sortab
4545
*/
4646
public function __construct(string $projectKey, $body = null, array $headers = [], ?ClientInterface $client = null)
4747
{
48-
$uri = str_replace(['{projectKey}'], [$projectKey], '{projectKey}/api-clients');
48+
$uri = str_replace(['{projectKey}'], [urlencode($projectKey)], '{projectKey}/api-clients');
4949
parent::__construct($client, 'GET', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
5050
}
5151

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ByProjectKeyApiClientsHead extends ApiRequest implements Errorable, Deprec
3939
*/
4040
public function __construct(string $projectKey, $body = null, array $headers = [], ?ClientInterface $client = null)
4141
{
42-
$uri = str_replace(['{projectKey}'], [$projectKey], '{projectKey}/api-clients');
42+
$uri = str_replace(['{projectKey}'], [urlencode($projectKey)], '{projectKey}/api-clients');
4343
parent::__construct($client, 'HEAD', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4444
}
4545

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ByProjectKeyApiClientsPost extends ApiRequest implements Expandable, Depre
4242
*/
4343
public function __construct(string $projectKey, $body = null, array $headers = [], ?ClientInterface $client = null)
4444
{
45-
$uri = str_replace(['{projectKey}'], [$projectKey], '{projectKey}/api-clients');
45+
$uri = str_replace(['{projectKey}'], [urlencode($projectKey)], '{projectKey}/api-clients');
4646
parent::__construct($client, 'POST', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4747
}
4848

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDGet extends ApiReques
4242
*/
4343
public function __construct(string $projectKey, string $associateId, string $ID, $body = null, array $headers = [], ?ClientInterface $client = null)
4444
{
45-
$uri = str_replace(['{projectKey}', '{associateId}', '{ID}'], [$projectKey, $associateId, $ID], '{projectKey}/as-associate/{associateId}/business-units/{ID}');
45+
$uri = str_replace(['{projectKey}', '{associateId}', '{ID}'], [urlencode($projectKey), urlencode($associateId), urlencode($ID)], '{projectKey}/as-associate/{associateId}/business-units/{ID}');
4646
parent::__construct($client, 'GET', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4747
}
4848

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDHead extends ApiReque
3939
*/
4040
public function __construct(string $projectKey, string $associateId, string $ID, $body = null, array $headers = [], ?ClientInterface $client = null)
4141
{
42-
$uri = str_replace(['{projectKey}', '{associateId}', '{ID}'], [$projectKey, $associateId, $ID], '{projectKey}/as-associate/{associateId}/business-units/{ID}');
42+
$uri = str_replace(['{projectKey}', '{associateId}', '{ID}'], [urlencode($projectKey), urlencode($associateId), urlencode($ID)], '{projectKey}/as-associate/{associateId}/business-units/{ID}');
4343
parent::__construct($client, 'HEAD', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4444
}
4545

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsByIDPost extends ApiReque
4343
*/
4444
public function __construct(string $projectKey, string $associateId, string $ID, $body = null, array $headers = [], ?ClientInterface $client = null)
4545
{
46-
$uri = str_replace(['{projectKey}', '{associateId}', '{ID}'], [$projectKey, $associateId, $ID], '{projectKey}/as-associate/{associateId}/business-units/{ID}');
46+
$uri = str_replace(['{projectKey}', '{associateId}', '{ID}'], [urlencode($projectKey), urlencode($associateId), urlencode($ID)], '{projectKey}/as-associate/{associateId}/business-units/{ID}');
4747
parent::__construct($client, 'POST', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
4848
}
4949

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ class ByProjectKeyAsAssociateByAssociateIdBusinessUnitsGet extends ApiRequest im
4545
*/
4646
public function __construct(string $projectKey, string $associateId, $body = null, array $headers = [], ?ClientInterface $client = null)
4747
{
48-
$uri = str_replace(['{projectKey}', '{associateId}'], [$projectKey, $associateId], '{projectKey}/as-associate/{associateId}/business-units');
48+
$uri = str_replace(['{projectKey}', '{associateId}'], [urlencode($projectKey), urlencode($associateId)], '{projectKey}/as-associate/{associateId}/business-units');
4949
parent::__construct($client, 'GET', $uri, $headers, is_object($body) || is_array($body) ? json_encode($body) : $body);
5050
}
5151

0 commit comments

Comments
 (0)