Skip to content

Commit 249c7ed

Browse files
committed
Update typehints for update actions (fixed in raml spec)
1 parent 3b47974 commit 249c7ed

File tree

59 files changed

+118
-175
lines changed

Some content is hidden

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

59 files changed

+118
-175
lines changed

src/commercetools/platform/client/by_project_key_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import typing
88
import warnings
99

10-
from ..models.common import Update
1110
from ..models.error import ErrorResponse
12-
from ..models.project import Project
11+
from ..models.project import Project, ProjectUpdate
1312
from .api_clients.by_project_key_api_clients_request_builder import (
1413
ByProjectKeyApiClientsRequestBuilder,
1514
)
@@ -367,7 +366,7 @@ def get(
367366

368367
def post(
369368
self,
370-
body: "Update",
369+
body: "ProjectUpdate",
371370
*,
372371
headers: typing.Dict[str, str] = None,
373372
options: typing.Dict[str, typing.Any] = None,

src/commercetools/platform/client/cart_discounts/by_project_key_cart_discounts_by_id_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart_discount import CartDiscount
11-
from ...models.common import Update
10+
from ...models.cart_discount import CartDiscount, CartDiscountUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -57,7 +56,7 @@ def get(
5756

5857
def post(
5958
self,
60-
body: "Update",
59+
body: "CartDiscountUpdate",
6160
*,
6261
expand: typing.List["str"] = None,
6362
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/cart_discounts/by_project_key_cart_discounts_key_by_key_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart_discount import CartDiscount
11-
from ...models.common import Update
10+
from ...models.cart_discount import CartDiscount, CartDiscountUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -57,7 +56,7 @@ def get(
5756

5857
def post(
5958
self,
60-
body: "Update",
59+
body: "CartDiscountUpdate",
6160
*,
6261
expand: typing.List["str"] = None,
6362
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/carts/by_project_key_carts_by_id_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart import Cart
11-
from ...models.common import Update
10+
from ...models.cart import Cart, CartUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -60,7 +59,7 @@ def get(
6059

6160
def post(
6261
self,
63-
body: "Update",
62+
body: "CartUpdate",
6463
*,
6564
expand: typing.List["str"] = None,
6665
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/carts/by_project_key_carts_key_by_key_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart import Cart
11-
from ...models.common import Update
10+
from ...models.cart import Cart, CartUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -60,7 +59,7 @@ def get(
6059

6160
def post(
6261
self,
63-
body: "Update",
62+
body: "CartUpdate",
6463
*,
6564
expand: typing.List["str"] = None,
6665
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/carts/by_project_key_in_store_key_by_store_key_carts_by_id_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart import Cart
11-
from ...models.common import Update
10+
from ...models.cart import Cart, CartUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -66,7 +65,7 @@ def get(
6665

6766
def post(
6867
self,
69-
body: "Update",
68+
body: "CartUpdate",
7069
*,
7170
expand: typing.List["str"] = None,
7271
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/carts/by_project_key_in_store_key_by_store_key_carts_key_by_key_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart import Cart
11-
from ...models.common import Update
10+
from ...models.cart import Cart, CartUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -66,7 +65,7 @@ def get(
6665

6766
def post(
6867
self,
69-
body: "Update",
68+
body: "CartUpdate",
7069
*,
7170
expand: typing.List["str"] = None,
7271
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/carts/by_project_key_in_store_key_by_store_key_me_carts_by_id_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.cart import Cart
11-
from ...models.common import Update
10+
from ...models.cart import Cart, CartUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -60,7 +59,7 @@ def get(
6059

6160
def post(
6261
self,
63-
body: "Update",
62+
body: "CartUpdate",
6463
*,
6564
expand: typing.List["str"] = None,
6665
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/carts/by_project_key_me_carts_by_id_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,9 +7,8 @@
77
import typing
88
import warnings
99

10-
from ...models.common import Update
1110
from ...models.error import ErrorResponse
12-
from ...models.me import MyCart
11+
from ...models.me import MyCart, MyCartUpdate
1312

1413
if typing.TYPE_CHECKING:
1514
from ...base_client import BaseClient
@@ -57,7 +56,7 @@ def get(
5756

5857
def post(
5958
self,
60-
body: "Update",
59+
body: "MyCartUpdate",
6160
*,
6261
expand: typing.List["str"] = None,
6362
headers: typing.Dict[str, str] = None,

src/commercetools/platform/client/categories/by_project_key_categories_by_id_request_builder.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,7 @@
77
import typing
88
import warnings
99

10-
from ...models.category import Category
11-
from ...models.common import Update
10+
from ...models.category import Category, CategoryUpdate
1211
from ...models.error import ErrorResponse
1312

1413
if typing.TYPE_CHECKING:
@@ -57,7 +56,7 @@ def get(
5756

5857
def post(
5958
self,
60-
body: "Update",
59+
body: "CategoryUpdate",
6160
*,
6261
expand: typing.List["str"] = None,
6362
headers: typing.Dict[str, str] = None,

0 commit comments

Comments
 (0)