Skip to content

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

Add deprecation to default currency field on shop query (#6311)

Filip Owczarekd298f3ce5c44
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 582f3b8f35..2f4e6f5a55 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -4760,7 +4760,7 @@ type Shop {
authorizationKeys: [AuthorizationKey]!
countries(languageCode: LanguageCodeEnum): [CountryDisplay!]!
currencies: [String]! @deprecated(reason: "This field will be removed in Saleor 3.0")
- defaultCurrency: String!
+ defaultCurrency: String! @deprecated(reason: "This field will be removed in Saleor 3.0")
defaultCountry: CountryDisplay
defaultMailSenderName: String
defaultMailSenderAddress: String
diff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.py
index e30cce7290..78bc05880a 100644
--- a/saleor/graphql/shop/types.py
+++ b/saleor/graphql/shop/types.py
@@ -103,7 +103,9 @@ class Shop(graphene.ObjectType):
deprecation_reason="This field will be removed in Saleor 3.0",
)
default_currency = graphene.String(
- description="Shop's default currency.", required=True
+ description="Shop's default currency.",
+ required=True,
+ deprecation_reason="This field will be removed in Saleor 3.0",
)
default_country = graphene.Field(
CountryDisplay, description="Shop's default country."