Skip to content

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

Added missing description for invoice types. (#13265)

Bhuvnesh2ea26bf4cf32
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 65ad283f4d..dd4ec334d7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -93,6 +93,7 @@ All notable, unreleased changes to this project will be documented in this file.
- Add missing descriptions to Shop module. - #13295 by @Smit-Parmar
- Add missing descriptions to Warehouse module. - #13264 by @Smit-Parmar
- Add missing descriptions to Product module. - #13259 by @FremahA
+- Add missing description for Invoice module - #13265 by @DevilsAutumn
# 3.14.0
diff --git a/saleor/graphql/invoice/types.py b/saleor/graphql/invoice/types.py
index e307b4975b..1121b961f9 100644
--- a/saleor/graphql/invoice/types.py
+++ b/saleor/graphql/invoice/types.py
@@ -8,11 +8,15 @@ from ..order.dataloaders import OrderByIdLoader
class Invoice(ModelObjectType[models.Invoice]):
- number = graphene.String()
- external_url = graphene.String()
- created_at = graphene.DateTime(required=True)
- updated_at = graphene.DateTime(required=True)
- message = graphene.String()
+ number = graphene.String(description="Invoice number.")
+ external_url = graphene.String(description="URL to view an invoice.")
+ created_at = graphene.DateTime(
+ required=True, description="Date and time at which invoice was created."
+ )
+ updated_at = graphene.DateTime(
+ required=True, description="Date and time at which invoice was updated."
+ )
+ message = graphene.String(description="Message associated with an invoice.")
url = graphene.String(description="URL to download an invoice.")
order = graphene.Field(
"saleor.graphql.order.types.Order",
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 20b5ef7c09..716e554c6a 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -11105,13 +11105,23 @@ type Invoice implements ObjectWithMetadata & Job & Node @doc(category: "Orders")
"""Job status."""
status: JobStatusEnum!
+
+ """Date and time at which invoice was created."""
createdAt: DateTime!
+
+ """Date and time at which invoice was updated."""
updatedAt: DateTime!
+
+ """Message associated with an invoice."""
message: String
"""The ID of the object."""
id: ID!
+
+ """Invoice number."""
number: String
+
+ """URL to view an invoice."""
externalUrl: String
"""URL to download an invoice."""