Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Add deprecation to default currency field on shop query (#6311)
Filip Owczarekd298f3ce5c44
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 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: CountryDisplaydefaultMailSenderName: StringdefaultMailSenderAddress: Stringdiff --git a/saleor/graphql/shop/types.py b/saleor/graphql/shop/types.pyindex 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."