Skip to content

Commit 5b6dc12

Browse files
committed
Regenerate
1 parent 2dcac5d commit 5b6dc12

193 files changed

Lines changed: 413 additions & 414 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.

src/commercetools/checkout/client/__init__.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,10 @@
44
# contribute to this project then please do not edit this file directly
55
# but send a pull request to the Lab Digital fork of rmf-codegen at
66
# https://github.com/labd/rmf-codegen
7-
8-
from commercetools.client import BaseClient
7+
from commercetools.base_client import BaseClient
98

109

1110
class Client(BaseClient):
1211
def __init__(self, *args, **kwargs):
1312
kwargs.setdefault("url", "https://checkout.{region}.commercetools.com")
14-
super().__init__(self, **kwargs)
13+
super().__init__(**kwargs)

src/commercetools/importapi/client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# contribute to this project then please do not edit this file directly
55
# but send a pull request to the Lab Digital fork of rmf-codegen at
66
# https://github.com/labd/rmf-codegen
7-
from commercetools.client import BaseClient
7+
from commercetools.base_client import BaseClient
88

99
from .by_project_key_request_builder import ByProjectKeyRequestBuilder
1010

@@ -13,7 +13,7 @@ class Client(BaseClient):
1313

1414
def __init__(self, *args, **kwargs):
1515
kwargs.setdefault("url", "https://import.europe-west1.gcp.commercetools.com")
16-
super().__init__(self, **kwargs)
16+
super().__init__(**kwargs)
1717

1818
def with_project_key_value(self, project_key: str) -> ByProjectKeyRequestBuilder:
1919
return ByProjectKeyRequestBuilder(

src/commercetools/platform/client/__init__.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
# contribute to this project then please do not edit this file directly
55
# but send a pull request to the Lab Digital fork of rmf-codegen at
66
# https://github.com/labd/rmf-codegen
7-
from commercetools.client import BaseClient
7+
from commercetools.base_client import BaseClient
88

99
from .by_project_key_request_builder import ByProjectKeyRequestBuilder
1010

@@ -13,7 +13,7 @@ class Client(BaseClient):
1313

1414
def __init__(self, *args, **kwargs):
1515
kwargs.setdefault("url", "https://api.{region}.commercetools.com")
16-
super().__init__(self, **kwargs)
16+
super().__init__(**kwargs)
1717

1818
def with_project_key(self, project_key: str) -> ByProjectKeyRequestBuilder:
1919
"""The Project endpoint is used to retrieve certain information from a project."""

src/commercetools/platform/client/active_cart/by_project_key_in_store_key_by_store_key_me_active_cart_request_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def get(
5757
obj = ErrorResponse.deserialize(response.json())
5858
raise self._client._create_exception(obj, response)
5959
elif response.status_code == 404:
60-
return None
60+
raise self._client._create_exception(None, response)
6161
warnings.warn("Unhandled status code %d" % response.status_code)
6262

6363
def head(

src/commercetools/platform/client/active_cart/by_project_key_me_active_cart_request_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ def get(
5353
obj = ErrorResponse.deserialize(response.json())
5454
raise self._client._create_exception(obj, response)
5555
elif response.status_code == 404:
56-
return None
56+
raise self._client._create_exception(None, response)
5757
warnings.warn("Unhandled status code %d" % response.status_code)
5858

5959
def head(

src/commercetools/platform/client/api_clients/by_project_key_api_clients_by_id_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@ def get(
4949
obj = ErrorResponse.deserialize(response.json())
5050
raise self._client._create_exception(obj, response)
5151
elif response.status_code == 404:
52-
return None
52+
raise self._client._create_exception(None, response)
5353
warnings.warn("Unhandled status code %d" % response.status_code)
5454

5555
def head(
@@ -94,5 +94,5 @@ def delete(
9494
obj = ErrorResponse.deserialize(response.json())
9595
raise self._client._create_exception(obj, response)
9696
elif response.status_code == 404:
97-
return None
97+
raise self._client._create_exception(None, response)
9898
warnings.warn("Unhandled status code %d" % response.status_code)

src/commercetools/platform/client/api_clients/by_project_key_api_clients_request_builder.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def get(
7474
obj = ErrorResponse.deserialize(response.json())
7575
raise self._client._create_exception(obj, response)
7676
elif response.status_code == 404:
77-
return None
77+
raise self._client._create_exception(None, response)
7878
warnings.warn("Unhandled status code %d" % response.status_code)
7979

8080
def head(
@@ -123,5 +123,5 @@ def post(
123123
obj = ErrorResponse.deserialize(response.json())
124124
raise self._client._create_exception(obj, response)
125125
elif response.status_code == 404:
126-
return None
126+
raise self._client._create_exception(None, response)
127127
warnings.warn("Unhandled status code %d" % response.status_code)

src/commercetools/platform/client/apply/by_project_key_orders_edits_by_id_apply_request_builder.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,5 @@ def post(
5252
obj = ErrorResponse.deserialize(response.json())
5353
raise self._client._create_exception(obj, response)
5454
elif response.status_code == 404:
55-
return None
55+
raise self._client._create_exception(None, response)
5656
warnings.warn("Unhandled status code %d" % response.status_code)

src/commercetools/platform/client/business_units/by_project_key_business_units_by_id_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get(
5050
obj = ErrorResponse.deserialize(response.json())
5151
raise self._client._create_exception(obj, response)
5252
elif response.status_code == 404:
53-
return None
53+
raise self._client._create_exception(None, response)
5454
warnings.warn("Unhandled status code %d" % response.status_code)
5555

5656
def head(
@@ -98,7 +98,7 @@ def post(
9898
obj = ErrorResponse.deserialize(response.json())
9999
raise self._client._create_exception(obj, response)
100100
elif response.status_code == 404:
101-
return None
101+
raise self._client._create_exception(None, response)
102102
warnings.warn("Unhandled status code %d" % response.status_code)
103103

104104
def delete(
@@ -122,5 +122,5 @@ def delete(
122122
obj = ErrorResponse.deserialize(response.json())
123123
raise self._client._create_exception(obj, response)
124124
elif response.status_code == 404:
125-
return None
125+
raise self._client._create_exception(None, response)
126126
warnings.warn("Unhandled status code %d" % response.status_code)

src/commercetools/platform/client/business_units/by_project_key_business_units_key_by_key_request_builder.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,7 @@ def get(
5050
obj = ErrorResponse.deserialize(response.json())
5151
raise self._client._create_exception(obj, response)
5252
elif response.status_code == 404:
53-
return None
53+
raise self._client._create_exception(None, response)
5454
warnings.warn("Unhandled status code %d" % response.status_code)
5555

5656
def head(
@@ -98,7 +98,7 @@ def post(
9898
obj = ErrorResponse.deserialize(response.json())
9999
raise self._client._create_exception(obj, response)
100100
elif response.status_code == 404:
101-
return None
101+
raise self._client._create_exception(None, response)
102102
warnings.warn("Unhandled status code %d" % response.status_code)
103103

104104
def delete(
@@ -122,5 +122,5 @@ def delete(
122122
obj = ErrorResponse.deserialize(response.json())
123123
raise self._client._create_exception(obj, response)
124124
elif response.status_code == 404:
125-
return None
125+
raise self._client._create_exception(None, response)
126126
warnings.warn("Unhandled status code %d" % response.status_code)

0 commit comments

Comments
 (0)