Skip to content

Saleor Core: the high performance, composable, headless commerce API.

Make possible to add addresses to the user

Adam Janikbb11676888c0
diff --git a/saleor/graphql/account/mutations.py b/saleor/graphql/account/mutations.py
index 47b977710f..482edee0a7 100644
--- a/saleor/graphql/account/mutations.py
+++ b/saleor/graphql/account/mutations.py
@@ -30,9 +30,13 @@ SHIPPING_ADDRESS_FIELD = 'default_shipping_address'
class UserInput(graphene.InputObjectType):
+ default_billing_address = AddressInput(
+ description='Billing address of the customer.')
email = graphene.String(
description='The unique email address of the user.')
note = graphene.String(description='A note about the user.')
+ default_shipping_address = AddressInput(
+ description='Shipping address of the customer.')
class CustomerInput(UserInput):
diff --git a/tests/api/utils.py b/tests/api/utils.py
index 45b22a97cd..67e436506a 100644
--- a/tests/api/utils.py
+++ b/tests/api/utils.py
@@ -1,6 +1,7 @@
import json
from tests.utils import get_graphql_content
+from saleor.graphql.core.utils import snake_to_camel_case
from saleor.graphql.core.utils import snake_to_camel_case