Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Deprecate the preorder GraphQL API (#19664) (#19670)
Lukasz Ostrowskie7d664f2d7a9
diff --git a/saleor/graphql/core/descriptions.py b/saleor/graphql/core/descriptions.pyindex fd66ed82af..98715f1255 100644--- a/saleor/graphql/core/descriptions.py+++ b/saleor/graphql/core/descriptions.py@@ -28,6 +28,21 @@ DEPRECATED_LEGACY_PAYMENTS = (DEPRECATED_LEGACY_PAYMENTS_TYPE_DESCRIPTION = "\n\n" + DEPRECATED_LEGACY_PAYMENTS+DEPRECATED_PREORDER = (+ "Preorder is deprecated and will be removed. "+ "Model pre-sales with regular stock instead: create the planned quantity in a "+ "warehouse, or set `trackInventory` to false to sell without a stock limit."+)++# Used on type descriptions, where GraphQL has no `@deprecated` directive. Must not+# embed DEPRECATED_IN_3X_INPUT: `schema_printer.print_description` truncates a+# description at that marker, which would drop the reason entirely.+DEPRECATED_PREORDER_TYPE_DESCRIPTION = "\n\nDEPRECATED: " + DEPRECATED_PREORDER++# `schema_printer.print_input_value` turns this into a real `@deprecated` directive,+# but only when the description carries the DEPRECATED_IN_3X_INPUT marker verbatim.+DEPRECATED_PREORDER_INPUT = f"{DEPRECATED_IN_3X_INPUT} {DEPRECATED_PREORDER}"+PREVIEW_FEATURE = ("\n\nNote: this API is currently in Feature Preview and can be subject to "diff --git a/saleor/graphql/core/enums.py b/saleor/graphql/core/enums.pyindex 219d88721c..78dd153e63 100644--- a/saleor/graphql/core/enums.py+++ b/saleor/graphql/core/enums.py@@ -35,6 +35,7 @@ from ...translations import error_codes as translatable_error_codesfrom ...warehouse import error_codes as warehouse_error_codesfrom ...webhook import error_codes as webhook_error_codesfrom ..notifications import error_codes as external_notifications_error_codes+from .descriptions import DEPRECATED_PREORDERfrom .doc_category import (DOC_CATEGORY_APPS,DOC_CATEGORY_ATTRIBUTES,@@ -427,8 +428,19 @@ PermissionGroupErrorCode: Final[graphene.Enum] = graphene.Enum.from_enum()PermissionGroupErrorCode.doc_category = DOC_CATEGORY_USERS++def product_error_code_deprecation_reason(enum):+ preorder_code = (+ product_error_codes.ProductErrorCode.PREORDER_VARIANT_CANNOT_BE_DEACTIVATED+ )+ if enum == preorder_code:+ return DEPRECATED_PREORDER+ return None++ProductErrorCode: Final[graphene.Enum] = graphene.Enum.from_enum(- product_error_codes.ProductErrorCode+ product_error_codes.ProductErrorCode,+ deprecation_reason=product_error_code_deprecation_reason,)ProductErrorCode.doc_category = DOC_CATEGORY_PRODUCTSdiff --git a/saleor/graphql/order/filters.py b/saleor/graphql/order/filters.pyindex c05ec1fb93..33c07a1cca 100644--- a/saleor/graphql/order/filters.py+++ b/saleor/graphql/order/filters.py@@ -21,7 +21,7 @@ from ...product.models import ProductVariantfrom ...warehouse.models import Stock, Warehousefrom ..account.filters import AddressFilterInput, filter_addressfrom ..channel.filters import get_currency_from_filter_data-from ..core.descriptions import ADDED_IN_322+from ..core.descriptions import ADDED_IN_322, DEPRECATED_PREORDER_INPUTfrom ..core.doc_category import DOC_CATEGORY_ORDERSfrom ..core.filters import (GlobalIDMultipleChoiceFilter,@@ -402,7 +402,13 @@ class OrderFilter(DraftOrderFilter):is_click_and_collect = django_filters.BooleanFilter(method=filter_is_click_and_collect)- is_preorder = django_filters.BooleanFilter(method=filter_is_preorder)+ is_preorder = django_filters.BooleanFilter(+ method=filter_is_preorder,+ help_text=(+ "Filter by orders containing a variant that is currently in preorder."+ f"{DEPRECATED_PREORDER_INPUT}"+ ),+ )ids = GlobalIDMultipleChoiceFilter(method=filter_order_by_id)checkout_tokens = ListObjectTypeFilter(input_class=UUIDScalar, method=filter_by_checkout_tokensdiff --git a/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py b/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.pyindex 39f7c98916..ca705c471c 100644--- a/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py+++ b/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py@@ -17,6 +17,7 @@ from ....warehouse.management import delete_stocks, stock_bulk_updatefrom ....webhook.event_types import WebhookEventAsyncTypefrom ....webhook.utils import get_webhooks_for_eventfrom ...attribute.utils.attribute_assignment import AttributeAssignmentMixin+from ...core.descriptions import DEPRECATED_PREORDER_INPUTfrom ...core.doc_category import DOC_CATEGORY_PRODUCTSfrom ...core.enums import ErrorPolicyEnumfrom ...core.mutations import BaseMutation, DeprecatedModelMutation@@ -67,7 +68,9 @@ class ChannelListingUpdateInput(BaseInputObjectType):cost_price = PositiveDecimal(description="Cost price of the variant in channel.")prior_price = PositiveDecimal(description="Price of the variant before discount.")preorder_threshold = graphene.Int(- description="The threshold for preorder variant in channel."+ description=(+ f"The threshold for preorder variant in channel.{DEPRECATED_PREORDER_INPUT}"+ ))class Meta:diff --git a/saleor/graphql/product/filters/product.py b/saleor/graphql/product/filters/product.pyindex dc549b05fd..5b3a16ce76 100644--- a/saleor/graphql/product/filters/product.py+++ b/saleor/graphql/product/filters/product.py@@ -11,6 +11,7 @@ from ....product.models import (ProductVariantChannelListing,)from ...channel.filters import get_channel_slug_from_filter_data+from ...core.descriptions import DEPRECATED_PREORDER_INPUTfrom ...core.doc_category import DOC_CATEGORY_PRODUCTSfrom ...core.filters import (BooleanWhereFilter,@@ -135,7 +136,10 @@ class ProductFilter(MetadataFilterBase):)ids = GlobalIDMultipleChoiceFilter(method=filter_by_id("Product"))has_preordered_variants = django_filters.BooleanFilter(- method=filter_has_preordered_variants+ method=filter_has_preordered_variants,+ help_text=(+ f"Filter by product with preordered variants.{DEPRECATED_PREORDER_INPUT}"+ ),)slugs = ListObjectTypeFilter(input_class=graphene.String, method=filter_slug_list)@@ -304,7 +308,9 @@ class ProductWhere(MetadataWhereFilterBase):)has_preordered_variants = BooleanWhereFilter(method=where_filter_has_preordered_variants,- help_text="Filter by product with preordered variants.",+ help_text=(+ f"Filter by product with preordered variants.{DEPRECATED_PREORDER_INPUT}"+ ),)updated_at = ObjectTypeWhereFilter(input_class=DateTimeFilterInput,diff --git a/saleor/graphql/product/filters/product_variant.py b/saleor/graphql/product/filters/product_variant.pyindex ccfd350e30..fde62a463a 100644--- a/saleor/graphql/product/filters/product_variant.py+++ b/saleor/graphql/product/filters/product_variant.py@@ -16,7 +16,11 @@ from ...attribute.shared_filters import (validate_attribute_value_input,)from ...channel.filters import get_channel_slug_from_filter_data-from ...core.descriptions import ADDED_IN_322, ADDED_IN_324+from ...core.descriptions import (+ ADDED_IN_322,+ ADDED_IN_324,+ DEPRECATED_PREORDER_INPUT,+)from ...core.doc_category import DOC_CATEGORY_PRODUCTSfrom ...core.filters import (EnumWhereFilter,@@ -91,7 +95,13 @@ def filter_variants_by_attributes(class ProductVariantFilter(MetadataFilterBase):search = django_filters.CharFilter(method="product_variant_filter_search")sku = ListObjectTypeFilter(input_class=graphene.String, method=filter_sku_list)- is_preorder = django_filters.BooleanFilter(method=filter_is_preorder)+ is_preorder = django_filters.BooleanFilter(+ method=filter_is_preorder,+ help_text=(+ "Filter by variants that are currently in preorder."+ f"{DEPRECATED_PREORDER_INPUT}"+ ),+ )updated_at = ObjectTypeFilter(input_class=DateTimeRangeInput, method=filter_updated_at_range)diff --git a/saleor/graphql/product/mutations/channels.py b/saleor/graphql/product/mutations/channels.pyindex bdee9e5d81..9072314a38 100644--- a/saleor/graphql/product/mutations/channels.py+++ b/saleor/graphql/product/mutations/channels.py@@ -22,7 +22,10 @@ from ...channel.mutations import BaseChannelListingMutationfrom ...channel.types import Channelfrom ...core import ResolveInfofrom ...core.context import ChannelContext-from ...core.descriptions import DEPRECATED_IN_3X_INPUT+from ...core.descriptions import (+ DEPRECATED_IN_3X_INPUT,+ DEPRECATED_PREORDER_INPUT,+)from ...core.doc_category import DOC_CATEGORY_PRODUCTSfrom ...core.mutations import BaseMutationfrom ...core.scalars import Date, DateTime, PositiveDecimal@@ -394,7 +397,9 @@ class ProductVariantChannelListingAddInput(BaseInputObjectType):"directive.")preorder_threshold = graphene.Int(- description="The threshold for preorder variant in channel."+ description=(+ f"The threshold for preorder variant in channel.{DEPRECATED_PREORDER_INPUT}"+ ))class Meta:diff --git a/saleor/graphql/product/mutations/product_variant/product_variant_create.py b/saleor/graphql/product/mutations/product_variant/product_variant_create.pyindex f8b7af7458..57ce0ef29c 100644--- a/saleor/graphql/product/mutations/product_variant/product_variant_create.py+++ b/saleor/graphql/product/mutations/product_variant/product_variant_create.py@@ -15,6 +15,10 @@ from ....attribute.utils.attribute_assignment import (from ....attribute.utils.shared import AttrValuesInputfrom ....core import ResolveInfofrom ....core.context import ChannelContext+from ....core.descriptions import (+ DEPRECATED_PREORDER_INPUT,+ DEPRECATED_PREORDER_TYPE_DESCRIPTION,+)from ....core.doc_category import DOC_CATEGORY_PRODUCTSfrom ....core.mutations import DeprecatedModelMutationfrom ....core.scalars import DateTime, WeightScalar@@ -37,12 +41,20 @@ T_INPUT_MAP = list[tuple[attribute_models.Attribute, AttrValuesInput]]class PreorderSettingsInput(BaseInputObjectType):global_threshold = graphene.Int(- description="The global threshold for preorder variant."+ description=(+ f"The global threshold for preorder variant.{DEPRECATED_PREORDER_INPUT}"+ )+ )+ end_date = DateTime(+ description=f"The end date for preorder.{DEPRECATED_PREORDER_INPUT}")- end_date = DateTime(description="The end date for preorder.")class Meta:doc_category = DOC_CATEGORY_PRODUCTS+ description = (+ "Preorder settings for a product variant."+ + DEPRECATED_PREORDER_TYPE_DESCRIPTION+ )class ProductVariantInput(BaseInputObjectType):@@ -62,7 +74,9 @@ class ProductVariantInput(BaseInputObjectType):)weight = WeightScalar(description="Weight of the Product Variant.", required=False)preorder = PreorderSettingsInput(- description="Determines if variant is in preorder."+ description=(+ f"Determines if variant is in preorder.{DEPRECATED_PREORDER_INPUT}"+ ))quantity_limit_per_customer = graphene.Int(required=False,diff --git a/saleor/graphql/product/mutations/product_variant/product_variant_preorder_deactivate.py b/saleor/graphql/product/mutations/product_variant/product_variant_preorder_deactivate.pyindex d7898b6a68..fab5e8b8cc 100644--- a/saleor/graphql/product/mutations/product_variant/product_variant_preorder_deactivate.py+++ b/saleor/graphql/product/mutations/product_variant/product_variant_preorder_deactivate.py@@ -9,6 +9,7 @@ from .....product.error_codes import ProductErrorCodefrom .....warehouse.management import deactivate_preorder_for_variantfrom ....core import ResolveInfofrom ....core.context import ChannelContext+from ....core.descriptions import DEPRECATED_PREORDER_TYPE_DESCRIPTIONfrom ....core.doc_category import DOC_CATEGORY_PRODUCTSfrom ....core.mutations import BaseMutationfrom ....core.types import ProductError@@ -31,6 +32,7 @@ class ProductVariantPreorderDeactivate(BaseMutation):description = ("Deactivates product variant preorder. ""It changes all preorder allocation into regular allocation."+ + DEPRECATED_PREORDER_TYPE_DESCRIPTION)doc_category = DOC_CATEGORY_PRODUCTSpermissions = (ProductPermissions.MANAGE_PRODUCTS,)diff --git a/saleor/graphql/product/schema.py b/saleor/graphql/product/schema.pyindex b72288d513..7be0787b4e 100644--- a/saleor/graphql/product/schema.py+++ b/saleor/graphql/product/schema.py@@ -16,6 +16,7 @@ from ..core.descriptions import (ADDED_IN_322,DEFAULT_DEPRECATION_REASON,DEPRECATED_IN_3X_INPUT,+ DEPRECATED_PREORDER,)from ..core.doc_category import DOC_CATEGORY_PRODUCTSfrom ..core.enums import LanguageCodeEnum, ReportingPeriod@@ -695,7 +696,9 @@ class ProductMutations(graphene.ObjectType):product_variant_reorder_attribute_values = (ProductVariantReorderAttributeValues.Field())- product_variant_preorder_deactivate = ProductVariantPreorderDeactivate.Field()+ product_variant_preorder_deactivate = ProductVariantPreorderDeactivate.Field(+ deprecation_reason=DEPRECATED_PREORDER+ )variant_media_assign = VariantMediaAssign.Field()variant_media_unassign = VariantMediaUnassign.Field()diff --git a/saleor/graphql/product/types/channels.py b/saleor/graphql/product/types/channels.pyindex 881e9ab3f3..648b225ff2 100644--- a/saleor/graphql/product/types/channels.py+++ b/saleor/graphql/product/types/channels.py@@ -21,6 +21,10 @@ from ....tax.utils import (from ...account import types as account_typesfrom ...channel.dataloaders.by_self import ChannelByIdLoaderfrom ...channel.types import Channel+from ...core.descriptions import (+ DEPRECATED_PREORDER,+ DEPRECATED_PREORDER_TYPE_DESCRIPTION,+)from ...core.doc_category import DOC_CATEGORY_PRODUCTSfrom ...core.fields import PermissionsFieldfrom ...core.scalars import Date, DateTime@@ -293,15 +297,20 @@ class PreorderThreshold(BaseObjectType):quantity = graphene.Int(required=False,description="Preorder threshold for product variant in this channel.",+ deprecation_reason=DEPRECATED_PREORDER,)sold_units = graphene.Int(required=True,description="Number of sold product variant in this channel.",+ deprecation_reason=DEPRECATED_PREORDER,)class Meta:doc_category = DOC_CATEGORY_PRODUCTS- description = "Represents preorder variant data for channel."+ description = (+ "Represents preorder variant data for channel."+ + DEPRECATED_PREORDER_TYPE_DESCRIPTION+ )class ProductVariantChannelListing(@@ -332,6 +341,7 @@ class ProductVariantChannelListing(PreorderThreshold,required=False,description="Preorder variant data.",+ deprecation_reason=DEPRECATED_PREORDER,)class Meta:diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.pyindex 835d91dcf9..60dc3ee102 100644--- a/saleor/graphql/product/types/products.py+++ b/saleor/graphql/product/types/products.py@@ -68,6 +68,8 @@ from ...core.context import (from ...core.descriptions import (ADDED_IN_322,DEPRECATED_IN_3X_INPUT,+ DEPRECATED_PREORDER,+ DEPRECATED_PREORDER_TYPE_DESCRIPTION,RICH_CONTENT,)from ...core.doc_category import DOC_CATEGORY_PRODUCTS@@ -281,18 +283,27 @@ class PreorderData(BaseObjectType):required=False,description="The global preorder threshold for product variant.",permissions=[ProductPermissions.MANAGE_PRODUCTS],+ deprecation_reason=DEPRECATED_PREORDER,)global_sold_units = PermissionsField(graphene.Int,required=True,description="Total number of sold product variant during preorder.",permissions=[ProductPermissions.MANAGE_PRODUCTS],+ deprecation_reason=DEPRECATED_PREORDER,+ )+ end_date = DateTime(+ required=False,+ description="Preorder end date.",+ deprecation_reason=DEPRECATED_PREORDER,)- end_date = DateTime(required=False, description="Preorder end date.")class Meta:doc_category = DOC_CATEGORY_PRODUCTS- description = "Represents preorder settings for product variant."+ description = (+ "Represents preorder settings for product variant."+ + DEPRECATED_PREORDER_TYPE_DESCRIPTION+ )@staticmethoddef resolve_global_threshold(root, _info):@@ -454,6 +465,7 @@ class ProductVariant(ChannelContextType[models.ProductVariant]):PreorderData,required=False,description="Preorder data for product variant.",+ deprecation_reason=DEPRECATED_PREORDER,)created = DateTime(required=True,diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphqlindex 1d93437d58..7fc40ed83a 100644--- a/saleor/graphql/schema.graphql+++ b/saleor/graphql/schema.graphql@@ -4481,7 +4481,9 @@ input ProductFilterInput @doc(category: "Products") {"""Filter on whether product is a gift card or not."""giftCard: Booleanids: [ID!]- hasPreorderedVariants: Boolean++ """Filter by product with preordered variants."""+ hasPreorderedVariants: Boolean @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")slugs: [String!]"""Specifies the channel by which the data should be filtered."""@@ -4737,7 +4739,7 @@ input ProductWhereInput @doc(category: "Products") {giftCard: Boolean"""Filter by product with preordered variants."""- hasPreorderedVariants: Boolean+ hasPreorderedVariants: Boolean @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Filter by when was the most recent update."""updatedAt: DateTimeFilterInput@@ -7475,7 +7477,7 @@ type ProductVariant implements Node & ObjectWithMetadata & ObjectWithAttributes): Int"""Preorder data for product variant."""- preorder: PreorderData+ preorder: PreorderData @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""The date and time when the product variant was created."""created: DateTime!@@ -7516,7 +7518,7 @@ type ProductVariantChannelListing implements Node @doc(category: "Products") {margin: Int"""Preorder variant data."""- preorderThreshold: PreorderThreshold+ preorderThreshold: PreorderThreshold @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")}"""Represents channel."""@@ -9409,13 +9411,17 @@ type TaxConfigurationPerCountry @doc(category: "Taxes") {useWeightedTaxForShipping: Boolean}-"""Represents preorder variant data for channel."""+"""+Represents preorder variant data for channel.++DEPRECATED: Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.+"""type PreorderThreshold @doc(category: "Products") {"""Preorder threshold for product variant in this channel."""- quantity: Int+ quantity: Int @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Number of sold product variant in this channel."""- soldUnits: Int!+ soldUnits: Int! @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")}"""Represents availability of a variant in the storefront."""@@ -9845,24 +9851,28 @@ type ProductVariantTranslatableContent implements Node @doc(category: "Products"attributeValues: [AttributeValueTranslatableContent!]!}-"""Represents preorder settings for product variant."""+"""+Represents preorder settings for product variant.++DEPRECATED: Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.+"""type PreorderData @doc(category: "Products") {"""The global preorder threshold for product variant.Requires one of the following permissions: MANAGE_PRODUCTS."""- globalThreshold: Int+ globalThreshold: Int @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Total number of sold product variant during preorder.Requires one of the following permissions: MANAGE_PRODUCTS."""- globalSoldUnits: Int!+ globalSoldUnits: Int! @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Preorder end date."""- endDate: DateTime+ endDate: DateTime @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")}"""Represents availability of a product in the storefront."""@@ -10002,7 +10012,9 @@ input ProductVariantFilterInput @doc(category: "Products") {search: Stringsku: [String!]metadata: [MetadataFilter!]- isPreorder: Boolean++ """Filter by variants that are currently in preorder."""+ isPreorder: Boolean @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")updatedAt: DateTimeRangeInput}@@ -16015,7 +16027,9 @@ input OrderFilterInput @doc(category: "Orders") {chargeStatus: [OrderChargeStatusEnum!]updatedAt: DateTimeRangeInputisClickAndCollect: Boolean- isPreorder: Boolean++ """Filter by orders containing a variant that is currently in preorder."""+ isPreorder: Boolean @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")ids: [ID!]checkoutTokens: [UUID!]giftCardUsed: Boolean@@ -19018,14 +19032,16 @@ type Mutation {): ProductVariantReorderAttributeValues @doc(category: "Products")"""- Deactivates product variant preorder. It changes all preorder allocation into regular allocation.+ Deactivates product variant preorder. It changes all preorder allocation into regular allocation.++ DEPRECATED: Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.Requires one of the following permissions: MANAGE_PRODUCTS."""productVariantPreorderDeactivate("""ID of a variant which preorder should be deactivated."""id: ID!- ): ProductVariantPreorderDeactivate @doc(category: "Products")+ ): ProductVariantPreorderDeactivate @doc(category: "Products") @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Assign an media to a product variant.@@ -24241,7 +24257,7 @@ enum ProductErrorCode @doc(category: "Products") {CANNOT_MANAGE_PRODUCT_WITHOUT_VARIANTPRODUCT_NOT_ASSIGNED_TO_CHANNELUNSUPPORTED_MEDIA_PROVIDER- PREORDER_VARIANT_CANNOT_BE_DEACTIVATED+ PREORDER_VARIANT_CANNOT_BE_DEACTIVATED @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")INVALID_FILE_TYPEUNSUPPORTED_MIME_TYPEFILE_SIZE_LIMIT_EXCEEDED@@ -25053,7 +25069,7 @@ input ProductVariantBulkCreateInput @doc(category: "Products") {weight: WeightScalar"""Determines if variant is in preorder."""- preorder: PreorderSettingsInput+ preorder: PreorderSettingsInput @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.@@ -25142,12 +25158,17 @@ input BulkAttributeValueInput @doc(category: "Products") {dateTime: DateTime}+"""+Preorder settings for a product variant.++DEPRECATED: Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.+"""input PreorderSettingsInput @doc(category: "Products") {"""The global threshold for preorder variant."""- globalThreshold: Int+ globalThreshold: Int @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""The end date for preorder."""- endDate: DateTime+ endDate: DateTime @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")}input StockInput @doc(category: "Products") {@@ -25174,7 +25195,7 @@ input ProductVariantChannelListingAddInput @doc(category: "Products") {priorPrice: PositiveDecimal"""The threshold for preorder variant in channel."""- preorderThreshold: Int+ preorderThreshold: Int @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")}"""@@ -25654,7 +25675,7 @@ input ProductVariantCreateInput @doc(category: "Products") {weight: WeightScalar"""Determines if variant is in preorder."""- preorder: PreorderSettingsInput+ preorder: PreorderSettingsInput @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.@@ -25836,7 +25857,7 @@ input ProductVariantBulkUpdateInput @doc(category: "Products") {weight: WeightScalar"""Determines if variant is in preorder."""- preorder: PreorderSettingsInput+ preorder: PreorderSettingsInput @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.@@ -25914,7 +25935,7 @@ input ChannelListingUpdateInput @doc(category: "Products") {priorPrice: PositiveDecimal"""The threshold for preorder variant in channel."""- preorderThreshold: Int+ preorderThreshold: Int @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")}"""@@ -26074,7 +26095,7 @@ input ProductVariantInput @doc(category: "Products") {weight: WeightScalar"""Determines if variant is in preorder."""- preorder: PreorderSettingsInput+ preorder: PreorderSettingsInput @deprecated(reason: "Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.")"""Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.@@ -26210,7 +26231,9 @@ type ProductVariantReorderAttributeValues @doc(category: "Products") {}"""-Deactivates product variant preorder. It changes all preorder allocation into regular allocation.+Deactivates product variant preorder. It changes all preorder allocation into regular allocation.++DEPRECATED: Preorder is deprecated and will be removed. Model pre-sales with regular stock instead: create the planned quantity in a warehouse, or set `trackInventory` to false to sell without a stock limit.Requires one of the following permissions: MANAGE_PRODUCTS."""