Skip to content

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

Fix doc_category for orderCreateFromCheckout mutation (#13027)

Marcin Gębalaabb581e1e76e
diff --git a/saleor/graphql/checkout/mutations/order_create_from_checkout.py b/saleor/graphql/checkout/mutations/order_create_from_checkout.py
index 3a69f549d2..dc349936a1 100644
--- a/saleor/graphql/checkout/mutations/order_create_from_checkout.py
+++ b/saleor/graphql/checkout/mutations/order_create_from_checkout.py
@@ -11,7 +11,7 @@ from ....permission.enums import CheckoutPermissions
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
from ...core.descriptions import ADDED_IN_32, ADDED_IN_38
-from ...core.doc_category import DOC_CATEGORY_CHECKOUT
+from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import BaseMutation
from ...core.types import Error, NonNullList
from ...meta.mutations import MetadataInput
@@ -38,7 +38,7 @@ class OrderCreateFromCheckoutError(Error):
)
class Meta:
- doc_category = DOC_CATEGORY_CHECKOUT
+ doc_category = DOC_CATEGORY_ORDERS
class OrderCreateFromCheckout(BaseMutation):
@@ -78,7 +78,7 @@ class OrderCreateFromCheckout(BaseMutation):
"following permissions: AUTHENTICATED_APP and HANDLE_CHECKOUTS."
+ ADDED_IN_32
)
- doc_category = DOC_CATEGORY_CHECKOUT
+ doc_category = DOC_CATEGORY_ORDERS
object_type = Order
permissions = (CheckoutPermissions.HANDLE_CHECKOUTS,)
error_type_class = OrderCreateFromCheckoutError
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 239d5d5c72..c8996d9da8 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -16385,7 +16385,7 @@ type Mutation {
Determines if checkout should be removed after creating an order. Default true.
"""
removeCheckout: Boolean = true
- ): OrderCreateFromCheckout @doc(category: "Checkout")
+ ): OrderCreateFromCheckout @doc(category: "Orders")
"""
Creates new channel.
@@ -24815,13 +24815,13 @@ Create new order from existing checkout. Requires the following permissions: AUT
Added in Saleor 3.2.
"""
-type OrderCreateFromCheckout @doc(category: "Checkout") {
+type OrderCreateFromCheckout @doc(category: "Orders") {
"""Placed order."""
order: Order
errors: [OrderCreateFromCheckoutError!]!
}
-type OrderCreateFromCheckoutError @doc(category: "Checkout") {
+type OrderCreateFromCheckoutError @doc(category: "Orders") {
"""
Name of a field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
"""