Skip to content

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

Added missing description for shipping types (#13372)

Smit Parmarce277f9b106d
diff --git a/CHANGELOG.md b/CHANGELOG.md
index 36b05090c6..7fd98c328b 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -103,6 +103,7 @@ Shipping methods can be removed by the user after it has been assigned to a chec
- Add missing descriptions to Product module. - #13259 by @FremahA
- Add missing description for Invoice module - #13265 by @DevilsAutumn
- Add missing descriptions to Discount module - #13261 by @devilsautumn
+- Add missing descriptions to Shipping module. - #13372 by @Smit-Parmar
- Fix error handling in the permission check for `Query.webhook` - #13378 by @patrys
# 3.14.0
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 5f902791c6..6fdc814fb9 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -3727,6 +3727,7 @@ type ShippingZoneCountableEdge @doc(category: "Shipping") {
Represents a shipping zone in the shop. Zones are the concept used only for grouping shipping methods in the dashboard, and are never exposed to the customers directly.
"""
type ShippingZone implements Node & ObjectWithMetadata @doc(category: "Shipping") {
+ """The ID of shipping zone."""
id: ID!
"""List of private metadata items. Requires staff permissions to access."""
@@ -3766,7 +3767,11 @@ type ShippingZone implements Node & ObjectWithMetadata @doc(category: "Shipping"
Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
+
+ """Shipping zone name."""
name: String!
+
+ """Indicates if the shipping zone is default one."""
default: Boolean!
"""Lowest and highest prices for the shipping."""
@@ -4747,10 +4752,19 @@ enum LanguageCodeEnum {
"""Represents shipping method channel listing."""
type ShippingMethodChannelListing implements Node @doc(category: "Shipping") {
+ """The ID of shipping method channel listing."""
id: ID!
+
+ """The channel associated with the shipping method channel listing."""
channel: Channel!
+
+ """Maximum order price."""
maximumOrderPrice: Money
+
+ """Minimum order price."""
minimumOrderPrice: Money
+
+ """Price of the shipping method in the associated channel."""
price: Money
}
diff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.py
index e98d27833c..d7de4c0523 100644
--- a/saleor/graphql/shipping/types.py
+++ b/saleor/graphql/shipping/types.py
@@ -56,11 +56,19 @@ from .enums import PostalCodeRuleInclusionTypeEnum, ShippingMethodTypeEnum
class ShippingMethodChannelListing(
ModelObjectType[models.ShippingMethodChannelListing]
):
- id = graphene.GlobalID(required=True)
- channel = graphene.Field(Channel, required=True)
- maximum_order_price = graphene.Field(Money)
- minimum_order_price = graphene.Field(Money)
- price = graphene.Field(Money)
+ id = graphene.GlobalID(
+ required=True, description="The ID of shipping method channel listing."
+ )
+ channel = graphene.Field(
+ Channel,
+ required=True,
+ description="The channel associated with the shipping method channel listing.",
+ )
+ maximum_order_price = graphene.Field(Money, description="Maximum order price.")
+ minimum_order_price = graphene.Field(Money, description="Minimum order price.")
+ price = graphene.Field(
+ Money, description="Price of the shipping method in the associated channel."
+ )
class Meta:
description = "Represents shipping method channel listing."
@@ -252,9 +260,11 @@ class ShippingMethodType(ChannelContextTypeWithMetadataForObjectType):
class ShippingZone(ChannelContextTypeWithMetadata[models.ShippingZone]):
- id = graphene.GlobalID(required=True)
- name = graphene.String(required=True)
- default = graphene.Boolean(required=True)
+ id = graphene.GlobalID(required=True, description="The ID of shipping zone.")
+ name = graphene.String(required=True, description="Shipping zone name.")
+ default = graphene.Boolean(
+ required=True, description="Indicates if the shipping zone is default one."
+ )
price_range = graphene.Field(
MoneyRange, description="Lowest and highest prices for the shipping."
)