Skip to content

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

C:\Users\MatthewBosek\saleor\saleor\graphql\schema.graphql Schema is updated as well as deprecation messages.

Matthew Bosekcd7bd62fe87d
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.py
index 09c00172cb..32613cf84e 100644
--- a/saleor/graphql/product/types/products.py
+++ b/saleor/graphql/product/types/products.py
@@ -125,7 +125,7 @@ class BasePricingInfo(graphene.ObjectType):
description="Whether it is in stock and visible or not.",
deprecation_reason=(
"DEPRECATED: Will be removed in Saleor 2.10, "
- "this has been moved to the parent type as 'is_available'."
+ "this has been moved to the parent type as 'isAvailable'."
),
)
on_sale = graphene.Boolean(description="Whether it is in sale or not.")
@@ -192,7 +192,7 @@ class ProductVariant(CountableDjangoObjectType, MetadataObjectType):
description="Price of the product variant.",
deprecation_reason=(
"DEPRECATED: Will be removed in Saleor 2.10, "
- "has been replaced by 'pricing.price_undiscounted'"
+ "has been replaced by 'pricing.priceUndiscounted'"
),
)
availability = graphene.Field(
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index dcddb00f8c..a71cfaefca 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -2664,7 +2664,7 @@ enum ProductOrderField {
}
type ProductPricingInfo {
- available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'is_available'.")
+ available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'isAvailable'.")
onSale: Boolean
discount: TaxedMoney
discountLocalCurrency: TaxedMoney
@@ -2816,7 +2816,7 @@ type ProductVariant implements Node {
meta: [MetaStore]!
stockQuantity: Int!
priceOverride: Money
- price: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by 'pricing.price_undiscounted'")
+ price: Money @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been replaced by 'pricing.priceUndiscounted'")
availability: VariantPricingInfo @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, has been renamed to 'pricing'.")
pricing: VariantPricingInfo
isAvailable: Boolean
@@ -3565,7 +3565,7 @@ type VariantImageUnassign {
}
type VariantPricingInfo {
- available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'is_available'.")
+ available: Boolean @deprecated(reason: "DEPRECATED: Will be removed in Saleor 2.10, this has been moved to the parent type as 'isAvailable'.")
onSale: Boolean
discount: TaxedMoney
discountLocalCurrency: TaxedMoney