Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Small schema fixes (#9224)
Patryk Zawadzki932e648087e6
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.pyindex be1b969f99..b5568bc6eb 100644--- a/saleor/graphql/account/types.py+++ b/saleor/graphql/account/types.py@@ -226,7 +226,7 @@ class User(ModelObjectType):description="Returns the last open checkout of this user.",deprecation_reason=(f"{DEPRECATED_IN_3X_FIELD} "- "Use the `checkout_tokens` field to fetch the user checkouts."+ "Use the `checkoutTokens` field to fetch the user checkouts."),)checkout_tokens = graphene.List(diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.pyindex 54cf78d99a..25ae662182 100644--- a/saleor/graphql/checkout/mutations.py+++ b/saleor/graphql/checkout/mutations.py@@ -328,7 +328,7 @@ class CheckoutCreate(ModelMutation, I18nMixin):"Refer to checkoutLinesAdd and checkoutLinesUpdate to merge a cart ""with an active checkout."),- deprecation_reason=f"{DEPRECATED_IN_3X_FIELD} Always returns `True`.",+ deprecation_reason=f"{DEPRECATED_IN_3X_FIELD} Always returns `true`.",)class Arguments:diff --git a/saleor/graphql/order/types.py b/saleor/graphql/order/types.pyindex 168fb9c2a8..ee6b71867d 100644--- a/saleor/graphql/order/types.py+++ b/saleor/graphql/order/types.py@@ -757,16 +757,22 @@ class Order(ModelObjectType):discount = graphene.Field(Money,description="Returns applied discount.",- deprecation_reason=f"{DEPRECATED_IN_3X_FIELD} Use discounts field.",+ deprecation_reason=(+ f"{DEPRECATED_IN_3X_FIELD} Use the `discounts` field instead."+ ),)discount_name = graphene.String(description="Discount name.",- deprecation_reason=f"{DEPRECATED_IN_3X_FIELD} Use discounts field.",+ deprecation_reason=(+ f"{DEPRECATED_IN_3X_FIELD} Use the `discounts` field instead."+ ),)translated_discount_name = graphene.String(description="Translated discount name.",- deprecation_reason=f"{DEPRECATED_IN_3X_FIELD} Use discounts field. ",+ deprecation_reason=(+ f"{DEPRECATED_IN_3X_FIELD} Use the `discounts` field instead. "+ ),)discounts = graphene.List(diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex d65de036a4..47c5efe0b3 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -1072,7 +1072,7 @@ type CheckoutCountableEdge {}type CheckoutCreate {- created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `True`.")+ created: Boolean @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `true`.")checkoutErrors: [CheckoutError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")errors: [CheckoutError!]!checkout: Checkout@@ -4245,9 +4245,9 @@ type Order implements Node & ObjectWithMetadata {deliveryMethod: DeliveryMethodlanguageCode: String! @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `languageCodeEnum` field to fetch the language code. ")languageCodeEnum: LanguageCodeEnum!- discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field.")- discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field.")- translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use discounts field. ")+ discount: Money @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.")+ discountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead.")+ translatedDiscountName: String @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `discounts` field instead. ")discounts: [OrderDiscount!]errors: [OrderError!]!}@@ -7016,7 +7016,7 @@ type User implements Node & ObjectWithMetadata {isStaff: Boolean!isActive: Boolean!addresses: [Address]- checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkout_tokens` field to fetch the user checkouts.")+ checkout: Checkout @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `checkoutTokens` field to fetch the user checkouts.")checkoutTokens(channel: String): [UUID!]giftCards(before: String, after: String, first: Int, last: Int): GiftCardCountableConnectionnote: String