Skip to content

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

Add description for new flag and object

Jakub Draganek7ddbabfd602e
diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.py
index cf566655c9..4de7e62993 100644
--- a/saleor/graphql/checkout/mutations.py
+++ b/saleor/graphql/checkout/mutations.py
@@ -469,7 +469,10 @@ class CheckoutComplete(BaseMutation):
class Arguments:
checkout_id = graphene.ID(description="Checkout ID", required=True)
- store_source = graphene.Boolean(default_value=False)
+ store_source = graphene.Boolean(
+ default_value=False,
+ description="Determines whether to store the payment source for future usage.",
+ )
class Meta:
description = (
diff --git a/saleor/graphql/payment/types.py b/saleor/graphql/payment/types.py
index 2d6e6aeca4..d47a0f66b5 100644
--- a/saleor/graphql/payment/types.py
+++ b/saleor/graphql/payment/types.py
@@ -53,6 +53,9 @@ class CreditCard(graphene.ObjectType):
class PaymentSource(graphene.ObjectType):
+ class Meta:
+ description = "Represents a payment source stored for user in payment gateway, such as credit card."
+
gateway = graphene.String(description="Payment gateway name", required=True)
credit_card_info = graphene.Field(
CreditCard, description="Stored credit card details if available"