Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Update descriptions (#13066)
Marcin Gębala71054e115170
diff --git a/saleor/graphql/checkout/types.py b/saleor/graphql/checkout/types.pyindex 0794245a70..64d004bb0a 100644--- a/saleor/graphql/checkout/types.py+++ b/saleor/graphql/checkout/types.py@@ -429,7 +429,10 @@ class Checkout(ModelObjectType[models.Checkout]):)shipping_price = graphene.Field(TaxedMoney,- description="The price of the shipping, with all the taxes included.",+ description=(+ "The price of the shipping, with all the taxes included. Set to 0 when no "+ "delivery method is selected."+ ),required=True,)shipping_method = graphene.Field(diff --git a/saleor/graphql/product/bulk_mutations/product_bulk_create.py b/saleor/graphql/product/bulk_mutations/product_bulk_create.pyindex d852cc27f8..3fef676606 100644--- a/saleor/graphql/product/bulk_mutations/product_bulk_create.py+++ b/saleor/graphql/product/bulk_mutations/product_bulk_create.py@@ -83,7 +83,11 @@ class ProductChannelListingCreateInput(BaseInputObjectType):))is_available_for_purchase = graphene.Boolean(- description="Determine if product should be available for purchase.",+ description=(+ "Determines if product should be available for purchase in this channel. "+ "This does not guarantee the availability of stock. When set to `False`, "+ "this product is still visible to customers, but it cannot be purchased."+ ),)available_for_purchase_at = graphene.DateTime(description=(diff --git a/saleor/graphql/product/mutations/channels.py b/saleor/graphql/product/mutations/channels.pyindex 84e70e624b..a5b24a2687 100644--- a/saleor/graphql/product/mutations/channels.py+++ b/saleor/graphql/product/mutations/channels.py@@ -81,7 +81,11 @@ class ProductChannelListingAddInput(PublishableChannelListingInput):))is_available_for_purchase = graphene.Boolean(- description="Determine if product should be available for purchase.",+ description=(+ "Determines if product should be available for purchase in this channel. "+ "This does not guarantee the availability of stock. When set to `False`, "+ "this product is still visible to customers, but it cannot be purchased."+ ),)available_for_purchase_date = Date(description=(diff --git a/saleor/graphql/product/types/channels.py b/saleor/graphql/product/types/channels.pyindex 9eddffd036..ead2413135 100644--- a/saleor/graphql/product/types/channels.py+++ b/saleor/graphql/product/types/channels.py@@ -89,7 +89,12 @@ class ProductChannelListing(ModelObjectType[models.ProductChannelListing]):permissions=[ProductPermissions.MANAGE_PRODUCTS],)is_available_for_purchase = graphene.Boolean(- description="Whether the product is available for purchase."+ description=(+ "Refers to a state that can be set by admins to control whether a product "+ "is available for purchase in storefronts in this channel. This does not "+ "guarantee the availability of stock. When set to `False`, this product is "+ "still visible to customers, but it cannot be purchased."+ ))pricing = graphene.Field("saleor.graphql.product.types.products.ProductPricingInfo",diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 760379bb67..312b51d9b9 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -840,7 +840,10 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):)is_available = graphene.Boolean(address=destination_address_argument,- description="Whether the product is in stock and visible or not.",+ description=(+ "Whether the product is in stock, set as available for purchase in the "+ "given channel, and published."+ ),)tax_type = graphene.Field(TaxType,@@ -934,7 +937,12 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):description="Date when product is available for purchase.")is_available_for_purchase = graphene.Boolean(- description="Whether the product is available for purchase."+ description=(+ "Refers to a state that can be set by admins to control whether a product "+ "is available for purchase in storefronts. This does not guarantee the "+ "availability of stock. When set to `False`, this product is still visible "+ "to customers, but it cannot be purchased."+ ))tax_class = PermissionsField(TaxClass,diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 8d6e064883..6597be173b 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -5413,7 +5413,9 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {address: AddressInput): ProductPricingInfo- """Whether the product is in stock and visible or not."""+ """+ Whether the product is in stock, set as available for purchase in the given channel, and published.+ """isAvailable("""Destination address used to find warehouses where stock availability for this product is checked. If address is empty, uses `Shop.companyAddress` or fallbacks to server's `settings.DEFAULT_COUNTRY` configuration.@@ -5504,7 +5506,9 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {"""Date when product is available for purchase."""availableForPurchaseAt: DateTime- """Whether the product is available for purchase."""+ """+ Refers to a state that can be set by admins to control whether a product is available for purchase in storefronts. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased.+ """isAvailableForPurchase: Boolean"""@@ -7494,7 +7498,9 @@ type ProductChannelListing implements Node @doc(category: "Products") {"""margin: Margin- """Whether the product is available for purchase."""+ """+ Refers to a state that can be set by admins to control whether a product is available for purchase in storefronts in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased.+ """isAvailableForPurchase: Boolean"""@@ -9661,7 +9667,9 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") {"""lines: [CheckoutLine!]!- """The price of the shipping, with all the taxes included."""+ """+ The price of the shipping, with all the taxes included. Set to 0 when no delivery method is selected.+ """shippingPrice: TaxedMoney!"""The shipping method related with checkout."""@@ -19744,7 +19752,9 @@ input ProductChannelListingCreateInput @doc(category: "Products") {"""visibleInListings: Boolean- """Determine if product should be available for purchase."""+ """+ Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased.+ """isAvailableForPurchase: Boolean"""@@ -20124,7 +20134,9 @@ input ProductChannelListingAddInput @doc(category: "Products") {"""visibleInListings: Boolean- """Determine if product should be available for purchase."""+ """+ Determines if product should be available for purchase in this channel. This does not guarantee the availability of stock. When set to `False`, this product is still visible to customers, but it cannot be purchased.+ """isAvailableForPurchase: Boolean"""