Skip to content

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

update currency description

AjmalPonneth290e82f4d304
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 448d89cd2a..d7cd9d0c16 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -32725,8 +32725,12 @@ type TransactionAction @doc(category: "Payments") {
"""Transaction request amount. Null when action type is VOID."""
amount: PositiveDecimal
- """Currency code."""
- currency: String
+ """
+ Currency code.
+
+ Added in Saleor 3.16.
+ """
+ currency: String!
}
"""
diff --git a/saleor/graphql/webhook/subscription_types.py b/saleor/graphql/webhook/subscription_types.py
index 3221b14b46..76420c0626 100644
--- a/saleor/graphql/webhook/subscription_types.py
+++ b/saleor/graphql/webhook/subscription_types.py
@@ -1599,7 +1599,9 @@ class TransactionAction(SubscriptionObjectType, AbstractType):
amount = PositiveDecimal(
description="Transaction request amount. Null when action type is VOID.",
)
- currency = graphene.String(description="Currency code.")
+ currency = graphene.String(
+ description="Currency code." + ADDED_IN_316, required=True
+ )
class Meta:
doc_category = DOC_CATEGORY_PAYMENTS