Skip to content

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

Drop ADDED_IN and FEATURE_PREVIEW for versions below 3.18 (rest of Saleor) (#16843)

Tomasz Szymański7ffdcad76eda
diff --git a/saleor/graphql/account/bulk_mutations/customer_bulk_update.py b/saleor/graphql/account/bulk_mutations/customer_bulk_update.py
index 78d0c75d00..0a698656db 100644
--- a/saleor/graphql/account/bulk_mutations/customer_bulk_update.py
+++ b/saleor/graphql/account/bulk_mutations/customer_bulk_update.py
@@ -17,7 +17,6 @@ from ....order.utils import match_orders_with_new_user
from ....permission.enums import AccountPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
-from ...core.descriptions import ADDED_IN_313, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_USERS
from ...core.enums import CustomerBulkUpdateErrorCode, ErrorPolicyEnum
from ...core.mutations import BaseMutation, ModelMutation
@@ -94,7 +93,7 @@ class CustomerBulkUpdate(BaseMutation, I18nMixin):
)
class Meta:
- description = "Updates customers." + ADDED_IN_313 + PREVIEW_FEATURE
+ description = "Updates customers."
doc_category = DOC_CATEGORY_USERS
permissions = (AccountPermissions.MANAGE_USERS,)
error_type_class = CustomerBulkUpdateError
diff --git a/saleor/graphql/account/filters.py b/saleor/graphql/account/filters.py
index f7080ad5ea..9068064b2d 100644
--- a/saleor/graphql/account/filters.py
+++ b/saleor/graphql/account/filters.py
@@ -3,7 +3,6 @@ from django.db.models import Count
from ...account.models import User
from ...account.search import search_users
-from ..core.descriptions import ADDED_IN_38
from ..core.filters import (
EnumFilter,
GlobalIDMultipleChoiceFilter,
@@ -52,9 +51,7 @@ def filter_search(qs, _, value):
class CustomerFilter(MetadataFilterBase):
- ids = GlobalIDMultipleChoiceFilter(
- field_name="id", help_text=f"Filter by ids. {ADDED_IN_38}"
- )
+ ids = GlobalIDMultipleChoiceFilter(field_name="id", help_text="Filter by ids.")
date_joined = ObjectTypeFilter(
input_class=DateRangeInput, method=filter_date_joined
)
diff --git a/saleor/graphql/account/mutations/account/account_update.py b/saleor/graphql/account/mutations/account/account_update.py
index a379e3b3f1..d82dd56add 100644
--- a/saleor/graphql/account/mutations/account/account_update.py
+++ b/saleor/graphql/account/mutations/account/account_update.py
@@ -7,7 +7,7 @@ from .....permission.auth_filters import AuthorizationFilters
from .....webhook.event_types import WebhookEventAsyncType
from ....account.mixins import AddressMetadataMixin
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_314, ADDED_IN_319
+from ....core.descriptions import ADDED_IN_319
from ....core.doc_category import DOC_CATEGORY_USERS
from ....core.types import AccountError, NonNullList
from ....core.utils import WebhookEventInfo
@@ -27,7 +27,7 @@ class AccountInput(AccountBaseInput):
)
metadata = NonNullList(
MetadataInput,
- description="Fields required to update the user metadata." + ADDED_IN_314,
+ description="Fields required to update the user metadata.",
required=False,
)
diff --git a/saleor/graphql/account/mutations/account/send_confirmation_email.py b/saleor/graphql/account/mutations/account/send_confirmation_email.py
index 79bfb7530a..18d5cd2bc9 100644
--- a/saleor/graphql/account/mutations/account/send_confirmation_email.py
+++ b/saleor/graphql/account/mutations/account/send_confirmation_email.py
@@ -15,7 +15,6 @@ from .....permission.auth_filters import AuthorizationFilters
from .....webhook.event_types import WebhookEventAsyncType
from ....channel.utils import clean_channel
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_USERS
from ....core.mutations import BaseMutation
from ....core.types import SendConfirmationEmailError
@@ -39,9 +38,7 @@ class SendConfirmationEmail(BaseMutation):
)
class Meta:
- description = (
- "Sends a notification confirmation." + ADDED_IN_315 + PREVIEW_FEATURE
- )
+ description = "Sends a notification confirmation."
doc_category = DOC_CATEGORY_USERS
error_type_class = SendConfirmationEmailError
permissions = (AuthorizationFilters.AUTHENTICATED_USER,)
diff --git a/saleor/graphql/account/mutations/authentication/create_token.py b/saleor/graphql/account/mutations/authentication/create_token.py
index a600aa1262..5853ffc36d 100644
--- a/saleor/graphql/account/mutations/authentication/create_token.py
+++ b/saleor/graphql/account/mutations/authentication/create_token.py
@@ -5,7 +5,6 @@ from .....account.error_codes import AccountErrorCode
from .....account.throttling import authenticate_with_throttling
from .....core.jwt import create_access_token, create_refresh_token
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_38
from ....core.doc_category import DOC_CATEGORY_AUTH
from ....core.mutations import BaseMutation
from ....core.types import AccountError
@@ -24,7 +23,7 @@ class CreateToken(BaseMutation):
required=False,
description=(
"The audience that will be included to JWT tokens with "
- "prefix `custom:`." + ADDED_IN_38
+ "prefix `custom:`."
),
)
diff --git a/saleor/graphql/account/mutations/base.py b/saleor/graphql/account/mutations/base.py
index cb8545c187..dcaf084d5c 100644
--- a/saleor/graphql/account/mutations/base.py
+++ b/saleor/graphql/account/mutations/base.py
@@ -24,9 +24,6 @@ from ...app.dataloaders import get_app_promise
from ...channel.utils import clean_channel, validate_channel
from ...core import ResolveInfo, SaleorContext
from ...core.descriptions import (
- ADDED_IN_310,
- ADDED_IN_314,
- ADDED_IN_315,
DEPRECATED_IN_3X_INPUT,
)
from ...core.doc_category import DOC_CATEGORY_USERS
@@ -182,14 +179,12 @@ class UserInput(BaseInputObjectType):
note = graphene.String(description="A note about the user.")
metadata = NonNullList(
MetadataInput,
- description="Fields required to update the user metadata." + ADDED_IN_314,
+ description="Fields required to update the user metadata.",
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the user private metadata." + ADDED_IN_314
- ),
+ description="Fields required to update the user private metadata.",
required=False,
)
@@ -214,10 +209,10 @@ class CustomerInput(UserInput, UserAddressInput):
LanguageCodeEnum, required=False, description="User language code."
)
external_reference = graphene.String(
- description="External ID of the customer." + ADDED_IN_310, required=False
+ description="External ID of the customer.", required=False
)
is_confirmed = graphene.Boolean(
- required=False, description="User account is confirmed." + ADDED_IN_315
+ required=False, description="User account is confirmed."
)
class Meta:
@@ -241,7 +236,6 @@ class UserCreateInput(CustomerInput):
required=False,
description=(
"User account is confirmed."
- + ADDED_IN_315
+ DEPRECATED_IN_3X_INPUT
+ "\n\nThe user will be always set as unconfirmed. "
"The confirmation will take place when the user sets the password."
diff --git a/saleor/graphql/account/mutations/permission_group/permission_group_create.py b/saleor/graphql/account/mutations/permission_group/permission_group_create.py
index ba28886642..e41f21c5d8 100644
--- a/saleor/graphql/account/mutations/permission_group/permission_group_create.py
+++ b/saleor/graphql/account/mutations/permission_group/permission_group_create.py
@@ -15,7 +15,6 @@ from .....webhook.event_types import WebhookEventAsyncType
from ....account.utils import get_out_of_scope_permissions, get_user_accessible_channels
from ....app.dataloaders import get_app_promise
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_314, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_USERS
from ....core.enums import PermissionEnum
from ....core.mutations import ModelMutation
@@ -37,10 +36,7 @@ class PermissionGroupInput(BaseInputObjectType):
required=False,
)
add_channels = NonNullList(
- graphene.ID,
- description="List of channels to assign to this group."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ graphene.ID, description="List of channels to assign to this group."
)
class Meta:
@@ -52,9 +48,7 @@ class PermissionGroupCreateInput(PermissionGroupInput):
restricted_access_to_channels = graphene.Boolean(
description=(
"Determine if the group has restricted access to channels. DEFAULT: False"
- )
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ ),
default_value=False,
required=False,
)
diff --git a/saleor/graphql/account/mutations/permission_group/permission_group_update.py b/saleor/graphql/account/mutations/permission_group/permission_group_update.py
index 6cb9e226c1..4403df0010 100644
--- a/saleor/graphql/account/mutations/permission_group/permission_group_update.py
+++ b/saleor/graphql/account/mutations/permission_group/permission_group_update.py
@@ -19,7 +19,6 @@ from ....account.utils import (
get_out_of_scope_users,
)
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_314, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_USERS
from ....core.enums import PermissionEnum
from ....core.types import NonNullList, PermissionGroupError
@@ -44,15 +43,10 @@ class PermissionGroupUpdateInput(PermissionGroupInput):
required=False,
)
remove_channels = NonNullList(
- graphene.ID,
- description="List of channels to unassign from this group."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ graphene.ID, description="List of channels to unassign from this group."
)
restricted_access_to_channels = graphene.Boolean(
- description="Determine if the group has restricted access to channels."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ description="Determine if the group has restricted access to channels.",
required=False,
)
diff --git a/saleor/graphql/account/mutations/staff/customer_delete.py b/saleor/graphql/account/mutations/staff/customer_delete.py
index e23cb86f6d..5ee5b35dd3 100644
--- a/saleor/graphql/account/mutations/staff/customer_delete.py
+++ b/saleor/graphql/account/mutations/staff/customer_delete.py
@@ -5,7 +5,6 @@ from .....permission.enums import AccountPermissions
from .....webhook.event_types import WebhookEventAsyncType
from ....account.types import User
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_310
from ....core.doc_category import DOC_CATEGORY_USERS
from ....core.types import AccountError
from ....core.utils import WebhookEventInfo
@@ -34,7 +33,7 @@ class CustomerDelete(CustomerDeleteMixin, UserDelete):
id = graphene.ID(required=False, description="ID of a customer to delete.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a customer to update. {ADDED_IN_310}",
+ description="External ID of a customer to update.",
)
@classmethod
diff --git a/saleor/graphql/account/mutations/staff/customer_update.py b/saleor/graphql/account/mutations/staff/customer_update.py
index f94ab49ef3..a9a8bd9537 100644
--- a/saleor/graphql/account/mutations/staff/customer_update.py
+++ b/saleor/graphql/account/mutations/staff/customer_update.py
@@ -13,7 +13,6 @@ from .....webhook.event_types import WebhookEventAsyncType
from ....account.types import User
from ....app.dataloaders import get_app_promise
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_310
from ....core.doc_category import DOC_CATEGORY_USERS
from ....core.mutations import ModelWithExtRefMutation
from ....core.types import AccountError
@@ -28,7 +27,7 @@ class CustomerUpdate(CustomerCreate, ModelWithExtRefMutation):
id = graphene.ID(description="ID of a customer to update.", required=False)
external_reference = graphene.String(
required=False,
- description=f"External ID of a customer to update. {ADDED_IN_310}",
+ description="External ID of a customer to update.",
)
input = CustomerInput(
description="Fields required to update a customer.", required=True
diff --git a/saleor/graphql/account/schema.py b/saleor/graphql/account/schema.py
index a0f553864a..04e740fbed 100644
--- a/saleor/graphql/account/schema.py
+++ b/saleor/graphql/account/schema.py
@@ -6,7 +6,6 @@ from ...permission.utils import message_one_of_permissions_required
from ..app.dataloaders import app_promise_callback
from ..core import ResolveInfo
from ..core.connection import create_connection_slice, filter_connection_queryset
-from ..core.descriptions import ADDED_IN_310
from ..core.doc_category import DOC_CATEGORY_USERS
from ..core.fields import BaseField, FilterConnectionField, PermissionsField
from ..core.types import FilterInputObjectType
@@ -181,7 +180,7 @@ class AccountQueries(graphene.ObjectType):
graphene.String, description="Email address of the user."
),
external_reference=graphene.Argument(
- graphene.String, description=f"External ID of the user. {ADDED_IN_310}"
+ graphene.String, description="External ID of the user."
),
permissions=[
AccountPermissions.MANAGE_STAFF,
diff --git a/saleor/graphql/account/types.py b/saleor/graphql/account/types.py
index bc3ad1affd..c17fe9ffa8 100644
--- a/saleor/graphql/account/types.py
+++ b/saleor/graphql/account/types.py
@@ -36,10 +36,6 @@ from ..core import ResolveInfo
from ..core.connection import CountableConnection, create_connection_slice
from ..core.context import get_database_connection_name
from ..core.descriptions import (
- ADDED_IN_38,
- ADDED_IN_310,
- ADDED_IN_314,
- ADDED_IN_315,
ADDED_IN_319,
DEPRECATED_IN_3X_FIELD,
PREVIEW_FEATURE,
@@ -99,7 +95,7 @@ class AddressInput(BaseInputObjectType):
)
metadata = graphene.List(
graphene.NonNull(MetadataInput),
- description="Address public metadata." + ADDED_IN_315,
+ description="Address public metadata.",
required=False,
)
skip_validation = graphene.Boolean(
@@ -161,7 +157,6 @@ class Address(ModelObjectType[models.Address]):
description = "Represents user address data."
interfaces = [relay.Node, ObjectWithMetadata]
model = models.Address
- metadata_since = ADDED_IN_310
@staticmethod
def resolve_country(root: models.Address, _info: ResolveInfo):
@@ -333,7 +328,7 @@ class User(ModelObjectType[models.User]):
)
is_confirmed = graphene.Boolean(
required=True,
- description="Determines if user has confirmed email." + ADDED_IN_315,
+ description="Determines if user has confirmed email.",
)
addresses = NonNullList(
Address, description="List of all user's addresses.", required=True
@@ -363,7 +358,7 @@ class User(ModelObjectType[models.User]):
)
checkouts = ConnectionField(
CheckoutCountableConnection,
- description="Returns checkouts assigned to this user." + ADDED_IN_38,
+ description="Returns checkouts assigned to this user.",
channel=graphene.String(
description="Slug of a channel for which the data should be returned."
),
@@ -401,7 +396,7 @@ class User(ModelObjectType[models.User]):
description=(
"List of channels the user has access to. The sum of channels from all "
"user groups. If at least one group has `restrictedAccessToChannels` "
- "set to False - all channels are returned." + ADDED_IN_314 + PREVIEW_FEATURE
+ "set to False - all channels are returned."
),
)
restricted_access_to_channels = graphene.Boolean(
@@ -409,9 +404,7 @@ class User(ModelObjectType[models.User]):
description=(
"Determine if user have restricted access to channels. False if at least "
"one user group has `restrictedAccessToChannels` set to False."
- )
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ ),
)
avatar = ThumbnailField(description="The avatar of the user.")
events = PermissionsField(
@@ -439,7 +432,7 @@ class User(ModelObjectType[models.User]):
Address, description="The default billing address of the user."
)
external_reference = graphene.String(
- description=f"External ID of this user. {ADDED_IN_310}", required=False
+ description="External ID of this user.", required=False
)
last_login = DateTime(
@@ -458,7 +451,7 @@ class User(ModelObjectType[models.User]):
"Returns a list of user's stored payment methods that can be used in "
"provided channel. The field returns a list of stored payment methods by "
"payment apps. When `amount` is not provided, 0 will be used as default "
- "value." + ADDED_IN_315 + PREVIEW_FEATURE
+ "value."
),
channel=graphene.String(
description="Slug of a channel for which the data should be returned.",
@@ -943,16 +936,11 @@ class Group(ModelObjectType[models.Group]):
),
)
accessible_channels = NonNullList(
- Channel,
- description="List of channels the group has access to."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ Channel, description="List of channels the group has access to."
)
restricted_access_to_channels = graphene.Boolean(
required=True,
- description="Determine if the group have restricted access to channels."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ description="Determine if the group have restricted access to channels.",
)
class Meta:
diff --git a/saleor/graphql/app/schema.py b/saleor/graphql/app/schema.py
index 845ed81c52..a3096e1575 100644
--- a/saleor/graphql/app/schema.py
+++ b/saleor/graphql/app/schema.py
@@ -5,7 +5,6 @@ from ...permission.auth_filters import AuthorizationFilters
from ...permission.enums import AppPermission
from ..core import ResolveInfo
from ..core.connection import create_connection_slice, filter_connection_queryset
-from ..core.descriptions import ADDED_IN_31
from ..core.doc_category import DOC_CATEGORY_APPS
from ..core.fields import FilterConnectionField, PermissionsField
from ..core.types import FilterInputObjectType, NonNullList
@@ -98,7 +97,7 @@ class AppQueries(graphene.ObjectType):
filter=AppExtensionFilterInput(
description="Filtering options for apps extensions."
),
- description="List of all extensions." + ADDED_IN_31,
+ description="List of all extensions.",
permissions=[
AuthorizationFilters.AUTHENTICATED_STAFF_USER,
AuthorizationFilters.AUTHENTICATED_APP,
@@ -110,7 +109,7 @@ class AppQueries(graphene.ObjectType):
id=graphene.Argument(
graphene.ID, description="ID of the app extension.", required=True
),
- description="Look up an app extension by ID." + ADDED_IN_31,
+ description="Look up an app extension by ID.",
permissions=[
AuthorizationFilters.AUTHENTICATED_STAFF_USER,
AuthorizationFilters.AUTHENTICATED_APP,
diff --git a/saleor/graphql/app/types.py b/saleor/graphql/app/types.py
index 487f61cbde..cf6a57a008 100644
--- a/saleor/graphql/app/types.py
+++ b/saleor/graphql/app/types.py
@@ -24,14 +24,8 @@ from ..core import ResolveInfo, SaleorContext
from ..core.connection import CountableConnection
from ..core.context import get_database_connection_name
from ..core.descriptions import (
- ADDED_IN_31,
- ADDED_IN_35,
- ADDED_IN_38,
- ADDED_IN_313,
- ADDED_IN_314,
ADDED_IN_319,
DEPRECATED_IN_3X_FIELD,
- PREVIEW_FEATURE,
)
from ..core.doc_category import DOC_CATEGORY_APPS
from ..core.federation import federated_entity, resolve_federation_references
@@ -240,18 +234,12 @@ class AppManifestWebhook(BaseObjectType):
class AppManifestRequiredSaleorVersion(BaseObjectType):
constraint = graphene.String(
+ description="Required Saleor version as semver range.",
required=True,
- description=(
- "Required Saleor version as semver range." + ADDED_IN_313 + PREVIEW_FEATURE
- ),
)
satisfied = graphene.Boolean(
+ description=("Informs if the Saleor version matches the required one."),
required=True,
- description=(
- "Informs if the Saleor version matches the required one."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- ),
)
class Meta:
@@ -261,17 +249,13 @@ class AppManifestRequiredSaleorVersion(BaseObjectType):
class AppManifestBrandLogo(BaseObjectType):
default = IconThumbnailField(
graphene.String,
+ description="Data URL with a base64 encoded logo image.",
required=True,
- description="Data URL with a base64 encoded logo image."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
)
class Meta:
doc_category = DOC_CATEGORY_APPS
- description = (
- "Represents the app's manifest brand data." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ description = "Represents the app's manifest brand data."
@staticmethod
def resolve_default(
@@ -301,15 +285,13 @@ class AppManifestBrandLogo(BaseObjectType):
class AppBrandLogo(BaseObjectType):
default = IconThumbnailField(
graphene.String,
+ description="URL to the default logo image.",
required=True,
- description="URL to the default logo image." + ADDED_IN_314 + PREVIEW_FEATURE,
)
class Meta:
doc_category = DOC_CATEGORY_APPS
- description = (
- "Represents the app's brand logo data." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ description = "Represents the app's brand logo data."
@staticmethod
def resolve_default(
@@ -353,13 +335,11 @@ class AppBrand(BaseObjectType):
logo = graphene.Field(
AppBrandLogo,
required=True,
- description="App's logos details." + ADDED_IN_314 + PREVIEW_FEATURE,
+ description="App's logos details.",
)
class Meta:
- description = (
- "Represents the app's brand data." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ description = "Represents the app's brand data."
doc_category = DOC_CATEGORY_APPS
@staticmethod
@@ -372,14 +352,12 @@ class AppBrand(BaseObjectType):
class AppManifestBrand(BaseObjectType):
logo = graphene.Field(
AppManifestBrandLogo,
+ description="App's logos details.",
required=True,
- description="App's logos details." + ADDED_IN_314 + PREVIEW_FEATURE,
)
class Meta:
- description = (
- "Represents the app's manifest brand data." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ description = "Represents the app's manifest brand data."
doc_category = DOC_CATEGORY_APPS
@@ -430,29 +408,22 @@ class Manifest(BaseObjectType):
)
webhooks = NonNullList(
AppManifestWebhook,
- description="List of the app's webhooks." + ADDED_IN_35,
+ description="List of the app's webhooks.",
required=True,
)
audience = graphene.String(
description=(
"The audience that will be included in all JWT tokens for the app."
- + ADDED_IN_38
)
)
required_saleor_version = graphene.Field(
AppManifestRequiredSaleorVersion,
- description=(
- "Determines the app's required Saleor version as semver range."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- ),
- )
- author = graphene.String(
- description=("The App's author name." + ADDED_IN_313 + PREVIEW_FEATURE)
+ description="Determines the app's required Saleor version as semver range.",
)
+ author = graphene.String(description="The App's author name.")
brand = graphene.Field(
AppManifestBrand,
- description="App's brand data." + ADDED_IN_314 + PREVIEW_FEATURE,
+ description="App's brand data.",
)
class Meta:
@@ -540,23 +511,19 @@ class App(ModelObjectType[models.App]):
)
app_url = graphene.String(description="URL to iframe with the app.")
manifest_url = graphene.String(
- description="URL to manifest used during app's installation." + ADDED_IN_35
+ description="URL to manifest used during app's installation."
)
version = graphene.String(description="Version number of the app.")
access_token = graphene.String(
description="JWT token used to authenticate by third-party app."
)
- author = graphene.String(
- description=("The App's author name." + ADDED_IN_313 + PREVIEW_FEATURE)
- )
+ author = graphene.String(description="The App's author name.")
extensions = NonNullList(
AppExtension,
- description="App's dashboard extensions." + ADDED_IN_31,
+ description="App's dashboard extensions.",
required=True,
)
- brand = graphene.Field(
- AppBrand, description="App's brand data." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ brand = graphene.Field(AppBrand, description="App's brand data.")
class Meta:
description = "Represents app data."
@@ -645,9 +612,7 @@ class AppInstallation(ModelObjectType[models.AppInstallation]):
required=True,
description="The URL address of manifest for the app installation.",
)
- brand = graphene.Field(
- AppBrand, description="App's brand data." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ brand = graphene.Field(AppBrand, description="App's brand data.")
class Meta:
model = models.AppInstallation
diff --git a/saleor/graphql/attribute/filters.py b/saleor/graphql/attribute/filters.py
index 78d068ff20..8bf0474d64 100644
--- a/saleor/graphql/attribute/filters.py
+++ b/saleor/graphql/attribute/filters.py
@@ -9,7 +9,6 @@ from ...permission.utils import has_one_of_permissions
from ...product import models
from ...product.models import ALL_PRODUCTS_PERMISSIONS
from ..channel.filters import get_channel_slug_from_filter_data
-from ..core.descriptions import ADDED_IN_311, PREVIEW_FEATURE
from ..core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ..core.enums import MeasurementUnitsEnum
from ..core.filters import (
@@ -293,5 +292,5 @@ class AttributeWhere(MetadataWhereFilterBase):
class AttributeWhereInput(WhereInputObjectType):
class Meta:
filterset_class = AttributeWhere
- description = "Where filtering options." + ADDED_IN_311 + PREVIEW_FEATURE
+ description = "Where filtering options."
doc_category = DOC_CATEGORY_ATTRIBUTES
diff --git a/saleor/graphql/attribute/mutations/attribute_bulk_create.py b/saleor/graphql/attribute/mutations/attribute_bulk_create.py
index df310557b0..ce3876acb9 100644
--- a/saleor/graphql/attribute/mutations/attribute_bulk_create.py
+++ b/saleor/graphql/attribute/mutations/attribute_bulk_create.py
@@ -14,7 +14,6 @@ from ....core.utils import prepare_unique_slug
from ....permission.enums import PageTypePermissions, ProductTypePermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ...core.enums import ErrorPolicyEnum
from ...core.mutations import BaseMutation, ModelMutation
@@ -233,7 +232,7 @@ class AttributeBulkCreate(BaseMutation):
)
class Meta:
- description = "Creates attributes." + ADDED_IN_315 + PREVIEW_FEATURE
+ description = "Creates attributes."
doc_category = DOC_CATEGORY_ATTRIBUTES
error_type_class = AttributeBulkCreateError
webhook_events_info = [
diff --git a/saleor/graphql/attribute/mutations/attribute_bulk_update.py b/saleor/graphql/attribute/mutations/attribute_bulk_update.py
index b2754ec340..82a5d1544d 100644
--- a/saleor/graphql/attribute/mutations/attribute_bulk_update.py
+++ b/saleor/graphql/attribute/mutations/attribute_bulk_update.py
@@ -15,7 +15,6 @@ from ....core.tracing import traced_atomic_transaction
from ....permission.enums import PageTypePermissions, ProductTypePermissions
from ....webhook.utils import get_webhooks_for_event
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ...core.enums import ErrorPolicyEnum
from ...core.mutations import BaseMutation, ModelMutation
@@ -99,7 +98,7 @@ class AttributeBulkUpdate(BaseMutation):
)
class Meta:
- description = "Updates attributes." + ADDED_IN_315 + PREVIEW_FEATURE
+ description = "Updates attributes."
doc_category = DOC_CATEGORY_ATTRIBUTES
error_type_class = AttributeBulkUpdateError
webhook_events_info = [
diff --git a/saleor/graphql/attribute/mutations/attribute_create.py b/saleor/graphql/attribute/mutations/attribute_create.py
index 8fc1474f10..96373ad7fb 100644
--- a/saleor/graphql/attribute/mutations/attribute_create.py
+++ b/saleor/graphql/attribute/mutations/attribute_create.py
@@ -10,7 +10,7 @@ from ....core.exceptions import PermissionDenied
from ....permission.enums import PageTypePermissions, ProductTypePermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310, DEPRECATED_IN_3X_INPUT
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ...core.enums import MeasurementUnitsEnum
from ...core.fields import JSONString
@@ -44,7 +44,7 @@ class AttributeValueInput(BaseInputObjectType):
)
content_type = graphene.String(required=False, description="File content type.")
external_reference = graphene.String(
- description="External ID of this attribute value." + ADDED_IN_310,
+ description="External ID of this attribute value.",
required=False,
)
@@ -93,7 +93,7 @@ class AttributeCreateInput(BaseInputObjectType):
description=AttributeDescriptions.AVAILABLE_IN_GRID + DEPRECATED_IN_3X_INPUT,
)
external_reference = graphene.String(
- description="External ID of this attribute." + ADDED_IN_310, required=False
+ description="External ID of this attribute.", required=False
)
class Meta:
diff --git a/saleor/graphql/attribute/mutations/attribute_delete.py b/saleor/graphql/attribute/mutations/attribute_delete.py
index fb6e083e20..b47f783b67 100644
--- a/saleor/graphql/attribute/mutations/attribute_delete.py
+++ b/saleor/graphql/attribute/mutations/attribute_delete.py
@@ -4,7 +4,6 @@ from ....attribute import models as models
from ....permission.enums import ProductTypePermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310
from ...core.mutations import ModelDeleteMutation, ModelWithExtRefMutation
from ...core.types import AttributeError
from ...core.utils import WebhookEventInfo
@@ -17,7 +16,7 @@ class AttributeDelete(ModelDeleteMutation, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of an attribute to delete.")
external_reference = graphene.String(
required=False,
- description=f"External ID of an attribute to delete. {ADDED_IN_310}",
+ description="External ID of an attribute to delete.",
)
class Meta:
diff --git a/saleor/graphql/attribute/mutations/attribute_update.py b/saleor/graphql/attribute/mutations/attribute_update.py
index f643d53ef2..312d154f1c 100644
--- a/saleor/graphql/attribute/mutations/attribute_update.py
+++ b/saleor/graphql/attribute/mutations/attribute_update.py
@@ -6,7 +6,7 @@ from ....attribute.error_codes import AttributeErrorCode
from ....permission.enums import ProductTypePermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310, DEPRECATED_IN_3X_INPUT
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ...core.enums import MeasurementUnitsEnum
from ...core.mutations import ModelWithExtRefMutation
@@ -64,7 +64,7 @@ class AttributeUpdateInput(BaseInputObjectType):
description=AttributeDescriptions.AVAILABLE_IN_GRID + DEPRECATED_IN_3X_INPUT,
)
external_reference = graphene.String(
- description="External ID of this product." + ADDED_IN_310, required=False
+ description="External ID of this product.", required=False
)
class Meta:
@@ -88,7 +88,7 @@ class AttributeUpdate(AttributeMixin, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of an attribute to update.")
external_reference = graphene.String(
required=False,
- description=f"External ID of an attribute to update. {ADDED_IN_310}",
+ description="External ID of an attribute to update.",
)
input = AttributeUpdateInput(
required=True, description="Fields required to update an attribute."
diff --git a/saleor/graphql/attribute/mutations/attribute_value_delete.py b/saleor/graphql/attribute/mutations/attribute_value_delete.py
index f92141774f..38666e2671 100644
--- a/saleor/graphql/attribute/mutations/attribute_value_delete.py
+++ b/saleor/graphql/attribute/mutations/attribute_value_delete.py
@@ -6,7 +6,6 @@ from ....permission.enums import ProductTypePermissions
from ....product import models as product_models
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310
from ...core.mutations import ModelDeleteMutation, ModelWithExtRefMutation
from ...core.types import AttributeError
from ...core.utils import WebhookEventInfo
@@ -21,7 +20,7 @@ class AttributeValueDelete(ModelDeleteMutation, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of a value to delete.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a value to delete. {ADDED_IN_310}",
+ description="External ID of a value to delete.",
)
class Meta:
diff --git a/saleor/graphql/attribute/mutations/attribute_value_update.py b/saleor/graphql/attribute/mutations/attribute_value_update.py
index 9a895758fb..10dec7e098 100644
--- a/saleor/graphql/attribute/mutations/attribute_value_update.py
+++ b/saleor/graphql/attribute/mutations/attribute_value_update.py
@@ -7,7 +7,6 @@ from ....permission.enums import ProductTypePermissions
from ....product import models as product_models
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310
from ...core.mutations import ModelWithExtRefMutation
from ...core.types import AttributeError
from ...core.utils import WebhookEventInfo
@@ -47,7 +46,7 @@ class AttributeValueUpdate(AttributeValueCreate, ModelWithExtRefMutation):
)
external_reference = graphene.String(
required=False,
- description=f"External ID of an AttributeValue to update. {ADDED_IN_310}",
+ description="External ID of an AttributeValue to update.",
)
input = AttributeValueUpdateInput(
required=True, description="Fields required to update an AttributeValue."
diff --git a/saleor/graphql/attribute/schema.py b/saleor/graphql/attribute/schema.py
index 2682f036c5..748d54ad8e 100644
--- a/saleor/graphql/attribute/schema.py
+++ b/saleor/graphql/attribute/schema.py
@@ -3,7 +3,6 @@ import graphene
from ...attribute import models
from ..core import ResolveInfo
from ..core.connection import create_connection_slice, filter_connection_queryset
-from ..core.descriptions import ADDED_IN_310, ADDED_IN_311, PREVIEW_FEATURE
from ..core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ..core.fields import BaseField, FilterConnectionField
from ..core.utils.resolvers import resolve_by_global_id_slug_or_ext_ref
@@ -36,12 +35,8 @@ class AttributeQueries(graphene.ObjectType):
AttributeCountableConnection,
description="List of the shop's attributes.",
filter=AttributeFilterInput(description="Filtering options for attributes."),
- where=AttributeWhereInput(
- description="Filtering options for attributes." + ADDED_IN_311
- ),
- search=graphene.String(
- description="Search attributes." + ADDED_IN_311 + PREVIEW_FEATURE
- ),
+ where=AttributeWhereInput(description="Filtering options for attributes."),
+ search=graphene.String(description="Search attributes."),
sort_by=AttributeSortingInput(description="Sorting options for attributes."),
channel=graphene.String(
description="Slug of a channel for which the data should be returned."
@@ -53,7 +48,7 @@ class AttributeQueries(graphene.ObjectType):
id=graphene.Argument(graphene.ID, description="ID of the attribute."),
slug=graphene.Argument(graphene.String, description="Slug of the attribute."),
external_reference=graphene.Argument(
- graphene.String, description=f"External ID of the attribute. {ADDED_IN_310}"
+ graphene.String, description="External ID of the attribute."
),
description="Look up an attribute by ID, slug or external reference.",
doc_category=DOC_CATEGORY_ATTRIBUTES,
diff --git a/saleor/graphql/attribute/types.py b/saleor/graphql/attribute/types.py
index f66ba98744..5384a3d74b 100644
--- a/saleor/graphql/attribute/types.py
+++ b/saleor/graphql/attribute/types.py
@@ -18,10 +18,6 @@ from ..core.connection import (
)
from ..core.context import get_database_connection_name
from ..core.descriptions import (
- ADDED_IN_31,
- ADDED_IN_39,
- ADDED_IN_310,
- ADDED_IN_314,
DEPRECATED_IN_3X_FIELD,
)
from ..core.doc_category import DOC_CATEGORY_ATTRIBUTES
@@ -77,7 +73,7 @@ class AttributeValue(ModelObjectType[models.AttributeValue]):
description=AttributeValueDescriptions.DATE_TIME, required=False
)
external_reference = graphene.String(
- description=f"External ID of this attribute value. {ADDED_IN_310}",
+ description="External ID of this attribute value.",
required=False,
)
@@ -258,7 +254,7 @@ class Attribute(ModelObjectType[models.Attribute]):
),
)
external_reference = graphene.String(
- description=f"External ID of this attribute. {ADDED_IN_310}",
+ description="External ID of this attribute.",
required=False,
)
@@ -365,7 +361,6 @@ class AssignedVariantAttribute(BaseObjectType):
class Meta:
description = (
"Represents assigned attribute to variant with variant selection attached."
- + ADDED_IN_31
)
doc_category = DOC_CATEGORY_ATTRIBUTES
@@ -417,8 +412,7 @@ class AttributeInput(BaseInputObjectType):
class AttributeValueSelectableTypeInput(BaseInputObjectType):
id = graphene.ID(required=False, description="ID of an attribute value.")
external_reference = graphene.String(
- required=False,
- description="External reference of an attribute value." + ADDED_IN_314,
+ required=False, description="External reference of an attribute value."
)
value = graphene.String(
required=False,
@@ -437,7 +431,7 @@ class AttributeValueSelectableTypeInput(BaseInputObjectType):
"3. If value is provided, then attribute value will be resolved by value. "
"If this attribute value doesn't exist, then it will be created.\n"
"4. If externalReference and value is provided then "
- "new attribute value will be created." + ADDED_IN_39
+ "new attribute value will be created."
)
doc_category = DOC_CATEGORY_ATTRIBUTES
@@ -445,7 +439,7 @@ class AttributeValueSelectableTypeInput(BaseInputObjectType):
class AttributeValueInput(BaseInputObjectType):
id = graphene.ID(description="ID of the selected attribute.", required=False)
external_reference = graphene.String(
- description="External ID of this attribute." + ADDED_IN_314, required=False
+ description="External ID of this attribute.", required=False
)
values = NonNullList(
graphene.String,
@@ -458,20 +452,20 @@ class AttributeValueInput(BaseInputObjectType):
)
dropdown = AttributeValueSelectableTypeInput(
required=False,
- description="Attribute value ID or external reference." + ADDED_IN_39,
+ description="Attribute value ID or external reference.",
)
swatch = AttributeValueSelectableTypeInput(
required=False,
- description="Attribute value ID or external reference." + ADDED_IN_39,
+ description="Attribute value ID or external reference.",
)
multiselect = NonNullList(
AttributeValueSelectableTypeInput,
required=False,
- description="List of attribute value IDs or external references." + ADDED_IN_39,
+ description="List of attribute value IDs or external references.",
)
numeric = graphene.String(
required=False,
- description="Numeric value of an attribute." + ADDED_IN_39,
+ description="Numeric value of an attribute.",
)
file = graphene.String(
required=False,
diff --git a/saleor/graphql/channel/mutations/channel_create.py b/saleor/graphql/channel/mutations/channel_create.py
index 023ab69610..bb410e6187 100644
--- a/saleor/graphql/channel/mutations/channel_create.py
+++ b/saleor/graphql/channel/mutations/channel_create.py
@@ -9,14 +9,6 @@ from ....webhook.event_types import WebhookEventAsyncType
from ...account.enums import CountryCodeEnum
from ...core import ResolveInfo
from ...core.descriptions import (
- ADDED_IN_31,
- ADDED_IN_35,
- ADDED_IN_37,
- ADDED_IN_312,
- ADDED_IN_313,
- ADDED_IN_314,
- ADDED_IN_315,
- ADDED_IN_316,
ADDED_IN_318,
ADDED_IN_320,
DEPRECATED_IN_3X_INPUT,
@@ -73,7 +65,6 @@ class CheckoutSettingsInput(BaseInputObjectType):
"Some of the `problems` can block the finalizing checkout process. "
"The legacy flow will be removed in Saleor 4.0. "
"The flow with `checkout.problems` will be the default one. "
- + ADDED_IN_315
+ DEPRECATED_IN_3X_INPUT
)
)
@@ -111,14 +102,14 @@ class OrderSettingsInput(BaseInputObjectType):
description=(
"Expiration time in minutes. "
"Default null - means do not expire any orders. "
- "Enter 0 or null to disable." + ADDED_IN_313 + PREVIEW_FEATURE
+ "Enter 0 or null to disable."
),
)
delete_expired_orders_after = Day(
required=False,
description=(
"The time in days after expired orders will be deleted."
- "Allowed range is from 1 to 120." + ADDED_IN_314 + PREVIEW_FEATURE
+ "Allowed range is from 1 to 120."
),
)
mark_as_paid_strategy = MarkAsPaidStrategyEnum(
@@ -129,15 +120,13 @@ class OrderSettingsInput(BaseInputObjectType):
"and attached to the order when it's manually marked as paid."
"\n`PAYMENT_FLOW` - [default option] creates the `Payment` object."
"\n`TRANSACTION_FLOW` - creates the `TransactionItem` object."
- + ADDED_IN_313
- + PREVIEW_FEATURE
),
)
allow_unpaid_orders = graphene.Boolean(
required=False,
description=(
"Determine if it is possible to place unpaid order by calling "
- "`checkoutComplete` mutation." + ADDED_IN_315 + PREVIEW_FEATURE
+ "`checkoutComplete` mutation."
),
)
include_draft_order_in_voucher_usage = graphene.Boolean(
@@ -162,7 +151,7 @@ class PaymentSettingsInput(BaseInputObjectType):
description=(
"Determine the transaction flow strategy to be used. "
"Include the selected option in the payload sent to the payment app, as a "
- "requested action for the transaction." + ADDED_IN_316 + PREVIEW_FEATURE
+ "requested action for the transaction."
),
)
@@ -176,7 +165,7 @@ class ChannelInput(BaseInputObjectType):
)
stock_settings = graphene.Field(
StockSettingsInput,
- description=("The channel stock settings." + ADDED_IN_37),
+ description="The channel stock settings.",
required=False,
)
add_shipping_zones = NonNullList(
@@ -186,33 +175,33 @@ class ChannelInput(BaseInputObjectType):
)
add_warehouses = NonNullList(
graphene.ID,
- description="List of warehouses to assign to the channel." + ADDED_IN_35,
+ description="List of warehouses to assign to the channel.",
required=False,
)
order_settings = graphene.Field(
OrderSettingsInput,
- description="The channel order settings" + ADDED_IN_312,
+ description="The channel order settings",
required=False,
)
metadata = common_types.NonNullList(
MetadataInput,
- description="Channel public metadata." + ADDED_IN_315,
+ description="Channel public metadata.",
required=False,
)
private_metadata = common_types.NonNullList(
MetadataInput,
- description="Channel private metadata." + ADDED_IN_315,
+ description="Channel private metadata.",
required=False,
)
checkout_settings = graphene.Field(
CheckoutSettingsInput,
- description="The channel checkout settings" + ADDED_IN_315 + PREVIEW_FEATURE,
+ description="The channel checkout settings",
required=False,
)
payment_settings = graphene.Field(
PaymentSettingsInput,
- description="The channel payment settings" + ADDED_IN_316 + PREVIEW_FEATURE,
+ description="The channel payment settings",
required=False,
)
@@ -230,7 +219,7 @@ class ChannelCreateInput(ChannelInput):
description=(
"Default country for the channel. Default country can be "
"used in checkout to determine the stock quantities or calculate taxes "
- "when the country was not explicitly provided." + ADDED_IN_31
+ "when the country was not explicitly provided."
),
required=True,
)
diff --git a/saleor/graphql/channel/mutations/channel_reorder_warehouses.py b/saleor/graphql/channel/mutations/channel_reorder_warehouses.py
index e6877f07d2..bdbb52cb55 100644
--- a/saleor/graphql/channel/mutations/channel_reorder_warehouses.py
+++ b/saleor/graphql/channel/mutations/channel_reorder_warehouses.py
@@ -7,7 +7,6 @@ from ....channel.error_codes import ChannelErrorCode
from ....core.tracing import traced_atomic_transaction
from ....permission.enums import ChannelPermissions
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_37
from ...core.doc_category import DOC_CATEGORY_CHANNELS
from ...core.inputs import ReorderInput
from ...core.mutations import BaseMutation
@@ -36,7 +35,7 @@ class ChannelReorderWarehouses(BaseMutation):
)
class Meta:
- description = "Reorder the warehouses of a channel." + ADDED_IN_37
+ description = "Reorder the warehouses of a channel."
doc_category = DOC_CATEGORY_CHANNELS
permissions = (ChannelPermissions.MANAGE_CHANNELS,)
error_type_class = ChannelError
diff --git a/saleor/graphql/channel/mutations/channel_update.py b/saleor/graphql/channel/mutations/channel_update.py
index a65b5bbb9d..6a3af37d95 100644
--- a/saleor/graphql/channel/mutations/channel_update.py
+++ b/saleor/graphql/channel/mutations/channel_update.py
@@ -21,7 +21,6 @@ from ....shipping.tasks import (
from ....webhook.event_types import WebhookEventAsyncType
from ...account.enums import CountryCodeEnum
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31, ADDED_IN_35
from ...core.doc_category import DOC_CATEGORY_CHANNELS
from ...core.mutations import ModelMutation
from ...core.types import ChannelError, NonNullList
@@ -45,7 +44,7 @@ class ChannelUpdateInput(ChannelInput):
description=(
"Default country for the channel. Default country can be "
"used in checkout to determine the stock quantities or calculate taxes "
- "when the country was not explicitly provided." + ADDED_IN_31
+ "when the country was not explicitly provided."
)
)
remove_shipping_zones = NonNullList(
@@ -55,7 +54,7 @@ class ChannelUpdateInput(ChannelInput):
)
remove_warehouses = NonNullList(
graphene.ID,
- description="List of warehouses to unassign from the channel." + ADDED_IN_35,
+ description="List of warehouses to unassign from the channel.",
required=False,
)
diff --git a/saleor/graphql/core/descriptions.py b/saleor/graphql/core/descriptions.py
index db1038b124..3893371b53 100644
--- a/saleor/graphql/core/descriptions.py
+++ b/saleor/graphql/core/descriptions.py
@@ -18,23 +18,6 @@ DEPRECATED_IN_3X_TYPE = "\n\nDEPRECATED: this type will be removed in Saleor 4.0
DEPRECATED_IN_3X_EVENT = "\n\nDEPRECATED: this event will be removed in Saleor 4.0."
-ADDED_IN_31 = "\n\nAdded in Saleor 3.1."
-ADDED_IN_32 = "\n\nAdded in Saleor 3.2."
-ADDED_IN_33 = "\n\nAdded in Saleor 3.3."
-ADDED_IN_34 = "\n\nAdded in Saleor 3.4."
-ADDED_IN_35 = "\n\nAdded in Saleor 3.5."
-ADDED_IN_36 = "\n\nAdded in Saleor 3.6."
-ADDED_IN_37 = "\n\nAdded in Saleor 3.7."
-ADDED_IN_38 = "\n\nAdded in Saleor 3.8."
-ADDED_IN_39 = "\n\nAdded in Saleor 3.9."
-ADDED_IN_310 = "\n\nAdded in Saleor 3.10."
-ADDED_IN_311 = "\n\nAdded in Saleor 3.11."
-ADDED_IN_312 = "\n\nAdded in Saleor 3.12."
-ADDED_IN_313 = "\n\nAdded in Saleor 3.13."
-ADDED_IN_314 = "\n\nAdded in Saleor 3.14."
-ADDED_IN_315 = "\n\nAdded in Saleor 3.15."
-ADDED_IN_316 = "\n\nAdded in Saleor 3.16."
-ADDED_IN_317 = "\n\nAdded in Saleor 3.17."
ADDED_IN_318 = "\n\nAdded in Saleor 3.18."
ADDED_IN_319 = "\n\nAdded in Saleor 3.19."
ADDED_IN_320 = "\n\nAdded in Saleor 3.20."
diff --git a/saleor/graphql/core/types/common.py b/saleor/graphql/core/types/common.py
index fc205be579..ed7a60d33b 100644
--- a/saleor/graphql/core/types/common.py
+++ b/saleor/graphql/core/types/common.py
@@ -27,12 +27,8 @@ from ...core.doc_category import (
)
from ...core.scalars import DateTime, Decimal
from ..descriptions import (
- ADDED_IN_36,
- ADDED_IN_312,
- ADDED_IN_314,
ADDED_IN_318,
DEPRECATED_IN_3X_FIELD,
- PREVIEW_FEATURE,
)
from ..enums import (
AccountErrorCode,
@@ -532,7 +528,7 @@ class ProductVariantBulkError(Error):
path = graphene.String(
description=(
"Path to field that caused the error. A value of `null` indicates that "
- "the error isn't associated with a particular field." + ADDED_IN_314
+ "the error isn't associated with a particular field."
),
required=False,
)
@@ -553,12 +549,12 @@ class ProductVariantBulkError(Error):
)
stocks = NonNullList(
graphene.ID,
- description="List of stocks IDs which causes the error." + ADDED_IN_312,
+ description="List of stocks IDs which causes the error.",
required=False,
)
channels = NonNullList(
graphene.ID,
- description="List of channel IDs which causes the error." + ADDED_IN_312,
+ description="List of channel IDs which causes the error.",
required=False,
)
channel_listings = NonNullList(
@@ -967,7 +963,7 @@ class ThumbnailField(graphene.Field):
default_value="ORIGINAL",
description=(
"The format of the image. When not provided, format of the original "
- "image will be used." + ADDED_IN_36
+ "image will be used."
),
)
@@ -982,7 +978,7 @@ class IconThumbnailField(ThumbnailField):
default_value="ORIGINAL",
description=(
"The format of the image. When not provided, format of the original "
- "image will be used." + ADDED_IN_314 + PREVIEW_FEATURE
+ "image will be used."
),
)
diff --git a/saleor/graphql/core/types/filter_input.py b/saleor/graphql/core/types/filter_input.py
index d8e7726ddb..d4af7adb84 100644
--- a/saleor/graphql/core/types/filter_input.py
+++ b/saleor/graphql/core/types/filter_input.py
@@ -8,12 +8,7 @@ from graphene.types.inputobjecttype import InputObjectTypeOptions
from graphene.types.utils import yank_fields_from_attrs
from ...core.scalars import DateTime, Decimal
-from ..descriptions import (
- ADDED_IN_311,
- ADDED_IN_314,
- DEPRECATED_IN_3X_INPUT,
- PREVIEW_FEATURE,
-)
+from ..descriptions import DEPRECATED_IN_3X_INPUT
from ..filters import GlobalIDFilter, GlobalIDMultipleChoiceFilter
from ..scalars import Date
from . import NonNullList
@@ -167,11 +162,7 @@ class StringFilterInput(graphene.InputObjectType):
)
class Meta:
- description = (
- "Define the filtering options for string fields."
- + ADDED_IN_311
- + PREVIEW_FEATURE
- )
+ description = "Define the filtering options for string fields."
class IntFilterInput(graphene.InputObjectType):
@@ -182,11 +173,7 @@ class IntFilterInput(graphene.InputObjectType):
range = IntRangeInput(description=FilterInputDescriptions.RANGE, required=False)
class Meta:
- description = (
- "Define the filtering options for integer fields."
- + ADDED_IN_311
- + PREVIEW_FEATURE
- )
+ description = "Define the filtering options for integer fields."
class DecimalFilterInput(graphene.InputObjectType):
@@ -197,11 +184,7 @@ class DecimalFilterInput(graphene.InputObjectType):
range = DecimalRangeInput(description=FilterInputDescriptions.RANGE, required=False)
class Meta:
- description = (
- "Define the filtering options for decimal fields."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- )
+ description = "Define the filtering options for decimal fields."
class DateFilterInput(graphene.InputObjectType):
@@ -212,11 +195,7 @@ class DateFilterInput(graphene.InputObjectType):
range = DateRangeInput(description=FilterInputDescriptions.RANGE, required=False)
class Meta:
- description = (
- "Define the filtering options for date fields."
- + ADDED_IN_311
- + PREVIEW_FEATURE
- )
+ description = "Define the filtering options for date fields."
class DateTimeFilterInput(graphene.InputObjectType):
@@ -231,11 +210,7 @@ class DateTimeFilterInput(graphene.InputObjectType):
)
class Meta:
- description = (
- "Define the filtering options for date time fields."
- + ADDED_IN_311
- + PREVIEW_FEATURE
- )
+ description = "Define the filtering options for date time fields."
class GlobalIDFilterInput(graphene.InputObjectType):
@@ -247,8 +222,4 @@ class GlobalIDFilterInput(graphene.InputObjectType):
)
class Meta:
- description = (
- "Define the filtering options for foreign key fields."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- )
+ description = "Define the filtering options for foreign key fields."
diff --git a/saleor/graphql/core/types/model.py b/saleor/graphql/core/types/model.py
index b16cfb478f..7d10fe86a8 100644
--- a/saleor/graphql/core/types/model.py
+++ b/saleor/graphql/core/types/model.py
@@ -1,11 +1,9 @@
-import copy
from typing import Generic, Optional, TypeVar
from uuid import UUID
from django.db.models import Model, Q
from graphene.types.objecttype import ObjectTypeOptions
-from ..descriptions import ADDED_IN_33
from ..doc_category import DOC_CATEGORY_MAP
from . import TYPES_WITH_DOUBLE_ID_AVAILABLE
from .base import BaseObjectType
@@ -13,7 +11,6 @@ from .base import BaseObjectType
class ModelObjectOptions(ObjectTypeOptions):
model = None
- metadata_since = None
MT = TypeVar("MT", bound=Model)
@@ -47,7 +44,6 @@ class ModelObjectType(Generic[MT], BaseObjectType):
model = options.pop("model")
_meta.model = model
- _meta.metadata_since = options.pop("metadata_since", None)
doc_category_key = f"{model._meta.app_label}.{model.__name__}"
if doc_category not in options:
@@ -63,34 +59,6 @@ class ModelObjectType(Generic[MT], BaseObjectType):
**options,
)
- if "ObjectWithMetadata" in {interface._meta.name for interface in interfaces}:
- cls.update_meta_fields_descriptions(_meta.metadata_since)
-
- @classmethod
- def update_meta_fields_descriptions(cls, metadata_since):
- """Set correct `ADDED_IN_X` label for meta fields.
-
- Default metadata label in Added in Saleor 3.3.
- """
- added_label = metadata_since or ADDED_IN_33
- for field_name, field in cls._meta.fields.items():
- if field_name in [
- "private_metafield",
- "private_metafields",
- "metafield",
- "metafields",
- ]:
- # each meta fields had reference to the same field so deepcopy
- # is required, otherwise the description is changed in each model
- # that inherits the `ObjectWithMetadata` interface
- field = copy.deepcopy(field)
- field.description = field.description + added_label
- cls._meta.fields[field_name] = field
- elif metadata_since and field_name in ["private_metadata", "metadata"]:
- field = copy.deepcopy(field)
- field.description = field.description + metadata_since
- cls._meta.fields[field_name] = field
-
@classmethod
def get_node(cls, _, id) -> Optional[MT]:
model = cls._meta.model
diff --git a/saleor/graphql/csv/mutations/export_gift_cards.py b/saleor/graphql/csv/mutations/export_gift_cards.py
index aed3c664c3..784603ceed 100644
--- a/saleor/graphql/csv/mutations/export_gift_cards.py
+++ b/saleor/graphql/csv/mutations/export_gift_cards.py
@@ -7,7 +7,6 @@ from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_GIFT_CARDS
from ...core.types import BaseInputObjectType, ExportError, NonNullList
from ...core.utils import WebhookEventInfo
@@ -42,7 +41,7 @@ class ExportGiftCards(BaseExportMutation):
)
class Meta:
- description = "Export gift cards to csv file." + ADDED_IN_31
+ description = "Export gift cards to csv file."
doc_category = DOC_CATEGORY_GIFT_CARDS
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
error_type_class = ExportError
diff --git a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_activate.py b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_activate.py
index ea336f40ba..e4fd043852 100644
--- a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_activate.py
+++ b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_activate.py
@@ -10,7 +10,6 @@ from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.mutations import BaseBulkMutation
from ...core.types import GiftCardError, NonNullList
from ...core.utils import WebhookEventInfo
@@ -25,7 +24,7 @@ class GiftCardBulkActivate(BaseBulkMutation):
)
class Meta:
- description = "Activate gift cards." + ADDED_IN_31
+ description = "Activate gift cards."
model = models.GiftCard
object_type = GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_create.py b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_create.py
index 17ae290b6d..a750de4dde 100644
--- a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_create.py
+++ b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_create.py
@@ -14,7 +14,6 @@ from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_GIFT_CARDS
from ...core.mutations import BaseMutation
from ...core.scalars import Date
@@ -63,7 +62,7 @@ class GiftCardBulkCreate(BaseMutation):
)
class Meta:
- description = "Create gift cards." + ADDED_IN_31
+ description = "Create gift cards."
doc_category = DOC_CATEGORY_GIFT_CARDS
model = models.GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_deactivate.py b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_deactivate.py
index 2cbf705198..d3b393610b 100644
--- a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_deactivate.py
+++ b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_deactivate.py
@@ -7,7 +7,6 @@ from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.mutations import BaseBulkMutation
from ...core.types import GiftCardError, NonNullList
from ...core.utils import WebhookEventInfo
@@ -24,7 +23,7 @@ class GiftCardBulkDeactivate(BaseBulkMutation):
)
class Meta:
- description = "Deactivate gift cards." + ADDED_IN_31
+ description = "Deactivate gift cards."
model = models.GiftCard
object_type = GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py
index 6c04c5218f..1f7a28ff07 100644
--- a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py
+++ b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py
@@ -5,7 +5,6 @@ from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.mutations import ModelBulkDeleteMutation
from ...core.types import GiftCardError, NonNullList
from ...core.utils import WebhookEventInfo
@@ -20,7 +19,7 @@ class GiftCardBulkDelete(ModelBulkDeleteMutation):
)
class Meta:
- description = "Delete gift cards." + ADDED_IN_31
+ description = "Delete gift cards."
model = models.GiftCard
object_type = GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/giftcard/mutations/gift_card_add_note.py b/saleor/graphql/giftcard/mutations/gift_card_add_note.py
index abe9f5394f..df0cef2d0c 100644
--- a/saleor/graphql/giftcard/mutations/gift_card_add_note.py
+++ b/saleor/graphql/giftcard/mutations/gift_card_add_note.py
@@ -7,7 +7,6 @@ from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_GIFT_CARDS
from ...core.mutations import BaseMutation
from ...core.types import BaseInputObjectType, GiftCardError
@@ -38,7 +37,7 @@ class GiftCardAddNote(BaseMutation):
)
class Meta:
- description = "Adds note to the gift card." + ADDED_IN_31
+ description = "Adds note to the gift card."
doc_category = DOC_CATEGORY_GIFT_CARDS
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
error_type_class = GiftCardError
diff --git a/saleor/graphql/giftcard/mutations/gift_card_create.py b/saleor/graphql/giftcard/mutations/gift_card_create.py
index 1e8cc4fcda..68b5979005 100644
--- a/saleor/graphql/giftcard/mutations/gift_card_create.py
+++ b/saleor/graphql/giftcard/mutations/gift_card_create.py
@@ -15,7 +15,7 @@ from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31, DEPRECATED_IN_3X_INPUT
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_GIFT_CARDS
from ...core.mutations import ModelMutation
from ...core.scalars import Date
@@ -29,9 +29,9 @@ from ..types import GiftCard
class GiftCardInput(BaseInputObjectType):
add_tags = NonNullList(
graphene.String,
- description="The gift card tags to add." + ADDED_IN_31,
+ description="The gift card tags to add.",
)
- expiry_date = Date(description="The gift card expiry date." + ADDED_IN_31)
+ expiry_date = Date(description="The gift card expiry date.")
# DEPRECATED
start_date = Date(
@@ -59,13 +59,11 @@ class GiftCardCreateInput(GiftCardInput):
description="Email of the customer to whom gift card will be sent.",
)
channel = graphene.String(
- description=(
- "Slug of a channel from which the email should be sent." + ADDED_IN_31
- )
+ description="Slug of a channel from which the email should be sent."
)
is_active = graphene.Boolean(
required=True,
- description=("Determine if gift card is active." + ADDED_IN_31),
+ description="Determine if gift card is active.",
)
code = graphene.String(
required=False,
@@ -74,9 +72,7 @@ class GiftCardCreateInput(GiftCardInput):
f"{DEPRECATED_IN_3X_INPUT} The code is now auto generated."
),
)
- note = graphene.String(
- description=("The gift card note from the staff member." + ADDED_IN_31)
- )
+ note = graphene.String(description="The gift card note from the staff member.")
class Meta:
doc_category = DOC_CATEGORY_GIFT_CARDS
diff --git a/saleor/graphql/giftcard/mutations/gift_card_delete.py b/saleor/graphql/giftcard/mutations/gift_card_delete.py
index baa9f099b9..6aa3907886 100644
--- a/saleor/graphql/giftcard/mutations/gift_card_delete.py
+++ b/saleor/graphql/giftcard/mutations/gift_card_delete.py
@@ -4,7 +4,6 @@ from ....giftcard import models
from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.mutations import ModelDeleteMutation
from ...core.types import GiftCardError
from ...core.utils import WebhookEventInfo
@@ -17,7 +16,7 @@ class GiftCardDelete(ModelDeleteMutation):
id = graphene.ID(description="ID of the gift card to delete.", required=True)
class Meta:
- description = "Delete gift card." + ADDED_IN_31
+ description = "Delete gift card."
model = models.GiftCard
object_type = GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/giftcard/mutations/gift_card_resend.py b/saleor/graphql/giftcard/mutations/gift_card_resend.py
index 234838112e..82dddcbc61 100644
--- a/saleor/graphql/giftcard/mutations/gift_card_resend.py
+++ b/saleor/graphql/giftcard/mutations/gift_card_resend.py
@@ -9,7 +9,6 @@ from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_GIFT_CARDS
from ...core.mutations import BaseMutation
from ...core.types import BaseInputObjectType, GiftCardError
@@ -42,7 +41,7 @@ class GiftCardResend(BaseMutation):
)
class Meta:
- description = "Resend a gift card." + ADDED_IN_31
+ description = "Resend a gift card."
doc_category = DOC_CATEGORY_GIFT_CARDS
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
error_type_class = GiftCardError
diff --git a/saleor/graphql/giftcard/mutations/gift_card_update.py b/saleor/graphql/giftcard/mutations/gift_card_update.py
index 92512f1440..57a46151a3 100644
--- a/saleor/graphql/giftcard/mutations/gift_card_update.py
+++ b/saleor/graphql/giftcard/mutations/gift_card_update.py
@@ -10,7 +10,6 @@ from ....permission.enums import GiftcardPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_GIFT_CARDS
from ...core.scalars import PositiveDecimal
from ...core.types import GiftCardError, NonNullList
@@ -25,10 +24,10 @@ from .gift_card_create import GiftCardCreate, GiftCardInput
class GiftCardUpdateInput(GiftCardInput):
remove_tags = NonNullList(
graphene.String,
- description="The gift card tags to remove." + ADDED_IN_31,
+ description="The gift card tags to remove.",
)
balance_amount = PositiveDecimal(
- description="The gift card balance amount." + ADDED_IN_31,
+ description="The gift card balance amount.",
required=False,
)
diff --git a/saleor/graphql/invoice/mutations/invoice_create.py b/saleor/graphql/invoice/mutations/invoice_create.py
index 5835885671..c234f8f38b 100644
--- a/saleor/graphql/invoice/mutations/invoice_create.py
+++ b/saleor/graphql/invoice/mutations/invoice_create.py
@@ -8,7 +8,6 @@ from ....order import events as order_events
from ....permission.enums import OrderPermissions
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_314
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import ModelMutation
from ...core.types import BaseInputObjectType, InvoiceError, NonNullList
@@ -22,14 +21,12 @@ class InvoiceCreateInput(BaseInputObjectType):
url = graphene.String(required=True, description="URL of an invoice to download.")
metadata = NonNullList(
MetadataInput,
- description="Fields required to update the invoice metadata." + ADDED_IN_314,
+ description="Fields required to update the invoice metadata.",
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the invoice private metadata." + ADDED_IN_314
- ),
+ description=("Fields required to update the invoice private metadata."),
required=False,
)
diff --git a/saleor/graphql/invoice/mutations/invoice_update.py b/saleor/graphql/invoice/mutations/invoice_update.py
index c93d9c9115..a0d9a8a9bb 100644
--- a/saleor/graphql/invoice/mutations/invoice_update.py
+++ b/saleor/graphql/invoice/mutations/invoice_update.py
@@ -8,7 +8,6 @@ from ....order import events as order_events
from ....permission.enums import OrderPermissions
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_314
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import ModelMutation
from ...core.types import BaseInputObjectType, InvoiceError, NonNullList
@@ -21,14 +20,12 @@ class UpdateInvoiceInput(BaseInputObjectType):
url = graphene.String(description="URL of an invoice to download.")
metadata = NonNullList(
MetadataInput,
- description="Fields required to update the invoice metadata." + ADDED_IN_314,
+ description="Fields required to update the invoice metadata.",
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the invoice private metadata." + ADDED_IN_314
- ),
+ description=("Fields required to update the invoice private metadata."),
required=False,
)
diff --git a/saleor/graphql/notifications/mutations/external_notification_trigger.py b/saleor/graphql/notifications/mutations/external_notification_trigger.py
index 8875888b57..58a8df9969 100644
--- a/saleor/graphql/notifications/mutations/external_notification_trigger.py
+++ b/saleor/graphql/notifications/mutations/external_notification_trigger.py
@@ -12,7 +12,6 @@ from ....core.notification.validation import (
validate_ids_and_get_model_type_and_pks,
)
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.fields import JSONString
from ...core.mutations import BaseMutation
from ...core.types import ExternalNotificationError, NonNullList
@@ -62,7 +61,7 @@ class ExternalNotificationTrigger(BaseMutation):
description = (
"Trigger sending a notification with the notify plugin method. "
"Serializes nodes provided as ids parameter and includes this data in "
- "the notification payload." + ADDED_IN_31
+ "the notification payload."
)
error_type_class = ExternalNotificationError
diff --git a/saleor/graphql/order/bulk_mutations/order_bulk_create.py b/saleor/graphql/order/bulk_mutations/order_bulk_create.py
index 07ba76e79e..fe0df0c4fa 100644
--- a/saleor/graphql/order/bulk_mutations/order_bulk_create.py
+++ b/saleor/graphql/order/bulk_mutations/order_bulk_create.py
@@ -48,7 +48,7 @@ from ....warehouse.models import Stock, Warehouse
from ...account.i18n import I18nMixin
from ...account.types import AddressInput
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_314, ADDED_IN_318, PREVIEW_FEATURE
+from ...core.descriptions import ADDED_IN_318
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.enums import ErrorPolicy, ErrorPolicyEnum, LanguageCodeEnum
from ...core.mutations import BaseMutation
@@ -615,7 +615,7 @@ class OrderBulkCreate(BaseMutation, I18nMixin):
)
class Meta:
- description = "Creates multiple orders." + ADDED_IN_314 + PREVIEW_FEATURE
+ description = "Creates multiple orders."
permissions = (OrderPermissions.MANAGE_ORDERS_IMPORT,)
doc_category = DOC_CATEGORY_ORDERS
error_type_class = OrderBulkCreateError
diff --git a/saleor/graphql/order/mutations/draft_order_create.py b/saleor/graphql/order/mutations/draft_order_create.py
index cf43fa6ccd..0b04b618eb 100644
--- a/saleor/graphql/order/mutations/draft_order_create.py
+++ b/saleor/graphql/order/mutations/draft_order_create.py
@@ -36,12 +36,8 @@ from ...app.dataloaders import get_app_promise
from ...channel.types import Channel
from ...core import ResolveInfo
from ...core.descriptions import (
- ADDED_IN_36,
- ADDED_IN_310,
- ADDED_IN_314,
ADDED_IN_318,
DEPRECATED_IN_3X_FIELD,
- PREVIEW_FEATURE,
)
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import ModelWithRestrictedChannelAccessMutation
@@ -82,7 +78,7 @@ class OrderLineCreateInput(OrderLineInput):
default_value=False,
description=(
"Flag that allow force splitting the same variant into multiple lines "
- "by skipping the matching logic. " + ADDED_IN_36
+ "by skipping the matching logic. "
),
)
price = PositiveDecimal(
@@ -91,8 +87,6 @@ class OrderLineCreateInput(OrderLineInput):
"Custom price of the item."
"When the line with the same variant "
"will be provided multiple times, the last price will be used."
- + ADDED_IN_314
- + PREVIEW_FEATURE
),
)
@@ -132,7 +126,7 @@ class DraftOrderInput(BaseInputObjectType):
),
)
external_reference = graphene.String(
- description="External ID of this order." + ADDED_IN_310, required=False
+ description="External ID of this order.", required=False
)
class Meta:
diff --git a/saleor/graphql/order/mutations/draft_order_delete.py b/saleor/graphql/order/mutations/draft_order_delete.py
index 8d16dc67d4..b88f81d5a0 100644
--- a/saleor/graphql/order/mutations/draft_order_delete.py
+++ b/saleor/graphql/order/mutations/draft_order_delete.py
@@ -10,7 +10,6 @@ from ....order.error_codes import OrderErrorCode
from ....permission.enums import OrderPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310
from ...core.mutations import (
ModelDeleteWithRestrictedChannelAccessMutation,
ModelWithExtRefMutation,
@@ -27,7 +26,7 @@ class DraftOrderDelete(
id = graphene.ID(required=False, description="ID of a product to delete.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a product to delete. {ADDED_IN_310}",
+ description="External ID of a product to delete.",
)
class Meta:
diff --git a/saleor/graphql/order/mutations/draft_order_update.py b/saleor/graphql/order/mutations/draft_order_update.py
index a91821e7e2..050552330a 100644
--- a/saleor/graphql/order/mutations/draft_order_update.py
+++ b/saleor/graphql/order/mutations/draft_order_update.py
@@ -6,7 +6,6 @@ from ....order.error_codes import OrderErrorCode
from ....permission.enums import OrderPermissions
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310
from ...core.mutations import ModelWithExtRefMutation
from ...core.types import OrderError
from ...plugins.dataloaders import get_plugin_manager_promise
@@ -19,7 +18,7 @@ class DraftOrderUpdate(DraftOrderCreate, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of a draft order to update.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a draft order to update. {ADDED_IN_310}",
+ description="External ID of a draft order to update.",
)
input = DraftOrderInput(
required=True, description="Fields required to update an order."
diff --git a/saleor/graphql/order/mutations/fulfillment_approve.py b/saleor/graphql/order/mutations/fulfillment_approve.py
index ccd8abc0ad..d2d22f1bdb 100644
--- a/saleor/graphql/order/mutations/fulfillment_approve.py
+++ b/saleor/graphql/order/mutations/fulfillment_approve.py
@@ -12,7 +12,6 @@ from ....permission.enums import OrderPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import BaseMutation
from ...core.types import OrderError
@@ -38,7 +37,7 @@ class FulfillmentApprove(BaseMutation):
)
class Meta:
- description = "Approve existing fulfillment." + ADDED_IN_31
+ description = "Approve existing fulfillment."
doc_category = DOC_CATEGORY_ORDERS
permissions = (OrderPermissions.MANAGE_ORDERS,)
error_type_class = OrderError
diff --git a/saleor/graphql/order/mutations/order_fulfill.py b/saleor/graphql/order/mutations/order_fulfill.py
index c409c76ff9..6e72f917d9 100644
--- a/saleor/graphql/order/mutations/order_fulfill.py
+++ b/saleor/graphql/order/mutations/order_fulfill.py
@@ -14,7 +14,6 @@ from ....permission.enums import OrderPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_36
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import BaseMutation
from ...core.types import BaseInputObjectType, NonNullList, OrderError
@@ -69,7 +68,7 @@ class OrderFulfillInput(BaseInputObjectType):
default_value=False,
)
tracking_number = graphene.String(
- description="Fulfillment tracking number." + ADDED_IN_36,
+ description="Fulfillment tracking number.",
required=False,
)
diff --git a/saleor/graphql/order/mutations/order_grant_refund_create.py b/saleor/graphql/order/mutations/order_grant_refund_create.py
index 8b8440bdbf..bfae4e1803 100644
--- a/saleor/graphql/order/mutations/order_grant_refund_create.py
+++ b/saleor/graphql/order/mutations/order_grant_refund_create.py
@@ -10,8 +10,6 @@ from ....order.utils import update_order_charge_data
from ....permission.enums import OrderPermissions
from ...core import ResolveInfo
from ...core.descriptions import (
- ADDED_IN_313,
- ADDED_IN_315,
ADDED_IN_320,
PREVIEW_FEATURE,
)
@@ -44,9 +42,7 @@ class OrderGrantRefundCreateError(Error):
code = OrderGrantRefundCreateErrorCode(description="The error code.", required=True)
lines = NonNullList(
OrderGrantRefundCreateLineError,
- description="List of lines which cause the error."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="List of lines which cause the error.",
required=False,
)
@@ -76,15 +72,11 @@ class OrderGrantRefundCreateInput(BaseInputObjectType):
reason = graphene.String(description="Reason of the granted refund.")
lines = NonNullList(
OrderGrantRefundCreateLineInput,
- description="Lines to assign to granted refund."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="Lines to assign to granted refund.",
required=False,
)
grant_refund_for_shipping = graphene.Boolean(
- description="Determine if granted refund should include shipping costs."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="Determine if granted refund should include shipping costs.",
required=False,
)
transaction_id = graphene.ID(
@@ -122,9 +114,7 @@ class OrderGrantRefundCreate(BaseMutation):
)
class Meta:
- description = (
- "Adds granted refund to the order." + ADDED_IN_313 + PREVIEW_FEATURE
- )
+ description = "Adds granted refund to the order."
permissions = (OrderPermissions.MANAGE_ORDERS,)
error_type_class = OrderGrantRefundCreateError
doc_category = DOC_CATEGORY_ORDERS
diff --git a/saleor/graphql/order/mutations/order_grant_refund_update.py b/saleor/graphql/order/mutations/order_grant_refund_update.py
index d4fdebb6af..527c0d7ff3 100644
--- a/saleor/graphql/order/mutations/order_grant_refund_update.py
+++ b/saleor/graphql/order/mutations/order_grant_refund_update.py
@@ -10,8 +10,6 @@ from ....order.utils import update_order_charge_data
from ....permission.enums import OrderPermissions
from ...core import ResolveInfo
from ...core.descriptions import (
- ADDED_IN_313,
- ADDED_IN_315,
ADDED_IN_320,
PREVIEW_FEATURE,
)
@@ -46,16 +44,12 @@ class OrderGrantRefundUpdateError(Error):
add_lines = NonNullList(
OrderGrantRefundUpdateLineError,
- description="List of lines to add which cause the error."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="List of lines to add which cause the error.",
required=False,
)
remove_lines = NonNullList(
OrderGrantRefundUpdateLineError,
- description="List of lines to remove which cause the error."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="List of lines to remove which cause the error.",
required=False,
)
@@ -85,22 +79,16 @@ class OrderGrantRefundUpdateInput(BaseInputObjectType):
reason = graphene.String(description="Reason of the granted refund.")
add_lines = NonNullList(
OrderGrantRefundUpdateLineAddInput,
- description="Lines to assign to granted refund."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="Lines to assign to granted refund.",
required=False,
)
remove_lines = NonNullList(
graphene.ID,
- description="Lines to remove from granted refund."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="Lines to remove from granted refund.",
required=False,
)
grant_refund_for_shipping = graphene.Boolean(
- description="Determine if granted refund should include shipping costs."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="Determine if granted refund should include shipping costs.",
required=False,
)
transaction_id = graphene.ID(
@@ -138,7 +126,7 @@ class OrderGrantRefundUpdate(BaseMutation):
)
class Meta:
- description = "Updates granted refund." + ADDED_IN_313 + PREVIEW_FEATURE
+ description = "Updates granted refund."
permissions = (OrderPermissions.MANAGE_ORDERS,)
error_type_class = OrderGrantRefundUpdateError
doc_category = DOC_CATEGORY_ORDERS
diff --git a/saleor/graphql/order/mutations/order_note_add.py b/saleor/graphql/order/mutations/order_note_add.py
index a05445ffb7..c9ac8b3bd9 100644
--- a/saleor/graphql/order/mutations/order_note_add.py
+++ b/saleor/graphql/order/mutations/order_note_add.py
@@ -6,10 +6,8 @@ from ....permission.enums import OrderPermissions
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
from ...core.descriptions import (
- ADDED_IN_315,
DEPRECATED_IN_3X_INPUT,
DEPRECATED_IN_3X_MUTATION,
- PREVIEW_FEATURE,
)
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.types import BaseInputObjectType, Error, OrderError
@@ -41,7 +39,7 @@ class OrderNoteAdd(OrderNoteCommon):
)
class Meta:
- description = "Adds note to the order." + ADDED_IN_315 + PREVIEW_FEATURE
+ description = "Adds note to the order."
doc_category = DOC_CATEGORY_ORDERS
permissions = (OrderPermissions.MANAGE_ORDERS,)
error_type_class = OrderNoteAddError
diff --git a/saleor/graphql/order/mutations/order_note_update.py b/saleor/graphql/order/mutations/order_note_update.py
index 9f37bee463..5a2e43d455 100644
--- a/saleor/graphql/order/mutations/order_note_update.py
+++ b/saleor/graphql/order/mutations/order_note_update.py
@@ -5,7 +5,6 @@ from ....order import OrderEvents, error_codes, events, models
from ....permission.enums import OrderPermissions
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.types import Error
from ...plugins.dataloaders import get_plugin_manager_promise
@@ -36,7 +35,7 @@ class OrderNoteUpdate(OrderNoteCommon):
)
class Meta:
- description = "Updates note of an order." + ADDED_IN_315 + PREVIEW_FEATURE
+ description = "Updates note of an order."
doc_category = DOC_CATEGORY_ORDERS
permissions = (OrderPermissions.MANAGE_ORDERS,)
error_type_class = OrderNoteUpdateError
diff --git a/saleor/graphql/order/mutations/order_update.py b/saleor/graphql/order/mutations/order_update.py
index 6f40a82d8f..578dc14722 100644
--- a/saleor/graphql/order/mutations/order_update.py
+++ b/saleor/graphql/order/mutations/order_update.py
@@ -13,7 +13,6 @@ from ....permission.enums import OrderPermissions
from ....webhook.event_types import WebhookEventAsyncType
from ...account.types import AddressInput
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_310
from ...core.doc_category import DOC_CATEGORY_ORDERS
from ...core.mutations import ModelWithExtRefMutation
from ...core.types import BaseInputObjectType, OrderError
@@ -27,7 +26,7 @@ class OrderUpdateInput(BaseInputObjectType):
user_email = graphene.String(description="Email address of the customer.")
shipping_address = AddressInput(description="Shipping address of the customer.")
external_reference = graphene.String(
- description="External ID of this order." + ADDED_IN_310, required=False
+ description="External ID of this order.", required=False
)
class Meta:
@@ -39,7 +38,7 @@ class OrderUpdate(DraftOrderCreate, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of an order to update.")
external_reference = graphene.String(
required=False,
- description=f"External ID of an order to update. {ADDED_IN_310}",
+ description="External ID of an order to update.",
)
input = OrderUpdateInput(
required=True, description="Fields required to update an order."
diff --git a/saleor/graphql/page/mutations/page_create.py b/saleor/graphql/page/mutations/page_create.py
index 16be6ace56..e71bf5039a 100644
--- a/saleor/graphql/page/mutations/page_create.py
+++ b/saleor/graphql/page/mutations/page_create.py
@@ -11,7 +11,7 @@ from ....permission.enums import PagePermissions
from ...attribute.types import AttributeValueInput
from ...attribute.utils import PageAttributeAssignmentMixin
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_33, DEPRECATED_IN_3X_INPUT, RICH_CONTENT
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT, RICH_CONTENT
from ...core.doc_category import DOC_CATEGORY_PAGES
from ...core.fields import JSONString
from ...core.mutations import ModelMutation
@@ -36,9 +36,7 @@ class PageInput(BaseInputObjectType):
"Use `publishedAt` field instead."
)
)
- published_at = DateTime(
- description="Publication date time. ISO 8601 standard." + ADDED_IN_33
- )
+ published_at = DateTime(description="Publication date time. ISO 8601 standard.")
seo = SeoInput(description="Search engine optimization fields.")
class Meta:
diff --git a/saleor/graphql/payment/mutations/payment/checkout_payment_create.py b/saleor/graphql/payment/mutations/payment/checkout_payment_create.py
index 201b1c3d9c..60af25e7ba 100644
--- a/saleor/graphql/payment/mutations/payment/checkout_payment_create.py
+++ b/saleor/graphql/payment/mutations/payment/checkout_payment_create.py
@@ -21,7 +21,7 @@ from ....account.i18n import I18nMixin
from ....checkout.mutations.utils import get_checkout
from ....checkout.types import Checkout
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_31, ADDED_IN_34, DEPRECATED_IN_3X_INPUT
+from ....core.descriptions import DEPRECATED_IN_3X_INPUT
from ....core.doc_category import DOC_CATEGORY_CHECKOUT, DOC_CATEGORY_PAYMENTS
from ....core.mutations import BaseMutation
from ....core.scalars import UUID, PositiveDecimal
@@ -64,13 +64,13 @@ class PaymentInput(BaseInputObjectType):
),
)
store_payment_method = StorePaymentMethodEnum(
- description="Payment store type." + ADDED_IN_31,
+ description="Payment store type.",
required=False,
default_value=StorePaymentMethodEnum.NONE.name,
)
metadata = common_types.NonNullList(
MetadataInput,
- description="User public metadata." + ADDED_IN_31,
+ description="User public metadata.",
required=False,
)
@@ -84,7 +84,7 @@ class CheckoutPaymentCreate(BaseMutation, I18nMixin):
class Arguments:
id = graphene.ID(
- description="The checkout's ID." + ADDED_IN_34,
+ description="The checkout's ID.",
required=False,
)
token = UUID(
diff --git a/saleor/graphql/payment/mutations/stored_payment_methods/payment_gateway_initialize_tokenization.py b/saleor/graphql/payment/mutations/stored_payment_methods/payment_gateway_initialize_tokenization.py
index 47e81c5966..9d8c436f18 100644
--- a/saleor/graphql/payment/mutations/stored_payment_methods/payment_gateway_initialize_tokenization.py
+++ b/saleor/graphql/payment/mutations/stored_payment_methods/payment_gateway_initialize_tokenization.py
@@ -5,7 +5,6 @@ from .....payment.interface import PaymentGatewayInitializeTokenizationRequestDa
from .....permission.auth_filters import AuthorizationFilters
from .....webhook.event_types import WebhookEventSyncType
from ....channel.utils import validate_channel
-from ....core.descriptions import ADDED_IN_316, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import PaymentGatewayInitializeTokenizationErrorCode
from ....core.mutations import BaseMutation
@@ -44,8 +43,6 @@ class PaymentGatewayInitializeTokenization(BaseMutation):
doc_category = DOC_CATEGORY_PAYMENTS
description = (
"Initializes payment gateway for tokenizing payment method session."
- + ADDED_IN_316
- + PREVIEW_FEATURE
)
webhook_events_info = [
WebhookEventInfo(
diff --git a/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_intialize_tokenization.py b/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_intialize_tokenization.py
index 6a52443cfe..4e789e6543 100644
--- a/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_intialize_tokenization.py
+++ b/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_intialize_tokenization.py
@@ -5,7 +5,6 @@ from .....payment.interface import PaymentMethodInitializeTokenizationRequestDat
from .....permission.auth_filters import AuthorizationFilters
from .....webhook.event_types import WebhookEventSyncType
from ....channel.utils import validate_channel
-from ....core.descriptions import ADDED_IN_316, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import PaymentMethodInitializeTokenizationErrorCode
from ....core.mutations import BaseMutation
@@ -50,7 +49,7 @@ class PaymentMethodInitializeTokenization(BaseMutation):
class Meta:
doc_category = DOC_CATEGORY_PAYMENTS
- description = "Tokenize payment method." + ADDED_IN_316 + PREVIEW_FEATURE
+ description = "Tokenize payment method."
webhook_events_info = [
WebhookEventInfo(
type=(
diff --git a/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_process_tokenization.py b/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_process_tokenization.py
index d5dbf3543e..2e0fa4d7c9 100644
--- a/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_process_tokenization.py
+++ b/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_process_tokenization.py
@@ -5,7 +5,6 @@ from .....payment.interface import PaymentMethodProcessTokenizationRequestData
from .....permission.auth_filters import AuthorizationFilters
from .....webhook.event_types import WebhookEventSyncType
from ....channel.utils import validate_channel
-from ....core.descriptions import ADDED_IN_316, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import PaymentMethodProcessTokenizationErrorCode
from ....core.mutations import BaseMutation
@@ -44,7 +43,7 @@ class PaymentMethodProcessTokenization(BaseMutation):
class Meta:
doc_category = DOC_CATEGORY_PAYMENTS
- description = "Tokenize payment method." + ADDED_IN_316 + PREVIEW_FEATURE
+ description = "Tokenize payment method."
webhook_events_info = [
WebhookEventInfo(
type=(WebhookEventSyncType.PAYMENT_METHOD_PROCESS_TOKENIZATION_SESSION),
diff --git a/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_request_delete.py b/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_request_delete.py
index f2eb1ac366..b2b5b8f70a 100644
--- a/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_request_delete.py
+++ b/saleor/graphql/payment/mutations/stored_payment_methods/payment_method_request_delete.py
@@ -8,7 +8,6 @@ from .....payment.interface import (
from .....permission.auth_filters import AuthorizationFilters
from .....webhook.event_types import WebhookEventSyncType
from ....channel.utils import validate_channel
-from ....core.descriptions import ADDED_IN_316, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import StoredPaymentMethodRequestDeleteErrorCode
from ....core.mutations import BaseMutation
@@ -36,8 +35,6 @@ class StoredPaymentMethodRequestDelete(BaseMutation):
doc_category = DOC_CATEGORY_PAYMENTS
description = (
"Request to delete a stored payment method on payment provider side."
- + ADDED_IN_316
- + PREVIEW_FEATURE
)
error_type_class = PaymentMethodRequestDeleteError
diff --git a/saleor/graphql/payment/mutations/transaction/payment_gateway_initialize.py b/saleor/graphql/payment/mutations/transaction/payment_gateway_initialize.py
index ef3d4e6988..01f79be7a1 100644
--- a/saleor/graphql/payment/mutations/transaction/payment_gateway_initialize.py
+++ b/saleor/graphql/payment/mutations/transaction/payment_gateway_initialize.py
@@ -2,7 +2,6 @@ import graphene
from django.conf import settings
from .....payment.interface import PaymentGatewayData
-from ....core.descriptions import ADDED_IN_313, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import PaymentGatewayInitializeErrorCode
from ....core.scalars import JSON, PositiveDecimal
@@ -68,8 +67,6 @@ class PaymentGatewayInitialize(TransactionSessionBase):
"If `paymentGateways` is not provided, the webhook will be send to all "
"subscribed payment gateways. There is a limit of "
f"{settings.TRANSACTION_ITEMS_LIMIT} transaction items per checkout / order."
- + ADDED_IN_313
- + PREVIEW_FEATURE
)
error_type_class = common_types.PaymentGatewayInitializeError
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_create.py b/saleor/graphql/payment/mutations/transaction/transaction_create.py
index 05c7ddc8eb..4f91d1ae44 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_create.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_create.py
@@ -25,7 +25,6 @@ from .....payment.utils import create_manual_adjustment_events
from .....permission.enums import PaymentPermissions
from ....app.dataloaders import get_app_promise
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_34, ADDED_IN_313, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.mutations import BaseMutation
from ....core.types import BaseInputObjectType
@@ -39,16 +38,10 @@ from ..payment.payment_check_balance import MoneyInput
class TransactionCreateInput(BaseInputObjectType):
- name = graphene.String(
- description="Payment name of the transaction." + ADDED_IN_313
- )
- message = graphene.String(
- description="The message of the transaction." + ADDED_IN_313
- )
+ name = graphene.String(description="Payment name of the transaction.")
+ message = graphene.String(description="The message of the transaction.")
- psp_reference = graphene.String(
- description=("PSP Reference of the transaction. " + ADDED_IN_313)
- )
+ psp_reference = graphene.String(description=("PSP Reference of the transaction. "))
available_actions = graphene.List(
graphene.NonNull(TransactionActionEnum),
description="List of all possible actions for the transaction",
@@ -57,9 +50,7 @@ class TransactionCreateInput(BaseInputObjectType):
amount_charged = MoneyInput(description="Amount charged by this transaction.")
amount_refunded = MoneyInput(description="Amount refunded by this transaction.")
- amount_canceled = MoneyInput(
- description="Amount canceled by this transaction." + ADDED_IN_313
- )
+ amount_canceled = MoneyInput(description="Amount canceled by this transaction.")
metadata = graphene.List(
graphene.NonNull(MetadataInput),
@@ -74,7 +65,7 @@ class TransactionCreateInput(BaseInputObjectType):
external_url = graphene.String(
description=(
"The url that will allow to redirect user to "
- "payment provider page with transaction event details." + ADDED_IN_313
+ "payment provider page with transaction event details."
)
)
@@ -84,12 +75,10 @@ class TransactionCreateInput(BaseInputObjectType):
class TransactionEventInput(BaseInputObjectType):
psp_reference = graphene.String(
- description=("PSP Reference related to this action." + ADDED_IN_313)
+ description=("PSP Reference related to this action.")
)
- message = graphene.String(
- description="The message related to the event." + ADDED_IN_313
- )
+ message = graphene.String(description="The message related to the event.")
class Meta:
doc_category = DOC_CATEGORY_PAYMENTS
@@ -112,9 +101,7 @@ class TransactionCreate(BaseMutation):
)
class Meta:
- description = (
- "Create transaction for checkout or order." + ADDED_IN_34 + PREVIEW_FEATURE
- )
+ description = "Create transaction for checkout or order."
doc_category = DOC_CATEGORY_PAYMENTS
error_type_class = common_types.TransactionCreateError
permissions = (PaymentPermissions.HANDLE_PAYMENTS,)
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_event_report.py b/saleor/graphql/payment/mutations/transaction/transaction_event_report.py
index b15e75ac86..4dfff6c1d6 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_event_report.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_event_report.py
@@ -32,12 +32,6 @@ from .....permission.enums import PaymentPermissions
from .....webhook.event_types import WebhookEventAsyncType
from ....app.dataloaders import get_app_promise
from ....core import ResolveInfo
-from ....core.descriptions import (
- ADDED_IN_313,
- ADDED_IN_314,
- ADDED_IN_317,
- PREVIEW_FEATURE,
-)
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import TransactionEventReportErrorCode
from ....core.mutations import ModelMutation
@@ -82,8 +76,7 @@ class TransactionEventReport(ModelMutation):
token = UUID(
description=(
"The token of the transaction. One of field id or token is required."
- )
- + ADDED_IN_314,
+ ),
required=False,
)
psp_reference = graphene.String(
@@ -123,25 +116,18 @@ class TransactionEventReport(ModelMutation):
)
transaction_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the transaction metadata." + ADDED_IN_317
- ),
+ description=("Fields required to update the transaction metadata."),
required=False,
)
transaction_private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the transaction private metadata."
- + ADDED_IN_317
- ),
+ description=("Fields required to update the transaction private metadata."),
required=False,
)
class Meta:
description = (
"Report the event for the transaction."
- + ADDED_IN_313
- + PREVIEW_FEATURE
+ "\n\nRequires the following permissions: "
+ f"{AuthorizationFilters.OWNER.name} "
+ f"and {PaymentPermissions.HANDLE_PAYMENTS.name} for apps, "
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_initialize.py b/saleor/graphql/payment/mutations/transaction/transaction_initialize.py
index 6706bd6869..dff68a1995 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_initialize.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_initialize.py
@@ -16,12 +16,6 @@ from .....payment.utils import handle_transaction_initialize_session
from .....permission.enums import PaymentPermissions
from ....app.dataloaders import get_app_promise
from ....channel.enums import TransactionFlowStrategyEnum
-from ....core.descriptions import (
- ADDED_IN_313,
- ADDED_IN_314,
- ADDED_IN_316,
- PREVIEW_FEATURE,
-)
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import TransactionInitializeErrorCode
from ....core.scalars import JSON, PositiveDecimal
@@ -63,7 +57,7 @@ class TransactionInitialize(TransactionSessionBase):
"The idempotency key assigned to the action. It will be passed to the "
"payment app to discover potential duplicate actions. If not provided, "
"the default one will be generated. If empty string provided, INVALID "
- "error code will be raised." + ADDED_IN_314
+ "error code will be raised."
)
)
action = graphene.Argument(
@@ -82,7 +76,7 @@ class TransactionInitialize(TransactionSessionBase):
"The customer's IP address will be passed to the payment app. "
"The IP should be in ipv4 or ipv6 format. "
"The field can be used only by an app that has `HANDLE_PAYMENTS` "
- "permission." + ADDED_IN_316
+ "permission."
)
)
payment_gateway = graphene.Argument(
@@ -97,7 +91,7 @@ class TransactionInitialize(TransactionSessionBase):
"Initializes a transaction session. It triggers the webhook "
"`TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. "
f"There is a limit of {settings.TRANSACTION_ITEMS_LIMIT} transaction "
- "items per checkout / order." + ADDED_IN_313 + PREVIEW_FEATURE
+ "items per checkout / order."
)
error_type_class = common_types.TransactionInitializeError
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_process.py b/saleor/graphql/payment/mutations/transaction/transaction_process.py
index 43b07d9aeb..1c84086c94 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_process.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_process.py
@@ -19,12 +19,6 @@ from .....payment.utils import (
get_final_session_statuses,
handle_transaction_process_session,
)
-from ....core.descriptions import (
- ADDED_IN_313,
- ADDED_IN_314,
- ADDED_IN_316,
- PREVIEW_FEATURE,
-)
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.mutations import BaseMutation
from ....core.scalars import JSON, UUID
@@ -62,8 +56,7 @@ class TransactionProcess(BaseMutation):
description=(
"The token of the transaction to process. "
"One of field id or token is required."
- )
- + ADDED_IN_314,
+ ),
required=False,
)
data = graphene.Argument(
@@ -76,7 +69,7 @@ class TransactionProcess(BaseMutation):
"The customer's IP address will be passed to the payment app. "
"The IP should be in ipv4 or ipv6 format. "
"The field can be used only by an app that has `HANDLE_PAYMENTS` "
- "permission." + ADDED_IN_316
+ "permission."
)
)
@@ -85,8 +78,6 @@ class TransactionProcess(BaseMutation):
description = (
"Processes a transaction session. It triggers the webhook "
"`TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`. "
- + ADDED_IN_313
- + PREVIEW_FEATURE
)
error_type_class = common_types.TransactionProcessError
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_request_action.py b/saleor/graphql/payment/mutations/transaction/transaction_request_action.py
index e973144a11..f73555d0a1 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_request_action.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_request_action.py
@@ -19,7 +19,6 @@ from .....permission.enums import PaymentPermissions
from ....app.dataloaders import get_app_promise
from ....checkout.types import Checkout
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_34, ADDED_IN_314, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.mutations import BaseMutation
from ....core.scalars import UUID, PositiveDecimal
@@ -47,8 +46,7 @@ class TransactionRequestAction(BaseMutation):
token = UUID(
description=(
"The token of the transaction. One of field id or token is required."
- )
- + ADDED_IN_314,
+ ),
required=False,
)
action_type = graphene.Argument(
@@ -64,9 +62,7 @@ class TransactionRequestAction(BaseMutation):
)
class Meta:
- description = (
- "Request an action for payment transaction." + ADDED_IN_34 + PREVIEW_FEATURE
- )
+ description = "Request an action for payment transaction."
doc_category = DOC_CATEGORY_PAYMENTS
error_type_class = common_types.TransactionRequestActionError
permissions = (PaymentPermissions.HANDLE_PAYMENTS,)
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_request_refund_for_granted_refund.py b/saleor/graphql/payment/mutations/transaction/transaction_request_refund_for_granted_refund.py
index 157579192e..e518991423 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_request_refund_for_granted_refund.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_request_refund_for_granted_refund.py
@@ -14,7 +14,6 @@ from .....payment.gateway import request_refund_action
from .....permission.enums import PaymentPermissions
from ....app.dataloaders import get_app_promise
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.enums import TransactionRequestRefundForGrantedRefundErrorCode
from ....core.mutations import BaseMutation
@@ -59,8 +58,6 @@ class TransactionRequestRefundForGrantedRefund(BaseMutation):
class Meta:
description = (
"Request a refund for payment transaction based on granted refund."
- + ADDED_IN_315
- + PREVIEW_FEATURE
)
doc_category = DOC_CATEGORY_PAYMENTS
error_type_class = common_types.TransactionRequestRefundForGrantedRefundError
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_update.py b/saleor/graphql/payment/mutations/transaction/transaction_update.py
index b219a2845c..16f470dc8d 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_update.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_update.py
@@ -24,7 +24,6 @@ from .....permission.auth_filters import AuthorizationFilters
from .....permission.enums import PaymentPermissions
from ....app.dataloaders import get_app_promise
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_34, ADDED_IN_314, PREVIEW_FEATURE
from ....core.doc_category import DOC_CATEGORY_PAYMENTS
from ....core.scalars import UUID
from ....core.types import common as common_types
@@ -61,8 +60,7 @@ class TransactionUpdate(TransactionCreate):
token = UUID(
description=(
"The token of the transaction. One of field id or token is required."
- )
- + ADDED_IN_314,
+ ),
required=False,
)
transaction = TransactionUpdateInput(
@@ -76,8 +74,6 @@ class TransactionUpdate(TransactionCreate):
auto_permission_message = False
description = (
"Update transaction."
- + ADDED_IN_34
- + PREVIEW_FEATURE
+ "\n\nRequires the following permissions: "
+ f"{AuthorizationFilters.OWNER.name} "
+ f"and {PaymentPermissions.HANDLE_PAYMENTS.name} for apps, "
diff --git a/saleor/graphql/product/bulk_mutations/product_bulk_create.py b/saleor/graphql/product/bulk_mutations/product_bulk_create.py
index 0635c399b5..fdb46d426a 100644
--- a/saleor/graphql/product/bulk_mutations/product_bulk_create.py
+++ b/saleor/graphql/product/bulk_mutations/product_bulk_create.py
@@ -27,7 +27,7 @@ from ....webhook.utils import get_webhooks_for_event
from ...attribute.types import AttributeValueInput
from ...attribute.utils import ProductAttributeAssignmentMixin
from ...channel import ChannelContext
-from ...core.descriptions import ADDED_IN_313, PREVIEW_FEATURE, RICH_CONTENT
+from ...core.descriptions import RICH_CONTENT
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.enums import ErrorPolicyEnum
from ...core.fields import JSONString
@@ -199,7 +199,7 @@ class ProductBulkCreate(BaseMutation):
)
class Meta:
- description = "Creates products." + ADDED_IN_313 + PREVIEW_FEATURE
+ description = "Creates products."
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
error_type_class = ProductBulkCreateError
diff --git a/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py b/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py
index 917b41534e..bb2431346a 100644
--- a/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py
+++ b/saleor/graphql/product/bulk_mutations/product_variant_bulk_create.py
@@ -22,13 +22,7 @@ from ...attribute.types import (
)
from ...attribute.utils import AttributeAssignmentMixin
from ...channel import ChannelContext
-from ...core.descriptions import (
- ADDED_IN_311,
- ADDED_IN_312,
- ADDED_IN_314,
- DEPRECATED_IN_3X_FIELD,
- PREVIEW_FEATURE,
-)
+from ...core.descriptions import DEPRECATED_IN_3X_FIELD
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.enums import ErrorPolicyEnum
from ...core.fields import JSONString
@@ -126,7 +120,7 @@ class ProductVariantBulkResult(BaseObjectType):
class BulkAttributeValueInput(BaseInputObjectType):
id = graphene.ID(description="ID of the selected attribute.", required=False)
external_reference = graphene.String(
- description="External ID of this attribute." + ADDED_IN_314, required=False
+ description="External ID of this attribute.", required=False
)
values = NonNullList(
graphene.String,
@@ -139,46 +133,41 @@ class BulkAttributeValueInput(BaseInputObjectType):
)
dropdown = AttributeValueSelectableTypeInput(
required=False,
- description="Attribute value ID." + ADDED_IN_312,
+ description="Attribute value ID.",
)
swatch = AttributeValueSelectableTypeInput(
required=False,
- description="Attribute value ID." + ADDED_IN_312,
+ description="Attribute value ID.",
)
multiselect = NonNullList(
AttributeValueSelectableTypeInput,
required=False,
- description="List of attribute value IDs." + ADDED_IN_312,
+ description="List of attribute value IDs.",
)
numeric = graphene.String(
required=False,
- description="Numeric value of an attribute." + ADDED_IN_312,
+ description="Numeric value of an attribute.",
)
file = graphene.String(
required=False,
- description=(
- "URL of the file attribute. Every time, a new value is created."
- + ADDED_IN_312
- ),
+ description=("URL of the file attribute. Every time, a new value is created."),
)
content_type = graphene.String(
required=False,
- description="File content type." + ADDED_IN_312,
+ description="File content type.",
)
references = NonNullList(
graphene.ID,
- description=(
- "List of entity IDs that will be used as references." + ADDED_IN_312
- ),
+ description=("List of entity IDs that will be used as references."),
required=False,
)
rich_text = JSONString(
required=False,
- description="Text content in JSON format." + ADDED_IN_312,
+ description="Text content in JSON format.",
)
plain_text = graphene.String(
required=False,
- description="Plain text content." + ADDED_IN_312,
+ description="Plain text content.",
)
boolean = graphene.Boolean(
required=False,
@@ -187,11 +176,9 @@ class BulkAttributeValueInput(BaseInputObjectType):
"If the passed value is non-existent, it will be created."
),
)
- date = Date(
- required=False, description=AttributeValueDescriptions.DATE + ADDED_IN_312
- )
+ date = Date(required=False, description=AttributeValueDescriptions.DATE)
date_time = DateTime(
- required=False, description=AttributeValueDescriptions.DATE_TIME + ADDED_IN_312
+ required=False, description=AttributeValueDescriptions.DATE_TIME
)
class Meta:
@@ -237,7 +224,7 @@ class ProductVariantBulkCreate(BaseMutation):
ProductVariantBulkResult,
required=True,
default_value=[],
- description="List of the created variants." + ADDED_IN_311,
+ description="List of the created variants.",
)
class Arguments:
@@ -256,8 +243,6 @@ class ProductVariantBulkCreate(BaseMutation):
description=(
"Policies of error handling. DEFAULT: "
+ ErrorPolicyEnum.REJECT_EVERYTHING.name
- + ADDED_IN_311
- + PREVIEW_FEATURE
),
)
diff --git a/saleor/graphql/product/bulk_mutations/product_variant_bulk_delete.py b/saleor/graphql/product/bulk_mutations/product_variant_bulk_delete.py
index c8e51c9c83..6ce37d2318 100644
--- a/saleor/graphql/product/bulk_mutations/product_variant_bulk_delete.py
+++ b/saleor/graphql/product/bulk_mutations/product_variant_bulk_delete.py
@@ -22,7 +22,6 @@ from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_38
from ...core.mutations import ModelBulkDeleteMutation
from ...core.types import NonNullList, ProductError
from ...core.validators import validate_one_of_args_is_in_mutation
@@ -41,7 +40,7 @@ class ProductVariantBulkDelete(ModelBulkDeleteMutation):
skus = NonNullList(
graphene.String,
required=False,
- description="List of product variant SKUs to delete." + ADDED_IN_38,
+ description="List of product variant SKUs to delete.",
)
class Meta:
diff --git a/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py b/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py
index 105d1f7055..ff26232128 100644
--- a/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py
+++ b/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py
@@ -16,7 +16,6 @@ from ....warehouse import models as warehouse_models
from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
from ...attribute.utils import AttributeAssignmentMixin
-from ...core.descriptions import ADDED_IN_311, ADDED_IN_312, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.enums import ErrorPolicyEnum
from ...core.mutations import BaseMutation, ModelMutation
@@ -102,18 +101,18 @@ class ProductVariantBulkUpdateInput(ProductVariantBulkCreateInput):
)
stocks = graphene.Field(
ProductVariantStocksUpdateInput,
- description="Stocks input." + ADDED_IN_312 + PREVIEW_FEATURE,
+ description="Stocks input.",
required=False,
)
channel_listings = graphene.Field(
ProductVariantChannelListingUpdateInput,
- description="Channel listings input." + ADDED_IN_312 + PREVIEW_FEATURE,
+ description="Channel listings input.",
required=False,
)
class Meta:
- description = "Input fields to update product variants." + ADDED_IN_311
+ description = "Input fields to update product variants."
doc_category = DOC_CATEGORY_PRODUCTS
@@ -150,9 +149,7 @@ class ProductVariantBulkUpdate(BaseMutation):
)
class Meta:
- description = (
- "Update multiple product variants." + ADDED_IN_311 + PREVIEW_FEATURE
- )
+ description = "Update multiple product variants."
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
error_type_class = ProductVariantBulkError
diff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.py
index 036ac0bd58..bb8036e9b9 100644
--- a/saleor/graphql/product/mutations/attributes.py
+++ b/saleor/graphql/product/mutations/attributes.py
@@ -17,7 +17,6 @@ from ...attribute.mutations import (
from ...attribute.types import Attribute
from ...channel import ChannelContext
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_31
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.inputs import ReorderInput
from ...core.mutations import BaseMutation
@@ -37,7 +36,6 @@ class ProductAttributeAssignInput(BaseInputObjectType):
description=(
"Whether attribute is allowed in variant selection. "
f"Allowed types are: {AttributeInputType.ALLOWED_IN_VARIANT_SELECTION}."
- + ADDED_IN_31
),
)
@@ -52,7 +50,6 @@ class ProductAttributeAssignmentUpdateInput(BaseInputObjectType):
description=(
"Whether attribute is allowed in variant selection. "
f"Allowed types are: {AttributeInputType.ALLOWED_IN_VARIANT_SELECTION}."
- + ADDED_IN_31
),
)
@@ -378,7 +375,6 @@ class ProductAttributeAssignmentUpdate(BaseMutation, VariantAssignmentValidation
class Meta:
description = (
"Update attributes assigned to product variant for given product type."
- + ADDED_IN_31
)
doc_category = DOC_CATEGORY_PRODUCTS
error_type_class = ProductError
diff --git a/saleor/graphql/product/mutations/category/category_create.py b/saleor/graphql/product/mutations/category/category_create.py
index e80c35c800..61f34bc64d 100644
--- a/saleor/graphql/product/mutations/category/category_create.py
+++ b/saleor/graphql/product/mutations/category/category_create.py
@@ -6,7 +6,7 @@ from .....permission.enums import ProductPermissions
from .....product import models
from .....product.error_codes import ProductErrorCode
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_38, RICH_CONTENT
+from ....core.descriptions import RICH_CONTENT
from ....core.doc_category import DOC_CATEGORY_PRODUCTS
from ....core.fields import JSONString
from ....core.mutations import ModelMutation
@@ -33,14 +33,12 @@ class CategoryInput(BaseInputObjectType):
background_image_alt = graphene.String(description="Alt text for a product media.")
metadata = NonNullList(
MetadataInput,
- description=("Fields required to update the category metadata." + ADDED_IN_38),
+ description=("Fields required to update the category metadata."),
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the category private metadata." + ADDED_IN_38
- ),
+ description=("Fields required to update the category private metadata."),
required=False,
)
diff --git a/saleor/graphql/product/mutations/channels.py b/saleor/graphql/product/mutations/channels.py
index 18ddda52ca..b50e0e0014 100644
--- a/saleor/graphql/product/mutations/channels.py
+++ b/saleor/graphql/product/mutations/channels.py
@@ -24,12 +24,7 @@ from ...channel import ChannelContext
from ...channel.mutations import BaseChannelListingMutation
from ...channel.types import Channel
from ...core import ResolveInfo
-from ...core.descriptions import (
- ADDED_IN_31,
- ADDED_IN_33,
- ADDED_IN_38,
- DEPRECATED_IN_3X_INPUT,
-)
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.mutations import BaseMutation
from ...core.scalars import Date, DateTime, PositiveDecimal
@@ -67,9 +62,7 @@ class PublishableChannelListingInput(BaseInputObjectType):
"Use `publishedAt` field instead."
)
)
- published_at = DateTime(
- description="Publication date time. ISO 8601 standard." + ADDED_IN_33
- )
+ published_at = DateTime(description="Publication date time. ISO 8601 standard.")
class Meta:
doc_category = DOC_CATEGORY_PRODUCTS
@@ -101,7 +94,7 @@ class ProductChannelListingAddInput(PublishableChannelListingInput):
description=(
"A start date time from which a product will be available "
"for purchase. When not set and `isAvailable` is set to True, "
- "the current day is assumed." + ADDED_IN_33
+ "the current day is assumed."
)
)
add_variants = NonNullList(
@@ -411,7 +404,7 @@ class ProductVariantChannelListingAddInput(BaseInputObjectType):
)
cost_price = PositiveDecimal(description="Cost price of the variant in channel.")
preorder_threshold = graphene.Int(
- description=("The threshold for preorder variant in channel." + ADDED_IN_31)
+ description="The threshold for preorder variant in channel."
)
class Meta:
@@ -428,8 +421,7 @@ class ProductVariantChannelListingUpdate(BaseMutation):
required=False, description="ID of a product variant to update."
)
sku = graphene.String(
- required=False,
- description="SKU of a product variant to update." + ADDED_IN_38,
+ required=False, description="SKU of a product variant to update."
)
input = NonNullList(
ProductVariantChannelListingAddInput,
diff --git a/saleor/graphql/product/mutations/collection/collection_create.py b/saleor/graphql/product/mutations/collection/collection_create.py
index 300b95da29..19fb23bc38 100644
--- a/saleor/graphql/product/mutations/collection/collection_create.py
+++ b/saleor/graphql/product/mutations/collection/collection_create.py
@@ -12,7 +12,7 @@ from .....product.error_codes import CollectionErrorCode
from .....product.tasks import collection_product_updated_task
from ....channel import ChannelContext
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_38, DEPRECATED_IN_3X_INPUT, RICH_CONTENT
+from ....core.descriptions import DEPRECATED_IN_3X_INPUT, RICH_CONTENT
from ....core.doc_category import DOC_CATEGORY_PRODUCTS
from ....core.fields import JSONString
from ....core.mutations import ModelMutation
@@ -52,16 +52,12 @@ class CollectionInput(BaseInputObjectType):
)
metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the collection metadata." + ADDED_IN_38
- ),
+ description=("Fields required to update the collection metadata."),
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the collection private metadata." + ADDED_IN_38
- ),
+ description=("Fields required to update the collection private metadata."),
required=False,
)
diff --git a/saleor/graphql/product/mutations/digital_contents.py b/saleor/graphql/product/mutations/digital_contents.py
index f67766f7bb..914c3298da 100644
--- a/saleor/graphql/product/mutations/digital_contents.py
+++ b/saleor/graphql/product/mutations/digital_contents.py
@@ -9,7 +9,6 @@ from ....product.error_codes import ProductErrorCode
from ...channel import ChannelContext
from ...core import ResolveInfo
from ...core.context import disallow_replica_in_context
-from ...core.descriptions import ADDED_IN_38
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.mutations import BaseMutation, ModelMutation
from ...core.types import BaseInputObjectType, NonNullList, ProductError, Upload
@@ -42,17 +41,12 @@ class DigitalContentInput(BaseInputObjectType):
)
metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the digital content metadata." + ADDED_IN_38
- ),
+ description=("Fields required to update the digital content metadata."),
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the digital content private metadata."
- + ADDED_IN_38
- ),
+ description=("Fields required to update the digital content private metadata."),
required=False,
)
diff --git a/saleor/graphql/product/mutations/product/product_create.py b/saleor/graphql/product/mutations/product/product_create.py
index 3c6f9857d1..90237a8b29 100644
--- a/saleor/graphql/product/mutations/product/product_create.py
+++ b/saleor/graphql/product/mutations/product/product_create.py
@@ -12,8 +12,6 @@ from ....attribute.utils import AttrValuesInput, ProductAttributeAssignmentMixin
from ....channel import ChannelContext
from ....core import ResolveInfo
from ....core.descriptions import (
- ADDED_IN_38,
- ADDED_IN_310,
DEPRECATED_IN_3X_INPUT,
RICH_CONTENT,
)
@@ -68,18 +66,16 @@ class ProductInput(BaseInputObjectType):
rating = graphene.Float(description="Defines the product rating value.")
metadata = NonNullList(
MetadataInput,
- description=("Fields required to update the product metadata." + ADDED_IN_38),
+ description=("Fields required to update the product metadata."),
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the product private metadata." + ADDED_IN_38
- ),
+ description=("Fields required to update the product private metadata."),
required=False,
)
external_reference = graphene.String(
- description="External ID of this product." + ADDED_IN_310, required=False
+ description="External ID of this product.", required=False
)
class Meta:
diff --git a/saleor/graphql/product/mutations/product/product_delete.py b/saleor/graphql/product/mutations/product/product_delete.py
index f4a24e754c..33f996d7f8 100644
--- a/saleor/graphql/product/mutations/product/product_delete.py
+++ b/saleor/graphql/product/mutations/product/product_delete.py
@@ -12,7 +12,6 @@ from .....product import models
from ....app.dataloaders import get_app_promise
from ....channel import ChannelContext
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_310
from ....core.mutations import ModelDeleteMutation, ModelWithExtRefMutation
from ....core.types import ProductError
from ....plugins.dataloaders import get_plugin_manager_promise
@@ -25,7 +24,7 @@ class ProductDelete(ModelDeleteMutation, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of a product to delete.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a product to delete. {ADDED_IN_310}",
+ description="External ID of a product to delete.",
)
class Meta:
diff --git a/saleor/graphql/product/mutations/product/product_update.py b/saleor/graphql/product/mutations/product/product_update.py
index 03e28fa86a..f898eb3c2b 100644
--- a/saleor/graphql/product/mutations/product/product_update.py
+++ b/saleor/graphql/product/mutations/product/product_update.py
@@ -6,7 +6,6 @@ from .....permission.enums import ProductPermissions
from .....product import models
from ....attribute.utils import AttrValuesInput, ProductAttributeAssignmentMixin
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_310
from ....core.mutations import ModelWithExtRefMutation
from ....core.types.common import ProductError
from ....plugins.dataloaders import get_plugin_manager_promise
@@ -21,7 +20,7 @@ class ProductUpdate(ProductCreate, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of a product to update.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a product to update. {ADDED_IN_310}",
+ description="External ID of a product to update.",
)
input = ProductInput(
required=True, description="Fields required to update a product."
diff --git a/saleor/graphql/product/mutations/product_variant/product_variant_create.py b/saleor/graphql/product/mutations/product_variant/product_variant_create.py
index 1d96822725..9e63911c64 100644
--- a/saleor/graphql/product/mutations/product_variant/product_variant_create.py
+++ b/saleor/graphql/product/mutations/product_variant/product_variant_create.py
@@ -16,7 +16,6 @@ from ....attribute.types import AttributeValueInput
from ....attribute.utils import AttributeAssignmentMixin, AttrValuesInput
from ....channel import ChannelContext
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_31, ADDED_IN_38, ADDED_IN_310
from ....core.doc_category import DOC_CATEGORY_PRODUCTS
from ....core.mutations import ModelMutation
from ....core.scalars import DateTime, WeightScalar
@@ -64,32 +63,27 @@ class ProductVariantInput(BaseInputObjectType):
)
weight = WeightScalar(description="Weight of the Product Variant.", required=False)
preorder = PreorderSettingsInput(
- description=("Determines if variant is in preorder." + ADDED_IN_31)
+ description=("Determines if variant is in preorder.")
)
quantity_limit_per_customer = graphene.Int(
required=False,
description=(
"Determines maximum quantity of `ProductVariant`,"
- "that can be bought in a single checkout." + ADDED_IN_31
+ "that can be bought in a single checkout."
),
)
metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the product variant metadata." + ADDED_IN_38
- ),
+ description=("Fields required to update the product variant metadata."),
required=False,
)
private_metadata = NonNullList(
MetadataInput,
- description=(
- "Fields required to update the product variant private metadata."
- + ADDED_IN_38
- ),
+ description=("Fields required to update the product variant private metadata."),
required=False,
)
external_reference = graphene.String(
- description="External ID of this product variant." + ADDED_IN_310,
+ description="External ID of this product variant.",
required=False,
)
diff --git a/saleor/graphql/product/mutations/product_variant/product_variant_delete.py b/saleor/graphql/product/mutations/product_variant/product_variant_delete.py
index 5ed40f553c..1eaf6e4f1a 100644
--- a/saleor/graphql/product/mutations/product_variant/product_variant_delete.py
+++ b/saleor/graphql/product/mutations/product_variant/product_variant_delete.py
@@ -16,7 +16,6 @@ from .....product import models
from ....app.dataloaders import get_app_promise
from ....channel import ChannelContext
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_38, ADDED_IN_310
from ....core.mutations import ModelDeleteMutation, ModelWithExtRefMutation
from ....core.types import ProductError
from ....core.utils import ext_ref_to_global_id_or_error
@@ -33,11 +32,11 @@ class ProductVariantDelete(ModelDeleteMutation, ModelWithExtRefMutation):
)
external_reference = graphene.String(
required=False,
- description=f"External ID of a product variant to update. {ADDED_IN_310}",
+ description="External ID of a product variant to update.",
)
sku = graphene.String(
required=False,
- description="SKU of a product variant to delete." + ADDED_IN_38,
+ description="SKU of a product variant to delete.",
)
class Meta:
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.py
index 0c74cd7bbb..f0295c4f8f 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,7 +9,6 @@ from .....product.error_codes import ProductErrorCode
from .....warehouse.management import deactivate_preorder_for_variant
from ....channel import ChannelContext
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_31
from ....core.doc_category import DOC_CATEGORY_PRODUCTS
from ....core.mutations import BaseMutation
from ....core.types import ProductError
@@ -31,7 +30,7 @@ class ProductVariantPreorderDeactivate(BaseMutation):
class Meta:
description = (
"Deactivates product variant preorder. "
- "It changes all preorder allocation into regular allocation." + ADDED_IN_31
+ "It changes all preorder allocation into regular allocation."
)
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
diff --git a/saleor/graphql/product/mutations/product_variant/product_variant_update.py b/saleor/graphql/product/mutations/product_variant/product_variant_update.py
index 552d5d0cca..53c86501da 100644
--- a/saleor/graphql/product/mutations/product_variant/product_variant_update.py
+++ b/saleor/graphql/product/mutations/product_variant/product_variant_update.py
@@ -12,7 +12,6 @@ from .....product import models
from .....product.models import ProductChannelListing
from ....attribute.utils import AttributeAssignmentMixin, AttrValuesInput
from ....core import ResolveInfo
-from ....core.descriptions import ADDED_IN_38, ADDED_IN_310
from ....core.mutations import ModelWithExtRefMutation
from ....core.types import ProductError
from ....core.utils import ext_ref_to_global_id_or_error
@@ -29,11 +28,11 @@ class ProductVariantUpdate(ProductVariantCreate, ModelWithExtRefMutation):
id = graphene.ID(required=False, description="ID of a product to update.")
external_reference = graphene.String(
required=False,
- description=f"External ID of a product variant to update. {ADDED_IN_310}",
+ description="External ID of a product variant to update.",
)
sku = graphene.String(
required=False,
- description="SKU of a product variant to update." + ADDED_IN_38,
+ description="SKU of a product variant to update.",
)
input = ProductVariantInput(
required=True, description="Fields required to update a product variant."
diff --git a/saleor/graphql/product/types/categories.py b/saleor/graphql/product/types/categories.py
index ea2423cc50..b35b8beff6 100644
--- a/saleor/graphql/product/types/categories.py
+++ b/saleor/graphql/product/types/categories.py
@@ -21,11 +21,7 @@ from ...core.connection import (
)
from ...core.context import get_database_connection_name
from ...core.descriptions import (
- ADDED_IN_310,
- ADDED_IN_314,
- ADDED_IN_317,
DEPRECATED_IN_3X_FIELD,
- PREVIEW_FEATURE,
RICH_CONTENT,
)
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
@@ -65,8 +61,7 @@ class Category(ModelObjectType[models.Category]):
)
updated_at = DateTime(
required=True,
- description="The date and time when the category was last updated."
- + ADDED_IN_317,
+ description="The date and time when the category was last updated.",
)
ancestors = ConnectionField(
lambda: CategoryCountableConnection,
@@ -74,15 +69,9 @@ class Category(ModelObjectType[models.Category]):
)
products = FilterConnectionField(
ProductCountableConnection,
- filter=ProductFilterInput(
- description="Filtering options for products." + ADDED_IN_310
- ),
- where=ProductWhereInput(
- description="Filtering options for products."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- ),
- sort_by=ProductOrder(description="Sort products." + ADDED_IN_310),
+ filter=ProductFilterInput(description="Filtering options for products."),
+ where=ProductWhereInput(description="Filtering options for products."),
+ sort_by=ProductOrder(description="Sort products."),
channel=graphene.String(
description="Slug of a channel for which the data should be returned."
),
diff --git a/saleor/graphql/product/types/channels.py b/saleor/graphql/product/types/channels.py
index 5534769042..cf930eaf1c 100644
--- a/saleor/graphql/product/types/channels.py
+++ b/saleor/graphql/product/types/channels.py
@@ -22,7 +22,7 @@ from ....tax.utils import (
from ...account import types as account_types
from ...channel.dataloaders import ChannelByIdLoader
from ...channel.types import Channel
-from ...core.descriptions import ADDED_IN_31, ADDED_IN_33, DEPRECATED_IN_3X_FIELD
+from ...core.descriptions import DEPRECATED_IN_3X_FIELD
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.fields import PermissionsField
from ...core.scalars import Date, DateTime
@@ -62,9 +62,7 @@ class ProductChannelListing(ModelObjectType[models.ProductChannelListing]):
"Use the `publishedAt` field to fetch the publication date."
),
)
- published_at = DateTime(
- description="The product publication date time." + ADDED_IN_33
- )
+ published_at = DateTime(description="The product publication date time.")
is_published = graphene.Boolean(
required=True,
description="Indicates if the product is published in the channel.",
@@ -86,7 +84,7 @@ class ProductChannelListing(ModelObjectType[models.ProductChannelListing]):
),
)
available_for_purchase_at = DateTime(
- description="The product available for purchase date time." + ADDED_IN_33
+ description="The product available for purchase date time."
)
discounted_price = graphene.Field(
Money, description="The price of the cheapest variant (including discounts)."
@@ -361,7 +359,7 @@ class ProductVariantChannelListing(
preorder_threshold = graphene.Field(
PreorderThreshold,
required=False,
- description="Preorder variant data." + ADDED_IN_31,
+ description="Preorder variant data.",
)
class Meta:
@@ -397,9 +395,7 @@ class CollectionChannelListing(ModelObjectType[models.CollectionChannelListing])
"Use the `publishedAt` field to fetch the publication date."
),
)
- published_at = DateTime(
- description="The collection publication date." + ADDED_IN_33
- )
+ published_at = DateTime(description="The collection publication date.")
is_published = graphene.Boolean(
required=True,
description="Indicates if the collection is published in the channel.",
diff --git a/saleor/graphql/product/types/collections.py b/saleor/graphql/product/types/collections.py
index 24e971a90a..111ed4c20c 100644
--- a/saleor/graphql/product/types/collections.py
+++ b/saleor/graphql/product/types/collections.py
@@ -23,9 +23,7 @@ from ...core.connection import (
)
from ...core.context import get_database_connection_name
from ...core.descriptions import (
- ADDED_IN_314,
DEPRECATED_IN_3X_FIELD,
- PREVIEW_FEATURE,
RICH_CONTENT,
)
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
@@ -73,11 +71,7 @@ class Collection(ChannelContextTypeWithMetadata[models.Collection]):
products = FilterConnectionField(
ProductCountableConnection,
filter=ProductFilterInput(description="Filtering options for products."),
- where=ProductWhereInput(
- description="Filtering options for products."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- ),
+ where=ProductWhereInput(description="Filtering options for products."),
sort_by=ProductOrder(description="Sort products."),
description="List of products in this collection.",
)
diff --git a/saleor/graphql/product/types/products.py b/saleor/graphql/product/types/products.py
index 850f0e937e..a4eb9a52ba 100644
--- a/saleor/graphql/product/types/products.py
+++ b/saleor/graphql/product/types/products.py
@@ -57,10 +57,6 @@ from ...core.connection import (
)
from ...core.context import get_database_connection_name
from ...core.descriptions import (
- ADDED_IN_31,
- ADDED_IN_39,
- ADDED_IN_310,
- ADDED_IN_312,
DEPRECATED_IN_3X_FIELD,
DEPRECATED_IN_3X_INPUT,
RICH_CONTENT,
@@ -210,9 +206,7 @@ class VariantPricingInfo(BasePricingInfo):
class ProductPricingInfo(BasePricingInfo):
display_gross_prices = graphene.Boolean(
- description=(
- "Determines whether displayed prices should include taxes." + ADDED_IN_39
- ),
+ description=("Determines whether displayed prices should include taxes."),
required=True,
)
price_range = graphene.Field(
@@ -398,7 +392,7 @@ class ProductVariant(ChannelContextTypeWithMetadata[models.ProductVariant]):
preorder = graphene.Field(
PreorderData,
required=False,
- description=("Preorder data for product variant." + ADDED_IN_31),
+ description=("Preorder data for product variant."),
)
created = DateTime(
required=True,
@@ -409,7 +403,7 @@ class ProductVariant(ChannelContextTypeWithMetadata[models.ProductVariant]):
description="The date and time when the product variant was last updated.",
)
external_reference = graphene.String(
- description=f"External ID of this product. {ADDED_IN_310}",
+ description="External ID of this product.",
required=False,
)
@@ -915,10 +909,7 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):
description="Slug of the attribute",
required=True,
),
- description=(
- f"Get a single attribute attached to product by attribute slug."
- f"{ADDED_IN_39}"
- ),
+ description="Get a single attribute attached to product by attribute slug.",
)
attributes = NonNullList(
SelectedAttribute,
@@ -947,7 +938,7 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):
ProductVariant,
id=graphene.Argument(graphene.ID, description="ID of the variant."),
sku=graphene.Argument(graphene.String, description="SKU of the variant."),
- description=f"Get a single variant by SKU or ID. {ADDED_IN_39}",
+ description="Get a single variant by SKU or ID.",
deprecation_reason=f"{DEPRECATED_IN_3X_FIELD} Use top-level `variant` query.",
)
variants = NonNullList(
@@ -960,9 +951,7 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):
)
media = NonNullList(
lambda: ProductMedia,
- sort_by=graphene.Argument(
- MediaSortingInput, description=f"Sort media. {ADDED_IN_39}"
- ),
+ sort_by=graphene.Argument(MediaSortingInput, description="Sort media."),
description="List of media for the product.",
)
images = NonNullList(
@@ -1015,7 +1004,7 @@ class Product(ChannelContextTypeWithMetadata[models.Product]):
],
)
external_reference = graphene.String(
- description=f"External ID of this product. {ADDED_IN_310}",
+ description="External ID of this product.",
required=False,
)
@@ -1698,7 +1687,6 @@ class ProductType(ModelObjectType[models.ProductType]):
AssignedVariantAttribute,
description=(
"Variant attributes of that product type with attached variant selection."
- + ADDED_IN_31
),
variant_selection=graphene.Argument(
VariantAttributeScope,
@@ -1919,15 +1907,12 @@ class ProductMedia(ModelObjectType[models.ProductMedia]):
url = ThumbnailField(
graphene.String, required=True, description="The URL of the media."
)
- product_id = graphene.ID(
- description="Product id the media refers to." + ADDED_IN_312
- )
+ product_id = graphene.ID(description="Product id the media refers to.")
class Meta:
description = "Represents a product media."
interfaces = [relay.Node, ObjectWithMetadata]
model = models.ProductMedia
- metadata_since = ADDED_IN_312
@staticmethod
def resolve_url(
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index 8c50cf65c0..4f3f0407ab 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -1329,20 +1329,10 @@ type Query {
"""Filtering options for attributes."""
filter: AttributeFilterInput
- """
- Filtering options for attributes.
-
- Added in Saleor 3.11.
- """
+ """Filtering options for attributes."""
where: AttributeWhereInput
- """
- Search attributes.
-
- Added in Saleor 3.11.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Search attributes."""
search: String
"""Sorting options for attributes."""
@@ -1376,11 +1366,7 @@ type Query {
"""Slug of the attribute."""
slug: String
- """
- External ID of the attribute.
-
- Added in Saleor 3.10.
- """
+ """External ID of the attribute."""
externalReference: String
): Attribute @doc(category: "Attributes")
@@ -1433,8 +1419,6 @@ type Query {
"""
List of all extensions.
- Added in Saleor 3.1.
-
Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.
"""
appExtensions(
@@ -1461,8 +1445,6 @@ type Query {
"""
Look up an app extension by ID.
- Added in Saleor 3.1.
-
Requires one of the following permissions: AUTHENTICATED_STAFF_USER, AUTHENTICATED_APP.
"""
appExtension(
@@ -1607,11 +1589,7 @@ type Query {
"""Email address of the user."""
email: String
- """
- External ID of the user.
-
- Added in Saleor 3.10.
- """
+ """External ID of the user."""
externalReference: String
): User @doc(category: "Users")
_entities(representations: [_Any]): [_Entity]
@@ -1675,13 +1653,7 @@ type Webhook implements Node @doc(category: "Webhooks") {
"""Used to define payloads for specific events."""
subscriptionQuery: String
- """
- Custom headers, which will be added to HTTP request.
-
- Added in Saleor 3.12.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Custom headers, which will be added to HTTP request."""
customHeaders: JSONString
}
@@ -1802,30 +1774,16 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A gift card is deleted."""
GIFT_CARD_DELETED
- """
- A gift card has been sent.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """A gift card has been sent."""
GIFT_CARD_SENT
"""A gift card status is changed."""
GIFT_CARD_STATUS_CHANGED
- """
- A gift card metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A gift card metadata is updated."""
GIFT_CARD_METADATA_UPDATED
- """
- A gift card export is completed.
-
- Added in Saleor 3.16.
- """
+ """A gift card export is completed."""
GIFT_CARD_EXPORT_COMPLETED
"""A new menu created."""
@@ -1854,13 +1812,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""
ORDER_CONFIRMED
- """
- Payment has been made. The order may be partially or fully paid.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Payment has been made. The order may be partially or fully paid."""
ORDER_PAID
"""Payment is made and an order is fully paid."""
@@ -1868,20 +1820,10 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""
The order received a refund. The order may be partially or fully refunded.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
ORDER_REFUNDED
- """
- The order is fully refunded.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The order is fully refunded."""
ORDER_FULLY_REFUNDED
"""
@@ -1898,20 +1840,10 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""An order is fulfilled."""
ORDER_FULFILLED
- """
- An order metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """An order metadata is updated."""
ORDER_METADATA_UPDATED
- """
- Orders are imported.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Orders are imported."""
ORDER_BULK_CREATED
"""A new fulfillment is created."""
@@ -1923,11 +1855,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A fulfillment is approved."""
FULFILLMENT_APPROVED
- """
- A fulfillment metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A fulfillment metadata is updated."""
FULFILLMENT_METADATA_UPDATED
FULFILLMENT_TRACKING_NUMBER_UPDATED
@@ -1994,11 +1922,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A customer account is deleted."""
CUSTOMER_DELETED
- """
- A customer account metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A customer account metadata is updated."""
CUSTOMER_METADATA_UPDATED
"""A new collection is created."""
@@ -2010,11 +1934,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A collection is deleted."""
COLLECTION_DELETED
- """
- A collection metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A collection metadata is updated."""
COLLECTION_METADATA_UPDATED
"""A new product is created."""
@@ -2026,39 +1946,19 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A product is deleted."""
PRODUCT_DELETED
- """
- A product metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A product metadata is updated."""
PRODUCT_METADATA_UPDATED
- """
- A product export is completed.
-
- Added in Saleor 3.16.
- """
+ """A product export is completed."""
PRODUCT_EXPORT_COMPLETED
- """
- A new product media is created.
-
- Added in Saleor 3.12.
- """
+ """A new product media is created."""
PRODUCT_MEDIA_CREATED
- """
- A product media is updated.
-
- Added in Saleor 3.12.
- """
+ """A product media is updated."""
PRODUCT_MEDIA_UPDATED
- """
- A product media is deleted.
-
- Added in Saleor 3.12.
- """
+ """A product media is deleted."""
PRODUCT_MEDIA_DELETED
"""A new product variant is created."""
@@ -2072,11 +1972,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""
PRODUCT_VARIANT_DELETED
- """
- A product variant metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A product variant metadata is updated."""
PRODUCT_VARIANT_METADATA_UPDATED
"""A product variant is out of stock."""
@@ -2097,11 +1993,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
CHECKOUT_UPDATED
CHECKOUT_FULLY_PAID
- """
- A checkout metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A checkout metadata is updated."""
CHECKOUT_METADATA_UPDATED
"""
@@ -2156,11 +2048,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A shipping zone is deleted."""
SHIPPING_ZONE_DELETED
- """
- A shipping zone metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A shipping zone metadata is updated."""
SHIPPING_ZONE_METADATA_UPDATED
"""A new staff user is created."""
@@ -2175,11 +2063,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""Setting a new password for the staff account is requested."""
STAFF_SET_PASSWORD_REQUESTED
- """
- Transaction item metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """Transaction item metadata is updated."""
TRANSACTION_ITEM_METADATA_UPDATED
"""A new translation is created."""
@@ -2197,11 +2081,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""A warehouse is deleted."""
WAREHOUSE_DELETED
- """
- A warehouse metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A warehouse metadata is updated."""
WAREHOUSE_METADATA_UPDATED
"""A new voucher created."""
@@ -2215,11 +2095,7 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
VOUCHER_CODES_CREATED
VOUCHER_CODES_DELETED
- """
- A voucher metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A voucher metadata is updated."""
VOUCHER_METADATA_UPDATED
"""
@@ -2232,18 +2108,10 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""An observability event is created."""
OBSERVABILITY
- """
- A thumbnail is created.
-
- Added in Saleor 3.12.
- """
+ """A thumbnail is created."""
THUMBNAIL_CREATED
- """
- Shop metadata is updated.
-
- Added in Saleor 3.15.
- """
+ """Shop metadata is updated."""
SHOP_METADATA_UPDATED
"""Listing available payment gateways."""
@@ -2267,45 +2135,19 @@ enum WebhookEventTypeEnum @doc(category: "Webhooks") {
"""Process payment."""
PAYMENT_PROCESS
- """
- Event called for checkout tax calculation.
-
- Added in Saleor 3.6.
- """
+ """Event called for checkout tax calculation."""
CHECKOUT_CALCULATE_TAXES
- """
- Event called for order tax calculation.
-
- Added in Saleor 3.6.
- """
+ """Event called for order tax calculation."""
ORDER_CALCULATE_TAXES
- """
- Event called when charge has been requested for transaction.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Event called when charge has been requested for transaction."""
TRANSACTION_CHARGE_REQUESTED
- """
- Event called when refund has been requested for transaction.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Event called when refund has been requested for transaction."""
TRANSACTION_REFUND_REQUESTED
- """
- Event called when cancel has been requested for transaction.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Event called when cancel has been requested for transaction."""
TRANSACTION_CANCELATION_REQUESTED
"""Fetch external shipping methods for checkout."""
@@ -2358,45 +2200,19 @@ enum WebhookEventTypeSyncEnum @doc(category: "Webhooks") {
"""Process payment."""
PAYMENT_PROCESS
- """
- Event called for checkout tax calculation.
-
- Added in Saleor 3.6.
- """
+ """Event called for checkout tax calculation."""
CHECKOUT_CALCULATE_TAXES
- """
- Event called for order tax calculation.
-
- Added in Saleor 3.6.
- """
+ """Event called for order tax calculation."""
ORDER_CALCULATE_TAXES
- """
- Event called when charge has been requested for transaction.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Event called when charge has been requested for transaction."""
TRANSACTION_CHARGE_REQUESTED
- """
- Event called when refund has been requested for transaction.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Event called when refund has been requested for transaction."""
TRANSACTION_REFUND_REQUESTED
- """
- Event called when cancel has been requested for transaction.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Event called when cancel has been requested for transaction."""
TRANSACTION_CANCELATION_REQUESTED
"""Fetch external shipping methods for checkout."""
@@ -2528,30 +2344,16 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A gift card is deleted."""
GIFT_CARD_DELETED
- """
- A gift card has been sent.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """A gift card has been sent."""
GIFT_CARD_SENT
"""A gift card status is changed."""
GIFT_CARD_STATUS_CHANGED
- """
- A gift card metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A gift card metadata is updated."""
GIFT_CARD_METADATA_UPDATED
- """
- A gift card export is completed.
-
- Added in Saleor 3.16.
- """
+ """A gift card export is completed."""
GIFT_CARD_EXPORT_COMPLETED
"""A new menu created."""
@@ -2580,13 +2382,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""
ORDER_CONFIRMED
- """
- Payment has been made. The order may be partially or fully paid.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Payment has been made. The order may be partially or fully paid."""
ORDER_PAID
"""Payment is made and an order is fully paid."""
@@ -2594,20 +2390,10 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""
The order received a refund. The order may be partially or fully refunded.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
ORDER_REFUNDED
- """
- The order is fully refunded.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The order is fully refunded."""
ORDER_FULLY_REFUNDED
"""
@@ -2624,20 +2410,10 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""An order is fulfilled."""
ORDER_FULFILLED
- """
- An order metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """An order metadata is updated."""
ORDER_METADATA_UPDATED
- """
- Orders are imported.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Orders are imported."""
ORDER_BULK_CREATED
"""A new fulfillment is created."""
@@ -2649,11 +2425,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A fulfillment is approved."""
FULFILLMENT_APPROVED
- """
- A fulfillment metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A fulfillment metadata is updated."""
FULFILLMENT_METADATA_UPDATED
FULFILLMENT_TRACKING_NUMBER_UPDATED
@@ -2720,11 +2492,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A customer account is deleted."""
CUSTOMER_DELETED
- """
- A customer account metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A customer account metadata is updated."""
CUSTOMER_METADATA_UPDATED
"""A new collection is created."""
@@ -2736,11 +2504,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A collection is deleted."""
COLLECTION_DELETED
- """
- A collection metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A collection metadata is updated."""
COLLECTION_METADATA_UPDATED
"""A new product is created."""
@@ -2752,39 +2516,19 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A product is deleted."""
PRODUCT_DELETED
- """
- A product metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A product metadata is updated."""
PRODUCT_METADATA_UPDATED
- """
- A product export is completed.
-
- Added in Saleor 3.16.
- """
+ """A product export is completed."""
PRODUCT_EXPORT_COMPLETED
- """
- A new product media is created.
-
- Added in Saleor 3.12.
- """
+ """A new product media is created."""
PRODUCT_MEDIA_CREATED
- """
- A product media is updated.
-
- Added in Saleor 3.12.
- """
+ """A product media is updated."""
PRODUCT_MEDIA_UPDATED
- """
- A product media is deleted.
-
- Added in Saleor 3.12.
- """
+ """A product media is deleted."""
PRODUCT_MEDIA_DELETED
"""A new product variant is created."""
@@ -2798,11 +2542,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""
PRODUCT_VARIANT_DELETED
- """
- A product variant metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A product variant metadata is updated."""
PRODUCT_VARIANT_METADATA_UPDATED
"""A product variant is out of stock."""
@@ -2823,11 +2563,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
CHECKOUT_UPDATED
CHECKOUT_FULLY_PAID
- """
- A checkout metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A checkout metadata is updated."""
CHECKOUT_METADATA_UPDATED
"""
@@ -2882,11 +2618,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A shipping zone is deleted."""
SHIPPING_ZONE_DELETED
- """
- A shipping zone metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A shipping zone metadata is updated."""
SHIPPING_ZONE_METADATA_UPDATED
"""A new staff user is created."""
@@ -2901,11 +2633,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""Setting a new password for the staff account is requested."""
STAFF_SET_PASSWORD_REQUESTED
- """
- Transaction item metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """Transaction item metadata is updated."""
TRANSACTION_ITEM_METADATA_UPDATED
"""A new translation is created."""
@@ -2923,11 +2651,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""A warehouse is deleted."""
WAREHOUSE_DELETED
- """
- A warehouse metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A warehouse metadata is updated."""
WAREHOUSE_METADATA_UPDATED
"""A new voucher created."""
@@ -2941,11 +2665,7 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
VOUCHER_CODES_CREATED
VOUCHER_CODES_DELETED
- """
- A voucher metadata is updated.
-
- Added in Saleor 3.8.
- """
+ """A voucher metadata is updated."""
VOUCHER_METADATA_UPDATED
"""
@@ -2958,18 +2678,10 @@ enum WebhookEventTypeAsyncEnum @doc(category: "Webhooks") {
"""An observability event is created."""
OBSERVABILITY
- """
- A thumbnail is created.
-
- Added in Saleor 3.12.
- """
+ """A thumbnail is created."""
THUMBNAIL_CREATED
- """
- Shop metadata is updated.
-
- Added in Saleor 3.15.
- """
+ """Shop metadata is updated."""
SHOP_METADATA_UPDATED
}
@@ -2985,15 +2697,11 @@ type App implements Node & ObjectWithMetadata @doc(category: "Apps") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -3004,15 +2712,11 @@ type App implements Node & ObjectWithMetadata @doc(category: "Apps") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -3073,11 +2777,7 @@ type App implements Node & ObjectWithMetadata @doc(category: "Apps") {
"""URL to iframe with the app."""
appUrl: String
- """
- URL to manifest used during app's installation.
-
- Added in Saleor 3.5.
- """
+ """URL to manifest used during app's installation."""
manifestUrl: String
"""Version number of the app."""
@@ -3086,29 +2786,13 @@ type App implements Node & ObjectWithMetadata @doc(category: "Apps") {
"""JWT token used to authenticate by third-party app."""
accessToken: String
- """
- The App's author name.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The App's author name."""
author: String
- """
- App's dashboard extensions.
-
- Added in Saleor 3.1.
- """
+ """App's dashboard extensions."""
extensions: [AppExtension!]!
- """
- App's brand data.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """App's brand data."""
brand: AppBrand
}
@@ -3290,39 +2974,15 @@ enum AppExtensionTargetEnum @doc(category: "Apps") {
APP_PAGE
}
-"""
-Represents the app's brand data.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Represents the app's brand data."""
type AppBrand @doc(category: "Apps") {
- """
- App's logos details.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """App's logos details."""
logo: AppBrandLogo!
}
-"""
-Represents the app's brand logo data.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Represents the app's brand logo data."""
type AppBrandLogo @doc(category: "Apps") {
- """
- URL to the default logo image.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """URL to the default logo image."""
default(
"""
Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).
@@ -3331,10 +2991,6 @@ type AppBrandLogo @doc(category: "Apps") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
format: IconThumbnailFormatEnum = ORIGINAL
): String!
@@ -3670,15 +3326,11 @@ type Warehouse implements Node & ObjectWithMetadata @doc(category: "Products") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -3689,15 +3341,11 @@ type Warehouse implements Node & ObjectWithMetadata @doc(category: "Products") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -3775,49 +3423,33 @@ type Address implements Node & ObjectWithMetadata @doc(category: "Users") {
"""The ID of the address."""
id: ID!
- """
- List of private metadata items. Requires staff permissions to access.
-
- Added in Saleor 3.10.
- """
+ """List of private metadata items. Requires staff permissions to access."""
privateMetadata: [MetadataItem!]!
"""
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.10.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.10.
"""
privateMetafields(keys: [String!]): Metadata
- """
- List of public metadata items. Can be accessed without permissions.
-
- Added in Saleor 3.10.
- """
+ """List of public metadata items. Can be accessed without permissions."""
metadata: [MetadataItem!]!
"""
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.10.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.10.
"""
metafields(keys: [String!]): Metadata
@@ -3930,15 +3562,11 @@ type ShippingZone implements Node & ObjectWithMetadata @doc(category: "Shipping"
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -3949,15 +3577,11 @@ type ShippingZone implements Node & ObjectWithMetadata @doc(category: "Shipping"
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -4020,15 +3644,11 @@ type ShippingMethodType implements Node & ObjectWithMetadata @doc(category: "Shi
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -4039,15 +3659,11 @@ type ShippingMethodType implements Node & ObjectWithMetadata @doc(category: "Shi
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -5012,15 +4628,11 @@ type Channel implements Node & ObjectWithMetadata @doc(category: "Channels") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -5031,15 +4643,11 @@ type Channel implements Node & ObjectWithMetadata @doc(category: "Channels") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -5631,15 +5239,11 @@ type TaxConfiguration implements Node & ObjectWithMetadata @doc(category: "Taxes
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -5650,15 +5254,11 @@ type TaxConfiguration implements Node & ObjectWithMetadata @doc(category: "Taxes
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -5770,15 +5370,11 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -5789,15 +5385,11 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -5861,8 +5453,6 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): Image
@@ -5890,11 +5480,7 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
"""A type of tax. Assigned by enabled tax gateway"""
taxType: TaxType @deprecated(reason: "This field will be removed in Saleor 4.0. Use `taxClass` field instead.")
- """
- Get a single attribute attached to product by attribute slug.
-
- Added in Saleor 3.9.
- """
+ """Get a single attribute attached to product by attribute slug."""
attribute(
"""Slug of the attribute"""
slug: String!
@@ -5922,11 +5508,7 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
id: ID
): ProductImage @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `mediaById` field instead.")
- """
- Get a single variant by SKU or ID.
-
- Added in Saleor 3.9.
- """
+ """Get a single variant by SKU or ID."""
variant(
"""ID of the variant."""
id: ID
@@ -5942,11 +5524,7 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
"""List of media for the product."""
media(
- """
- Sort media.
-
- Added in Saleor 3.9.
- """
+ """Sort media."""
sortBy: MediaSortingInput
): [ProductMedia!]
@@ -5982,11 +5560,7 @@ type Product implements Node & ObjectWithMetadata @doc(category: "Products") {
"""
taxClass: TaxClass
- """
- External ID of this product.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product."""
externalReference: String
}
@@ -6004,15 +5578,11 @@ type ProductType implements Node & ObjectWithMetadata @doc(category: "Products")
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -6023,15 +5593,11 @@ type ProductType implements Node & ObjectWithMetadata @doc(category: "Products")
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -6096,8 +5662,6 @@ type ProductType implements Node & ObjectWithMetadata @doc(category: "Products")
"""
Variant attributes of that product type with attached variant selection.
-
- Added in Saleor 3.1.
"""
assignedVariantAttributes(
"""Define scope of returned attributes."""
@@ -6162,15 +5726,11 @@ type TaxClass implements Node & ObjectWithMetadata @doc(category: "Taxes") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -6181,15 +5741,11 @@ type TaxClass implements Node & ObjectWithMetadata @doc(category: "Taxes") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -6228,15 +5784,11 @@ type Attribute implements Node & ObjectWithMetadata @doc(category: "Attributes")
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -6247,15 +5799,11 @@ type Attribute implements Node & ObjectWithMetadata @doc(category: "Attributes")
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -6383,11 +5931,7 @@ type Attribute implements Node & ObjectWithMetadata @doc(category: "Attributes")
last: Int
): ProductTypeCountableConnection!
- """
- External ID of this attribute.
-
- Added in Saleor 3.10.
- """
+ """External ID of this attribute."""
externalReference: String
}
@@ -6522,11 +6066,7 @@ type AttributeValue implements Node @doc(category: "Attributes") {
"""Represents the date/time value of the attribute value."""
dateTime: DateTime
- """
- External ID of this attribute value.
-
- Added in Saleor 3.10.
- """
+ """External ID of this attribute value."""
externalReference: String
}
@@ -6691,8 +6231,6 @@ enum VariantAttributeScope @doc(category: "Products") {
"""
Represents assigned attribute to variant with variant selection attached.
-
-Added in Saleor 3.1.
"""
type AssignedVariantAttribute @doc(category: "Attributes") {
"""Attribute assigned to variant."""
@@ -6752,13 +6290,7 @@ input MetadataFilter {
value: String
}
-"""
-Where filtering options.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Where filtering options."""
input AttributeWhereInput @doc(category: "Attributes") {
metadata: [MetadataFilter!]
ids: [ID!]
@@ -6782,13 +6314,7 @@ input AttributeWhereInput @doc(category: "Attributes") {
OR: [AttributeWhereInput!]
}
-"""
-Define the filtering options for string fields.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Define the filtering options for string fields."""
input StringFilterInput {
"""The value equal to."""
eq: String
@@ -6843,15 +6369,11 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -6862,15 +6384,11 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -6906,11 +6424,7 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {
"""
descriptionJson: JSONString @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `description` field instead.")
- """
- The date and time when the category was last updated.
-
- Added in Saleor 3.17.
- """
+ """The date and time when the category was last updated."""
updatedAt: DateTime!
"""List of ancestors of the category."""
@@ -6936,27 +6450,13 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {
List of products in the category. Requires the following permissions to include the unpublished items: MANAGE_ORDERS, MANAGE_DISCOUNTS, MANAGE_PRODUCTS.
"""
products(
- """
- Filtering options for products.
-
- Added in Saleor 3.10.
- """
+ """Filtering options for products."""
filter: ProductFilterInput
- """
- Filtering options for products.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Filtering options for products."""
where: ProductWhereInput
- """
- Sort products.
-
- Added in Saleor 3.10.
- """
+ """Sort products."""
sortBy: ProductOrder
"""Slug of a channel for which the data should be returned."""
@@ -7007,8 +6507,6 @@ type Category implements Node & ObjectWithMetadata @doc(category: "Products") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): Image
@@ -7216,13 +6714,7 @@ input ProductWhereInput @doc(category: "Products") {
OR: [ProductWhereInput!]
}
-"""
-Define the filtering options for foreign key fields.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Define the filtering options for foreign key fields."""
input GlobalIDFilterInput {
"""The value equal to."""
eq: ID
@@ -7231,13 +6723,7 @@ input GlobalIDFilterInput {
oneOf: [ID!]
}
-"""
-Define the filtering options for decimal fields.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Define the filtering options for decimal fields."""
input DecimalFilterInput {
"""The value equal to."""
eq: Decimal
@@ -7265,13 +6751,7 @@ input DecimalRangeInput {
lte: Decimal
}
-"""
-Define the filtering options for date time fields.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Define the filtering options for date time fields."""
input DateTimeFilterInput {
"""The value equal to."""
eq: DateTime
@@ -7493,15 +6973,11 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "Product
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -7512,15 +6988,11 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "Product
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -7644,11 +7116,7 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "Product
countryCode: CountryCode
): Int
- """
- Preorder data for product variant.
-
- Added in Saleor 3.1.
- """
+ """Preorder data for product variant."""
preorder: PreorderData
"""The date and time when the product variant was created."""
@@ -7657,11 +7125,7 @@ type ProductVariant implements Node & ObjectWithMetadata @doc(category: "Product
"""The date and time when the product variant was last updated."""
updatedAt: DateTime!
- """
- External ID of this product.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product."""
externalReference: String
}
@@ -7686,11 +7150,7 @@ type ProductVariantChannelListing implements Node @doc(category: "Products") {
"""
margin: Int
- """
- Preorder variant data.
-
- Added in Saleor 3.1.
- """
+ """Preorder variant data."""
preorderThreshold: PreorderThreshold
}
@@ -7779,11 +7239,7 @@ input AddressInput {
"""
phone: String
- """
- Address public metadata.
-
- Added in Saleor 3.15.
- """
+ """Address public metadata."""
metadata: [MetadataInput!]
"""
@@ -7840,8 +7296,6 @@ type ProductImage @doc(category: "Products") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): String!
@@ -7852,49 +7306,33 @@ type ProductMedia implements Node & ObjectWithMetadata @doc(category: "Products"
"""The unique ID of the product media."""
id: ID!
- """
- List of private metadata items. Requires staff permissions to access.
-
- Added in Saleor 3.12.
- """
+ """List of private metadata items. Requires staff permissions to access."""
privateMetadata: [MetadataItem!]!
"""
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.12.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.12.
"""
privateMetafields(keys: [String!]): Metadata
- """
- List of public metadata items. Can be accessed without permissions.
-
- Added in Saleor 3.12.
- """
+ """List of public metadata items. Can be accessed without permissions."""
metadata: [MetadataItem!]!
"""
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.12.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.12.
"""
metafields(keys: [String!]): Metadata
@@ -7919,17 +7357,11 @@ type ProductMedia implements Node & ObjectWithMetadata @doc(category: "Products"
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): String!
- """
- Product id the media refers to.
-
- Added in Saleor 3.12.
- """
+ """Product id the media refers to."""
productId: ID
}
@@ -7991,15 +7423,11 @@ type DigitalContent implements Node & ObjectWithMetadata @doc(category: "Product
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -8010,15 +7438,11 @@ type DigitalContent implements Node & ObjectWithMetadata @doc(category: "Product
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -8131,11 +7555,7 @@ type ProductPricingInfo @doc(category: "Products") {
"""The discount amount in the local currency."""
discountLocalCurrency: TaxedMoney @deprecated(reason: "This field will be removed in Saleor 4.0. Always returns `null`.")
- """
- Determines whether displayed prices should include taxes.
-
- Added in Saleor 3.9.
- """
+ """Determines whether displayed prices should include taxes."""
displayGrossPrices: Boolean!
"""The discounted price range of the product variants."""
@@ -8165,11 +7585,7 @@ type ProductChannelListing implements Node @doc(category: "Products") {
id: ID!
publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.")
- """
- The product publication date time.
-
- Added in Saleor 3.3.
- """
+ """The product publication date time."""
publishedAt: DateTime
"""Indicates if the product is published in the channel."""
@@ -8182,11 +7598,7 @@ type ProductChannelListing implements Node @doc(category: "Products") {
visibleInListings: Boolean!
availableForPurchase: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `availableForPurchaseAt` field to fetch the available for purchase date.")
- """
- The product available for purchase date time.
-
- Added in Saleor 3.3.
- """
+ """The product available for purchase date time."""
availableForPurchaseAt: DateTime
"""The price of the cheapest variant (including discounts)."""
@@ -8256,15 +7668,11 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -8275,15 +7683,11 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -8323,13 +7727,7 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")
"""Filtering options for products."""
filter: ProductFilterInput
- """
- Filtering options for products.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Filtering options for products."""
where: ProductWhereInput
"""Sort products."""
@@ -8361,8 +7759,6 @@ type Collection implements Node & ObjectWithMetadata @doc(category: "Products")
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): Image
@@ -8479,11 +7875,7 @@ type CollectionChannelListing implements Node @doc(category: "Products") {
id: ID!
publicationDate: Date @deprecated(reason: "This field will be removed in Saleor 4.0. Use the `publishedAt` field to fetch the publication date.")
- """
- The collection publication date.
-
- Added in Saleor 3.3.
- """
+ """The collection publication date."""
publishedAt: DateTime
"""Indicates if the collection is published in the channel."""
@@ -8775,15 +8167,11 @@ type Page implements Node & ObjectWithMetadata @doc(category: "Pages") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -8794,15 +8182,11 @@ type Page implements Node & ObjectWithMetadata @doc(category: "Pages") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -8869,15 +8253,11 @@ type PageType implements Node & ObjectWithMetadata @doc(category: "Pages") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -8888,15 +8268,11 @@ type PageType implements Node & ObjectWithMetadata @doc(category: "Pages") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -8999,15 +8375,11 @@ type Voucher implements Node & ObjectWithMetadata @doc(category: "Discounts") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -9018,15 +8390,11 @@ type Voucher implements Node & ObjectWithMetadata @doc(category: "Discounts") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -9375,15 +8743,11 @@ type MenuItem implements Node & ObjectWithMetadata @doc(category: "Menu") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -9394,15 +8758,11 @@ type MenuItem implements Node & ObjectWithMetadata @doc(category: "Menu") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -9458,15 +8818,11 @@ type Menu implements Node & ObjectWithMetadata @doc(category: "Menu") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -9477,15 +8833,11 @@ type Menu implements Node & ObjectWithMetadata @doc(category: "Menu") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -9661,15 +9013,11 @@ type Sale implements Node & ObjectWithMetadata @doc(category: "Discounts") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -9680,15 +9028,11 @@ type Sale implements Node & ObjectWithMetadata @doc(category: "Discounts") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -10273,15 +9617,11 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -10292,15 +9632,11 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -10319,11 +9655,7 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
"""Determine if the user is active."""
isActive: Boolean!
- """
- Determines if user has confirmed email.
-
- Added in Saleor 3.15.
- """
+ """Determines if user has confirmed email."""
isConfirmed: Boolean!
"""List of all user's addresses."""
@@ -10344,11 +9676,7 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
channel: String
): [ID!]
- """
- Returns checkouts assigned to this user.
-
- Added in Saleor 3.8.
- """
+ """Returns checkouts assigned to this user."""
checkouts(
"""Slug of a channel for which the data should be returned."""
channel: String
@@ -10428,19 +9756,11 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
"""
List of channels the user has access to. The sum of channels from all user groups. If at least one group has `restrictedAccessToChannels` set to False - all channels are returned.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
accessibleChannels: [Channel!]
"""
Determine if user have restricted access to channels. False if at least one user group has `restrictedAccessToChannels` set to False.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
restrictedAccessToChannels: Boolean!
@@ -10453,8 +9773,6 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): Image
@@ -10483,11 +9801,7 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
"""The default billing address of the user."""
defaultBillingAddress: Address
- """
- External ID of this user.
-
- Added in Saleor 3.10.
- """
+ """External ID of this user."""
externalReference: String
"""The date when the user last time log in to the system."""
@@ -10501,10 +9815,6 @@ type User implements Node & ObjectWithMetadata @doc(category: "Users") {
"""
Returns a list of user's stored payment methods that can be used in provided channel. The field returns a list of stored payment methods by payment apps. When `amount` is not provided, 0 will be used as default value.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
storedPaymentMethods(
"""Slug of a channel for which the data should be returned."""
@@ -10524,15 +9834,11 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -10543,15 +9849,11 @@ type Checkout implements Node & ObjectWithMetadata @doc(category: "Checkout") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -10771,15 +10073,11 @@ type GiftCard implements Node & ObjectWithMetadata @doc(category: "Gift cards")
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -10790,15 +10088,11 @@ type GiftCard implements Node & ObjectWithMetadata @doc(category: "Gift cards")
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -10987,15 +10281,11 @@ type CheckoutLine implements Node & ObjectWithMetadata @doc(category: "Checkout"
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -11006,15 +10296,11 @@ type CheckoutLine implements Node & ObjectWithMetadata @doc(category: "Checkout"
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -11104,15 +10390,11 @@ type TransactionItem implements Node & ObjectWithMetadata @doc(category: "Paymen
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -11123,15 +10405,11 @@ type TransactionItem implements Node & ObjectWithMetadata @doc(category: "Paymen
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -11226,15 +10504,11 @@ type Order implements Node & ObjectWithMetadata @doc(category: "Orders") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -11245,15 +10519,11 @@ type Order implements Node & ObjectWithMetadata @doc(category: "Orders") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -11569,15 +10839,11 @@ type Fulfillment implements Node & ObjectWithMetadata @doc(category: "Orders") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -11588,15 +10854,11 @@ type Fulfillment implements Node & ObjectWithMetadata @doc(category: "Orders") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -11662,15 +10924,11 @@ type OrderLine implements Node & ObjectWithMetadata @doc(category: "Orders") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -11681,15 +10939,11 @@ type OrderLine implements Node & ObjectWithMetadata @doc(category: "Orders") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -11728,8 +10982,6 @@ type OrderLine implements Node & ObjectWithMetadata @doc(category: "Orders") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.6.
"""
format: ThumbnailFormatEnum = ORIGINAL
): Image
@@ -11867,15 +11119,11 @@ type Invoice implements ObjectWithMetadata & Job & Node @doc(category: "Orders")
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -11886,15 +11134,11 @@ type Invoice implements ObjectWithMetadata & Job & Node @doc(category: "Orders")
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -12026,15 +11270,11 @@ type Payment implements Node & ObjectWithMetadata @doc(category: "Payments") {
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -12045,15 +11285,11 @@ type Payment implements Node & ObjectWithMetadata @doc(category: "Payments") {
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -12830,22 +12066,10 @@ type Group implements Node @doc(category: "Users") {
"""
userCanManage: Boolean!
- """
- List of channels the group has access to.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of channels the group has access to."""
accessibleChannels: [Channel!]
- """
- Determine if the group have restricted access to channels.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Determine if the group have restricted access to channels."""
restrictedAccessToChannels: Boolean!
}
@@ -13835,15 +13059,11 @@ type Promotion implements Node & ObjectWithMetadata @doc(category: "Discounts")
A single key from private metadata. Requires staff permissions to access.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
privateMetafield(key: String!): String
"""
Private metadata. Requires staff permissions to access. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
privateMetafields(keys: [String!]): Metadata
@@ -13854,15 +13074,11 @@ type Promotion implements Node & ObjectWithMetadata @doc(category: "Discounts")
A single key from public metadata.
Tip: Use GraphQL aliases to fetch multiple keys.
-
- Added in Saleor 3.3.
"""
metafield(key: String!): String
"""
Public metadata. Use `keys` to control which fields you want to include. The default is to include everything.
-
- Added in Saleor 3.3.
"""
metafields(keys: [String!]): Metadata
@@ -14462,13 +13678,7 @@ type AppInstallation implements Node & Job @doc(category: "Apps") {
"""The URL address of manifest for the app installation."""
manifestUrl: String!
- """
- App's brand data.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """App's brand data."""
brand: AppBrand
}
@@ -14655,11 +13865,7 @@ input CustomerFilterInput @doc(category: "Users") {
search: String
metadata: [MetadataFilter!]
- """
- Filter by ids.
-
- Added in Saleor 3.8.
- """
+ """Filter by ids."""
ids: [ID!]
updatedAt: DateTimeRangeInput
}
@@ -14788,11 +13994,7 @@ type Mutation {
): EventDeliveryRetry @doc(category: "Webhooks")
"""
- Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.
-
- Added in Saleor 3.11.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.
Requires one of the following permissions: AUTHENTICATED_STAFF_USER.
"""
@@ -14805,11 +14007,7 @@ type Mutation {
): WebhookDryRun @doc(category: "Webhooks")
"""
- Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload.
-
- Added in Saleor 3.11.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload.
Requires one of the following permissions: AUTHENTICATED_STAFF_USER.
"""
@@ -14837,11 +14035,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
updateWarehouse(
- """
- External reference of a warehouse.
-
- Added in Saleor 3.16.
- """
+ """External reference of a warehouse."""
externalReference: String
"""ID of a warehouse to update."""
@@ -14888,9 +14082,7 @@ type Mutation {
): WarehouseShippingZoneUnassign @doc(category: "Products")
"""
- Create a tax class.
-
- Added in Saleor 3.9.
+ Create a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14900,9 +14092,7 @@ type Mutation {
): TaxClassCreate @doc(category: "Taxes")
"""
- Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.
-
- Added in Saleor 3.9.
+ Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14912,9 +14102,7 @@ type Mutation {
): TaxClassDelete @doc(category: "Taxes")
"""
- Update a tax class.
-
- Added in Saleor 3.9.
+ Update a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14927,9 +14115,7 @@ type Mutation {
): TaxClassUpdate @doc(category: "Taxes")
"""
- Update tax configuration for a channel.
-
- Added in Saleor 3.9.
+ Update tax configuration for a channel.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14942,9 +14128,7 @@ type Mutation {
): TaxConfigurationUpdate @doc(category: "Taxes")
"""
- Update tax class rates for a specific country.
-
- Added in Saleor 3.9.
+ Update tax class rates for a specific country.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14959,9 +14143,7 @@ type Mutation {
): TaxCountryConfigurationUpdate @doc(category: "Taxes")
"""
- Remove all tax class rates for a specific country.
-
- Added in Saleor 3.9.
+ Remove all tax class rates for a specific country.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14971,9 +14153,7 @@ type Mutation {
): TaxCountryConfigurationDelete @doc(category: "Taxes")
"""
- Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.
-
- Added in Saleor 3.8.
+ Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -14986,11 +14166,7 @@ type Mutation {
): TaxExemptionManage @doc(category: "Taxes")
"""
- Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another.
Requires one of the following permissions: MANAGE_PRODUCTS.
@@ -15268,9 +14444,7 @@ type Mutation {
): ProductAttributeAssign @doc(category: "Products")
"""
- Update attributes assigned to product variant for given product type.
-
- Added in Saleor 3.1.
+ Update attributes assigned to product variant for given product type.
Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.
"""
@@ -15486,11 +14660,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
productDelete(
- """
- External ID of a product to delete.
-
- Added in Saleor 3.10.
- """
+ """External ID of a product to delete."""
externalReference: String
"""ID of a product to delete."""
@@ -15498,11 +14668,7 @@ type Mutation {
): ProductDelete @doc(category: "Products")
"""
- Creates products.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Creates products.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -15530,11 +14696,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
productUpdate(
- """
- External ID of a product to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of a product to update."""
externalReference: String
"""ID of a product to update."""
@@ -15545,11 +14707,7 @@ type Mutation {
): ProductUpdate @doc(category: "Products")
"""
- Creates/updates translations for products.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Creates/updates translations for products.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
@@ -15800,21 +14958,13 @@ type Mutation {
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
productVariantDelete(
- """
- External ID of a product variant to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of a product variant to update."""
externalReference: String
"""ID of a product variant to delete."""
id: ID
- """
- SKU of a product variant to delete.
-
- Added in Saleor 3.8.
- """
+ """SKU of a product variant to delete."""
sku: String
): ProductVariantDelete @doc(category: "Products")
@@ -15824,13 +14974,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
productVariantBulkCreate(
- """
- Policies of error handling. DEFAULT: REJECT_EVERYTHING
-
- Added in Saleor 3.11.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Policies of error handling. DEFAULT: REJECT_EVERYTHING"""
errorPolicy: ErrorPolicyEnum
"""ID of the product to create the variants for."""
@@ -15841,11 +14985,7 @@ type Mutation {
): ProductVariantBulkCreate @doc(category: "Products")
"""
- Update multiple product variants.
-
- Added in Saleor 3.11.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Update multiple product variants.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -15869,11 +15009,7 @@ type Mutation {
"""List of product variant IDs to delete."""
ids: [ID!]
- """
- List of product variant SKUs to delete.
-
- Added in Saleor 3.8.
- """
+ """List of product variant SKUs to delete."""
skus: [String!]
): ProductVariantBulkDelete @doc(category: "Products")
@@ -15928,11 +15064,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
productVariantUpdate(
- """
- External ID of a product variant to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of a product variant to update."""
externalReference: String
"""ID of a product to update."""
@@ -15941,11 +15073,7 @@ type Mutation {
"""Fields required to update a product variant."""
input: ProductVariantInput!
- """
- SKU of a product variant to update.
-
- Added in Saleor 3.8.
- """
+ """SKU of a product variant to update."""
sku: String
): ProductVariantUpdate @doc(category: "Products")
@@ -15979,11 +15107,7 @@ type Mutation {
): ProductVariantTranslate @doc(category: "Products")
"""
- Creates/updates translations for products variants.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Creates/updates translations for products variants.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
@@ -16013,11 +15137,7 @@ type Mutation {
"""
input: [ProductVariantChannelListingAddInput!]!
- """
- SKU of a product variant to update.
-
- Added in Saleor 3.8.
- """
+ """SKU of a product variant to update."""
sku: String
): ProductVariantChannelListingUpdate @doc(category: "Products")
@@ -16038,9 +15158,7 @@ type Mutation {
): ProductVariantReorderAttributeValues @doc(category: "Products")
"""
- Deactivates product variant preorder. It changes all preorder allocation into regular allocation.
-
- Added in Saleor 3.1.
+ Deactivates product variant preorder. It changes all preorder allocation into regular allocation.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -16130,11 +15248,7 @@ type Mutation {
): PaymentCheckBalance @doc(category: "Payments")
"""
- Create transaction for checkout or order.
-
- Added in Saleor 3.4.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Create transaction for checkout or order.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -16152,21 +15266,13 @@ type Mutation {
"""
Update transaction.
- Added in Saleor 3.4.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.
"""
transactionUpdate(
"""The ID of the transaction. One of field id or token is required."""
id: ID
- """
- The token of the transaction. One of field id or token is required.
-
- Added in Saleor 3.14.
- """
+ """The token of the transaction. One of field id or token is required."""
token: UUID
"""Input data required to create a new transaction object."""
@@ -16177,11 +15283,7 @@ type Mutation {
): TransactionUpdate @doc(category: "Payments")
"""
- Request an action for payment transaction.
-
- Added in Saleor 3.4.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Request an action for payment transaction.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -16197,20 +15299,12 @@ type Mutation {
"""The ID of the transaction. One of field id or token is required."""
id: ID
- """
- The token of the transaction. One of field id or token is required.
-
- Added in Saleor 3.14.
- """
+ """The token of the transaction. One of field id or token is required."""
token: UUID
): TransactionRequestAction @doc(category: "Payments")
"""
- Request a refund for payment transaction based on granted refund.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Request a refund for payment transaction based on granted refund.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -16232,10 +15326,6 @@ type Mutation {
"""
Report the event for the transaction.
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.
Triggers the following webhook events:
@@ -16273,25 +15363,13 @@ type Mutation {
"""
time: DateTime
- """
- The token of the transaction. One of field id or token is required.
-
- Added in Saleor 3.14.
- """
+ """The token of the transaction. One of field id or token is required."""
token: UUID
- """
- Fields required to update the transaction metadata.
-
- Added in Saleor 3.17.
- """
+ """Fields required to update the transaction metadata."""
transactionMetadata: [MetadataInput!]
- """
- Fields required to update the transaction private metadata.
-
- Added in Saleor 3.17.
- """
+ """Fields required to update the transaction private metadata."""
transactionPrivateMetadata: [MetadataInput!]
"""Current status of the event to report."""
@@ -16300,10 +15378,6 @@ type Mutation {
"""
Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
paymentGatewayInitialize(
"""
@@ -16320,10 +15394,6 @@ type Mutation {
"""
Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. There is a limit of 100 transaction items per checkout / order.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
transactionInitialize(
"""
@@ -16338,8 +15408,6 @@ type Mutation {
"""
The customer's IP address. If not provided Saleor will try to determine the customer's IP address on its own. The customer's IP address will be passed to the payment app. The IP should be in ipv4 or ipv6 format. The field can be used only by an app that has `HANDLE_PAYMENTS` permission.
-
- Added in Saleor 3.16.
"""
customerIpAddress: String
@@ -16348,8 +15416,6 @@ type Mutation {
"""
The idempotency key assigned to the action. It will be passed to the payment app to discover potential duplicate actions. If not provided, the default one will be generated. If empty string provided, INVALID error code will be raised.
-
- Added in Saleor 3.14.
"""
idempotencyKey: String
@@ -16358,17 +15424,11 @@ type Mutation {
): TransactionInitialize @doc(category: "Payments")
"""
- Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`.
"""
transactionProcess(
"""
The customer's IP address. If not provided Saleor will try to determine the customer's IP address on its own. The customer's IP address will be passed to the payment app. The IP should be in ipv4 or ipv6 format. The field can be used only by an app that has `HANDLE_PAYMENTS` permission.
-
- Added in Saleor 3.16.
"""
customerIpAddress: String
@@ -16382,18 +15442,12 @@ type Mutation {
"""
The token of the transaction to process. One of field id or token is required.
-
- Added in Saleor 3.14.
"""
token: UUID
): TransactionProcess @doc(category: "Payments")
"""
- Request to delete a stored payment method on payment provider side.
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Request to delete a stored payment method on payment provider side.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -16409,11 +15463,7 @@ type Mutation {
): StoredPaymentMethodRequestDelete @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [STORED_PAYMENT_METHOD_DELETE_REQUESTED])
"""
- Initializes payment gateway for tokenizing payment method session.
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Initializes payment gateway for tokenizing payment method session.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -16432,11 +15482,7 @@ type Mutation {
): PaymentGatewayInitializeTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_GATEWAY_INITIALIZE_TOKENIZATION_SESSION])
"""
- Tokenize payment method.
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Tokenize payment method.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -16460,11 +15506,7 @@ type Mutation {
): PaymentMethodInitializeTokenization @doc(category: "Payments") @webhookEventsInfo(asyncEvents: [], syncEvents: [PAYMENT_METHOD_INITIALIZE_TOKENIZATION_SESSION])
"""
- Tokenize payment method.
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Tokenize payment method.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -16680,11 +15722,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_ORDERS.
"""
draftOrderDelete(
- """
- External ID of a product to delete.
-
- Added in Saleor 3.10.
- """
+ """External ID of a product to delete."""
externalReference: String
"""ID of a product to delete."""
@@ -16717,11 +15755,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_ORDERS.
"""
draftOrderUpdate(
- """
- External ID of a draft order to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of a draft order to update."""
externalReference: String
"""ID of a draft order to update."""
@@ -16812,9 +15846,7 @@ type Mutation {
): FulfillmentCancel @doc(category: "Orders")
"""
- Approve existing fulfillment.
-
- Added in Saleor 3.1.
+ Approve existing fulfillment.
Requires one of the following permissions: MANAGE_ORDERS.
@@ -16875,11 +15907,7 @@ type Mutation {
): FulfillmentReturnProducts @doc(category: "Orders")
"""
- Adds granted refund to the order.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Adds granted refund to the order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -16892,11 +15920,7 @@ type Mutation {
): OrderGrantRefundCreate @doc(category: "Orders")
"""
- Updates granted refund.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Updates granted refund.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -17004,11 +16028,7 @@ type Mutation {
): OrderLineDiscountRemove @doc(category: "Orders")
"""
- Adds note to the order.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Adds note to the order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -17021,11 +16041,7 @@ type Mutation {
): OrderNoteAdd @doc(category: "Orders")
"""
- Updates note of an order.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Updates note of an order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -17069,11 +16085,7 @@ type Mutation {
Requires one of the following permissions: MANAGE_ORDERS.
"""
orderUpdate(
- """
- External ID of an order to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of an order to update."""
externalReference: String
"""ID of an order to update."""
@@ -17117,11 +16129,7 @@ type Mutation {
): OrderBulkCancel @doc(category: "Orders")
"""
- Creates multiple orders.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Creates multiple orders.
Requires one of the following permissions: MANAGE_ORDERS_IMPORT.
"""
@@ -17448,9 +16456,7 @@ type Mutation {
): GiftCardCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: [])
"""
- Delete gift card.
-
- Added in Saleor 3.1.
+ Delete gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17492,9 +16498,7 @@ type Mutation {
): GiftCardUpdate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: [])
"""
- Resend a gift card.
-
- Added in Saleor 3.1.
+ Resend a gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17507,9 +16511,7 @@ type Mutation {
): GiftCardResend @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [NOTIFY_USER], syncEvents: [])
"""
- Adds note to the gift card.
-
- Added in Saleor 3.1.
+ Adds note to the gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17525,9 +16527,7 @@ type Mutation {
): GiftCardAddNote @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: [])
"""
- Create gift cards.
-
- Added in Saleor 3.1.
+ Create gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17541,9 +16541,7 @@ type Mutation {
): GiftCardBulkCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: [])
"""
- Delete gift cards.
-
- Added in Saleor 3.1.
+ Delete gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17556,9 +16554,7 @@ type Mutation {
): GiftCardBulkDelete @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_DELETED], syncEvents: [])
"""
- Activate gift cards.
-
- Added in Saleor 3.1.
+ Activate gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17571,9 +16567,7 @@ type Mutation {
): GiftCardBulkActivate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_STATUS_CHANGED], syncEvents: [])
"""
- Deactivate gift cards.
-
- Added in Saleor 3.1.
+ Deactivate gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17603,8 +16597,6 @@ type Mutation {
"""
Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload.
-
- Added in Saleor 3.1.
"""
externalNotificationTrigger(
"""
@@ -17707,9 +16699,7 @@ type Mutation {
): PromotionRuleDelete @doc(category: "Discounts") @webhookEventsInfo(asyncEvents: [PROMOTION_RULE_DELETED], syncEvents: [])
"""
- Creates/updates translations for a promotion.
-
- Added in Saleor 3.17.
+ Creates/updates translations for a promotion.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -17725,9 +16715,7 @@ type Mutation {
): PromotionTranslate @doc(category: "Discounts")
"""
- Creates/updates translations for a promotion rule.
-
- Added in Saleor 3.17.
+ Creates/updates translations for a promotion rule.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -18037,9 +17025,7 @@ type Mutation {
): ExportProducts @doc(category: "Products") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, PRODUCT_EXPORT_COMPLETED], syncEvents: [])
"""
- Export gift cards to csv file.
-
- Added in Saleor 3.1.
+ Export gift cards to csv file.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -18461,11 +17447,7 @@ type Mutation {
"""
checkoutId: ID
- """
- The checkout's ID.
-
- Added in Saleor 3.4.
- """
+ """The checkout's ID."""
id: ID
"""Data required to create a new payment."""
@@ -18696,9 +17678,7 @@ type Mutation {
): ChannelDeactivate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_STATUS_CHANGED], syncEvents: [])
"""
- Reorder the warehouses of a channel.
-
- Added in Saleor 3.7.
+ Reorder the warehouses of a channel.
Requires one of the following permissions: MANAGE_CHANNELS.
"""
@@ -18730,11 +17710,7 @@ type Mutation {
- ATTRIBUTE_DELETED (async): An attribute was deleted.
"""
attributeDelete(
- """
- External ID of an attribute to delete.
-
- Added in Saleor 3.10.
- """
+ """External ID of an attribute to delete."""
externalReference: String
"""ID of an attribute to delete."""
@@ -18750,11 +17726,7 @@ type Mutation {
- ATTRIBUTE_UPDATED (async): An attribute was updated.
"""
attributeUpdate(
- """
- External ID of an attribute to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of an attribute to update."""
externalReference: String
"""ID of an attribute to update."""
@@ -18767,10 +17739,6 @@ type Mutation {
"""
Creates attributes.
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Triggers the following webhook events:
- ATTRIBUTE_CREATED (async): An attribute was created.
"""
@@ -18785,10 +17753,6 @@ type Mutation {
"""
Updates attributes.
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Triggers the following webhook events:
- ATTRIBUTE_UPDATED (async): An attribute was updated. Optionally called when new attribute value was created or deleted.
- ATTRIBUTE_VALUE_CREATED (async): Called optionally when an attribute value was created.
@@ -18819,11 +17783,7 @@ type Mutation {
): AttributeTranslate @doc(category: "Attributes")
"""
- Creates/updates translations for attributes.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Creates/updates translations for attributes.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -18889,11 +17849,7 @@ type Mutation {
- ATTRIBUTE_UPDATED (async): An attribute was updated.
"""
attributeValueDelete(
- """
- External ID of a value to delete.
-
- Added in Saleor 3.10.
- """
+ """External ID of a value to delete."""
externalReference: String
"""ID of a value to delete."""
@@ -18910,11 +17866,7 @@ type Mutation {
- ATTRIBUTE_UPDATED (async): An attribute was updated.
"""
attributeValueUpdate(
- """
- External ID of an AttributeValue to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of an AttributeValue to update."""
externalReference: String
"""ID of an AttributeValue to update."""
@@ -18925,11 +17877,7 @@ type Mutation {
): AttributeValueUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: [])
"""
- Creates/updates translations for attributes values.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Creates/updates translations for attributes values.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -19114,8 +18062,6 @@ type Mutation {
tokenCreate(
"""
The audience that will be included to JWT tokens with prefix `custom:`.
-
- Added in Saleor 3.8.
"""
audience: String
@@ -19221,11 +18167,7 @@ type Mutation {
): RequestPasswordReset @doc(category: "Users") @webhookEventsInfo(asyncEvents: [NOTIFY_USER, ACCOUNT_SET_PASSWORD_REQUESTED, STAFF_SET_PASSWORD_REQUESTED], syncEvents: [])
"""
- Sends a notification confirmation.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Sends a notification confirmation.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -19556,11 +18498,7 @@ type Mutation {
- CUSTOMER_METADATA_UPDATED (async): Optionally called when customer's metadata was updated.
"""
customerUpdate(
- """
- External ID of a customer to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of a customer to update."""
externalReference: String
"""ID of a customer to update."""
@@ -19579,11 +18517,7 @@ type Mutation {
- CUSTOMER_DELETED (async): A customer account was deleted.
"""
customerDelete(
- """
- External ID of a customer to update.
-
- Added in Saleor 3.10.
- """
+ """External ID of a customer to update."""
externalReference: String
"""ID of a customer to delete."""
@@ -19604,11 +18538,7 @@ type Mutation {
): CustomerBulkDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents: [CUSTOMER_DELETED], syncEvents: [])
"""
- Updates customers.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
+ Updates customers.
Requires one of the following permissions: MANAGE_USERS.
@@ -19826,19 +18756,11 @@ input WebhookCreateInput @doc(category: "Webhooks") {
"""
secretKey: String
- """
- Subscription query used to define a webhook payload.
-
- Added in Saleor 3.2.
- """
+ """Subscription query used to define a webhook payload."""
query: String
"""
Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed.
-
- Added in Saleor 3.12.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
customHeaders: JSONString
}
@@ -19898,19 +18820,11 @@ input WebhookUpdateInput @doc(category: "Webhooks") {
"""
secretKey: String
- """
- Subscription query used to define a webhook payload.
-
- Added in Saleor 3.2.
- """
+ """Subscription query used to define a webhook payload."""
query: String
"""
Custom headers, which will be added to HTTP request. There is a limitation of 5 headers per webhook and 998 characters per header.Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed.
-
- Added in Saleor 3.12.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
customHeaders: JSONString
}
@@ -19927,11 +18841,7 @@ type EventDeliveryRetry @doc(category: "Webhooks") {
}
"""
-Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Performs a dry run of a webhook event. Supports a single event (the first, if multiple provided in the `query`). Requires permission relevant to processed event.
Requires one of the following permissions: AUTHENTICATED_STAFF_USER.
"""
@@ -19967,11 +18877,7 @@ enum WebhookDryRunErrorCode @doc(category: "Webhooks") {
}
"""
-Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Trigger a webhook event. Supports a single event (the first, if multiple provided in the `webhook.subscription_query`). Requires permission relevant to processed event. Successfully delivered webhook returns `delivery` with status='PENDING' and empty payload.
Requires one of the following permissions: AUTHENTICATED_STAFF_USER.
"""
@@ -20134,9 +19040,7 @@ type WarehouseShippingZoneUnassign @doc(category: "Products") {
}
"""
-Create a tax class.
-
-Added in Saleor 3.9.
+Create a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20186,9 +19090,7 @@ input CountryRateInput @doc(category: "Taxes") {
}
"""
-Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.
-
-Added in Saleor 3.9.
+Delete a tax class. After deleting the tax class any products, product types or shipping methods using it are updated to use the default tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20217,9 +19119,7 @@ enum TaxClassDeleteErrorCode @doc(category: "Taxes") {
}
"""
-Update a tax class.
-
-Added in Saleor 3.9.
+Update a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20277,9 +19177,7 @@ input CountryRateUpdateInput @doc(category: "Taxes") {
}
"""
-Update tax configuration for a channel.
-
-Added in Saleor 3.9.
+Update tax configuration for a channel.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20368,9 +19266,7 @@ input TaxConfigurationPerCountryInput @doc(category: "Taxes") {
}
"""
-Update tax class rates for a specific country.
-
-Added in Saleor 3.9.
+Update tax class rates for a specific country.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20413,9 +19309,7 @@ input TaxClassRateInput @doc(category: "Taxes") {
}
"""
-Remove all tax class rates for a specific country.
-
-Added in Saleor 3.9.
+Remove all tax class rates for a specific country.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20445,9 +19339,7 @@ enum TaxCountryConfigurationDeleteErrorCode @doc(category: "Taxes") {
}
"""
-Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.
-
-Added in Saleor 3.8.
+Exempt checkout or order from charging the taxes. When tax exemption is enabled, taxes won't be charged for the checkout or order. Taxes may still be calculated in cases when product prices are entered with the tax included and the net price needs to be known.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20479,11 +19371,7 @@ enum TaxExemptionManageErrorCode @doc(category: "Taxes") {
}
"""
-Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Updates stocks for a given variant and warehouse. Variant and warehouse selectors have to be the same for all stock inputs. Is not allowed to use 'variantId' in one input and 'variantExternalReference' in another.
Requires one of the following permissions: MANAGE_PRODUCTS.
@@ -20679,18 +19567,10 @@ input ShopSettingsInput {
"""Enable automatic fulfillment for all digital products."""
automaticFulfillmentDigitalProducts: Boolean
- """
- Enable automatic approval of all new fulfillments.
-
- Added in Saleor 3.1.
- """
+ """Enable automatic approval of all new fulfillments."""
fulfillmentAutoApprove: Boolean
- """
- Enable ability to approve fulfillments which are unpaid.
-
- Added in Saleor 3.1.
- """
+ """Enable ability to approve fulfillments which are unpaid."""
fulfillmentAllowUnpaid: Boolean
"""Default number of max downloads per digital content URL."""
@@ -20710,51 +19590,29 @@ input ShopSettingsInput {
"""
Default number of minutes stock will be reserved for anonymous checkout. Enter 0 or null to disable.
-
- Added in Saleor 3.1.
"""
reserveStockDurationAnonymousUser: Int
"""
Default number of minutes stock will be reserved for authenticated checkout. Enter 0 or null to disable.
-
- Added in Saleor 3.1.
"""
reserveStockDurationAuthenticatedUser: Int
"""
Default number of maximum line quantity in single checkout. Minimum possible value is 1, default value is 50.
-
- Added in Saleor 3.1.
"""
limitQuantityPerCheckout: Int
- """
- Enable automatic account confirmation by email.
-
- Added in Saleor 3.14.
- """
+ """Enable automatic account confirmation by email."""
enableAccountConfirmationByEmail: Boolean
- """
- Enable possibility to login without account confirmation.
-
- Added in Saleor 3.15.
- """
+ """Enable possibility to login without account confirmation."""
allowLoginWithoutConfirmation: Boolean
- """
- Shop public metadata.
-
- Added in Saleor 3.15.
- """
+ """Shop public metadata."""
metadata: [MetadataInput!]
- """
- Shop private metadata.
-
- Added in Saleor 3.15.
- """
+ """Shop private metadata."""
privateMetadata: [MetadataInput!]
"""
@@ -21304,8 +20162,6 @@ input ProductAttributeAssignInput @doc(category: "Products") {
"""
Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric'].
-
- Added in Saleor 3.1.
"""
variantSelection: Boolean
}
@@ -21316,9 +20172,7 @@ enum ProductAttributeType @doc(category: "Products") {
}
"""
-Update attributes assigned to product variant for given product type.
-
-Added in Saleor 3.1.
+Update attributes assigned to product variant for given product type.
Requires one of the following permissions: MANAGE_PRODUCT_TYPES_AND_ATTRIBUTES.
"""
@@ -21335,8 +20189,6 @@ input ProductAttributeAssignmentUpdateInput @doc(category: "Products") {
"""
Whether attribute is allowed in variant selection. Allowed types are: ['dropdown', 'boolean', 'swatch', 'numeric'].
-
- Added in Saleor 3.1.
"""
variantSelection: Boolean!
}
@@ -21387,18 +20239,10 @@ input CategoryInput @doc(category: "Products") {
"""Alt text for a product media."""
backgroundImageAlt: String
- """
- Fields required to update the category metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the category metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the category private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the category private metadata."""
privateMetadata: [MetadataInput!]
}
@@ -21556,18 +20400,10 @@ input CollectionCreateInput @doc(category: "Products") {
"""
publicationDate: Date
- """
- Fields required to update the collection metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the collection metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the collection private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the collection private metadata."""
privateMetadata: [MetadataInput!]
"""List of products to be added to the collection."""
@@ -21675,18 +20511,10 @@ input CollectionInput @doc(category: "Products") {
"""
publicationDate: Date
- """
- Fields required to update the collection metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the collection metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the collection private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the collection private metadata."""
privateMetadata: [MetadataInput!]
}
@@ -21757,11 +20585,7 @@ input PublishableChannelListingInput @doc(category: "Products") {
"""
publicationDate: Date
- """
- Publication date time. ISO 8601 standard.
-
- Added in Saleor 3.3.
- """
+ """Publication date time. ISO 8601 standard."""
publishedAt: DateTime
}
@@ -21827,25 +20651,13 @@ input ProductCreateInput @doc(category: "Products") {
"""Defines the product rating value."""
rating: Float
- """
- Fields required to update the product metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the product private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product private metadata."""
privateMetadata: [MetadataInput!]
- """
- External ID of this product.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product."""
externalReference: String
"""ID of the type that product belongs to."""
@@ -21856,11 +20668,7 @@ input AttributeValueInput @doc(category: "Attributes") {
"""ID of the selected attribute."""
id: ID
- """
- External ID of this attribute.
-
- Added in Saleor 3.14.
- """
+ """External ID of this attribute."""
externalReference: String
"""
@@ -21868,32 +20676,16 @@ input AttributeValueInput @doc(category: "Attributes") {
"""
values: [String!]
- """
- Attribute value ID or external reference.
-
- Added in Saleor 3.9.
- """
+ """Attribute value ID or external reference."""
dropdown: AttributeValueSelectableTypeInput
- """
- Attribute value ID or external reference.
-
- Added in Saleor 3.9.
- """
+ """Attribute value ID or external reference."""
swatch: AttributeValueSelectableTypeInput
- """
- List of attribute value IDs or external references.
-
- Added in Saleor 3.9.
- """
+ """List of attribute value IDs or external references."""
multiselect: [AttributeValueSelectableTypeInput!]
- """
- Numeric value of an attribute.
-
- Added in Saleor 3.9.
- """
+ """Numeric value of an attribute."""
numeric: String
"""URL of the file attribute. Every time, a new value is created."""
@@ -21927,18 +20719,12 @@ Represents attribute value.
2. If externalReference is provided, then attribute value will be resolved by external reference.
3. If value is provided, then attribute value will be resolved by value. If this attribute value doesn't exist, then it will be created.
4. If externalReference and value is provided then new attribute value will be created.
-
-Added in Saleor 3.9.
"""
input AttributeValueSelectableTypeInput @doc(category: "Attributes") {
"""ID of an attribute value."""
id: ID
- """
- External reference of an attribute value.
-
- Added in Saleor 3.14.
- """
+ """External reference of an attribute value."""
externalReference: String
"""
@@ -21959,11 +20745,7 @@ type ProductDelete @doc(category: "Products") {
}
"""
-Creates products.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Creates products.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -22155,39 +20937,21 @@ input ProductVariantBulkCreateInput @doc(category: "Products") {
"""Weight of the Product Variant."""
weight: WeightScalar
- """
- Determines if variant is in preorder.
-
- Added in Saleor 3.1.
- """
+ """Determines if variant is in preorder."""
preorder: PreorderSettingsInput
"""
Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.
-
- Added in Saleor 3.1.
"""
quantityLimitPerCustomer: Int
- """
- Fields required to update the product variant metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the product variant private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant private metadata."""
privateMetadata: [MetadataInput!]
- """
- External ID of this product variant.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product variant."""
externalReference: String
"""Stocks of a product available for sale."""
@@ -22201,11 +20965,7 @@ input BulkAttributeValueInput @doc(category: "Products") {
"""ID of the selected attribute."""
id: ID
- """
- External ID of this attribute.
-
- Added in Saleor 3.14.
- """
+ """External ID of this attribute."""
externalReference: String
"""
@@ -22213,67 +20973,31 @@ input BulkAttributeValueInput @doc(category: "Products") {
"""
values: [String!]
- """
- Attribute value ID.
-
- Added in Saleor 3.12.
- """
+ """Attribute value ID."""
dropdown: AttributeValueSelectableTypeInput
- """
- Attribute value ID.
-
- Added in Saleor 3.12.
- """
+ """Attribute value ID."""
swatch: AttributeValueSelectableTypeInput
- """
- List of attribute value IDs.
-
- Added in Saleor 3.12.
- """
+ """List of attribute value IDs."""
multiselect: [AttributeValueSelectableTypeInput!]
- """
- Numeric value of an attribute.
-
- Added in Saleor 3.12.
- """
+ """Numeric value of an attribute."""
numeric: String
- """
- URL of the file attribute. Every time, a new value is created.
-
- Added in Saleor 3.12.
- """
+ """URL of the file attribute. Every time, a new value is created."""
file: String
- """
- File content type.
-
- Added in Saleor 3.12.
- """
+ """File content type."""
contentType: String
- """
- List of entity IDs that will be used as references.
-
- Added in Saleor 3.12.
- """
+ """List of entity IDs that will be used as references."""
references: [ID!]
- """
- Text content in JSON format.
-
- Added in Saleor 3.12.
- """
+ """Text content in JSON format."""
richText: JSONString
- """
- Plain text content.
-
- Added in Saleor 3.12.
- """
+ """Plain text content."""
plainText: String
"""
@@ -22281,18 +21005,10 @@ input BulkAttributeValueInput @doc(category: "Products") {
"""
boolean: Boolean
- """
- Represents the date value of the attribute value.
-
- Added in Saleor 3.12.
- """
+ """Represents the date value of the attribute value."""
date: Date
- """
- Represents the date/time value of the attribute value.
-
- Added in Saleor 3.12.
- """
+ """Represents the date/time value of the attribute value."""
dateTime: DateTime
}
@@ -22322,11 +21038,7 @@ input ProductVariantChannelListingAddInput @doc(category: "Products") {
"""Cost price of the variant in channel."""
costPrice: PositiveDecimal
- """
- The threshold for preorder variant in channel.
-
- Added in Saleor 3.1.
- """
+ """The threshold for preorder variant in channel."""
preorderThreshold: Int
}
@@ -22404,34 +21116,18 @@ input ProductInput @doc(category: "Products") {
"""Defines the product rating value."""
rating: Float
- """
- Fields required to update the product metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the product private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product private metadata."""
privateMetadata: [MetadataInput!]
- """
- External ID of this product.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product."""
externalReference: String
}
"""
-Creates/updates translations for products.
-
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Creates/updates translations for products.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
@@ -22560,11 +21256,7 @@ input ProductChannelListingAddInput @doc(category: "Products") {
"""
publicationDate: Date
- """
- Publication date time. ISO 8601 standard.
-
- Added in Saleor 3.3.
- """
+ """Publication date time. ISO 8601 standard."""
publishedAt: DateTime
"""
@@ -22586,8 +21278,6 @@ input ProductChannelListingAddInput @doc(category: "Products") {
"""
A start date time from which a product will be available for purchase. When not set and `isAvailable` is set to True, the current day is assumed.
-
- Added in Saleor 3.3.
"""
availableForPurchaseAt: DateTime
@@ -22841,18 +21531,10 @@ input DigitalContentUploadInput @doc(category: "Products") {
"""Overwrite default automatic_fulfillment setting for variant."""
automaticFulfillment: Boolean
- """
- Fields required to update the digital content metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the digital content metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the digital content private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the digital content private metadata."""
privateMetadata: [MetadataInput!]
"""Represents an file in a multipart request."""
@@ -22899,18 +21581,10 @@ input DigitalContentInput @doc(category: "Products") {
"""Overwrite default automatic_fulfillment setting for variant."""
automaticFulfillment: Boolean
- """
- Fields required to update the digital content metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the digital content metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the digital content private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the digital content private metadata."""
privateMetadata: [MetadataInput!]
}
@@ -22959,39 +21633,21 @@ input ProductVariantCreateInput @doc(category: "Products") {
"""Weight of the Product Variant."""
weight: WeightScalar
- """
- Determines if variant is in preorder.
-
- Added in Saleor 3.1.
- """
+ """Determines if variant is in preorder."""
preorder: PreorderSettingsInput
"""
Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.
-
- Added in Saleor 3.1.
"""
quantityLimitPerCustomer: Int
- """
- Fields required to update the product variant metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the product variant private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant private metadata."""
privateMetadata: [MetadataInput!]
- """
- External ID of this product variant.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product variant."""
externalReference: String
"""Product ID of which type is the variant."""
@@ -23024,11 +21680,7 @@ type ProductVariantBulkCreate @doc(category: "Products") {
"""List of the created variants.This field will be removed in Saleor 4.0."""
productVariants: [ProductVariant!]!
- """
- List of the created variants.
-
- Added in Saleor 3.11.
- """
+ """List of the created variants."""
results: [ProductVariantBulkResult!]!
bulkProductErrors: [BulkProductError!]! @deprecated(reason: "This field will be removed in Saleor 4.0. Use `errors` field instead.")
errors: [BulkProductError!]!
@@ -23056,8 +21708,6 @@ type ProductVariantBulkError @doc(category: "Products") {
"""
Path to field that caused the error. A value of `null` indicates that the error isn't associated with a particular field.
-
- Added in Saleor 3.14.
"""
path: String
@@ -23070,18 +21720,10 @@ type ProductVariantBulkError @doc(category: "Products") {
"""List of warehouse IDs which causes the error."""
warehouses: [ID!]
- """
- List of stocks IDs which causes the error.
-
- Added in Saleor 3.12.
- """
+ """List of stocks IDs which causes the error."""
stocks: [ID!]
- """
- List of channel IDs which causes the error.
-
- Added in Saleor 3.12.
- """
+ """List of channel IDs which causes the error."""
channels: [ID!]
"""List of channel listings IDs which causes the error."""
@@ -23133,11 +21775,7 @@ type BulkProductError @doc(category: "Products") {
}
"""
-Update multiple product variants.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Update multiple product variants.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -23150,11 +21788,7 @@ type ProductVariantBulkUpdate @doc(category: "Products") {
errors: [ProductVariantBulkError!]!
}
-"""
-Input fields to update product variants.
-
-Added in Saleor 3.11.
-"""
+"""Input fields to update product variants."""
input ProductVariantBulkUpdateInput @doc(category: "Products") {
"""List of attributes specific to this variant."""
attributes: [BulkAttributeValueInput!]
@@ -23173,57 +21807,27 @@ input ProductVariantBulkUpdateInput @doc(category: "Products") {
"""Weight of the Product Variant."""
weight: WeightScalar
- """
- Determines if variant is in preorder.
-
- Added in Saleor 3.1.
- """
+ """Determines if variant is in preorder."""
preorder: PreorderSettingsInput
"""
Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.
-
- Added in Saleor 3.1.
"""
quantityLimitPerCustomer: Int
- """
- Fields required to update the product variant metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the product variant private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant private metadata."""
privateMetadata: [MetadataInput!]
- """
- External ID of this product variant.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product variant."""
externalReference: String
- """
- Stocks input.
-
- Added in Saleor 3.12.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Stocks input."""
stocks: ProductVariantStocksUpdateInput
- """
- Channel listings input.
-
- Added in Saleor 3.12.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Channel listings input."""
channelListings: ProductVariantChannelListingUpdateInput
"""ID of the product variant to update."""
@@ -23395,39 +21999,21 @@ input ProductVariantInput @doc(category: "Products") {
"""Weight of the Product Variant."""
weight: WeightScalar
- """
- Determines if variant is in preorder.
-
- Added in Saleor 3.1.
- """
+ """Determines if variant is in preorder."""
preorder: PreorderSettingsInput
"""
Determines maximum quantity of `ProductVariant`,that can be bought in a single checkout.
-
- Added in Saleor 3.1.
"""
quantityLimitPerCustomer: Int
- """
- Fields required to update the product variant metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the product variant private metadata.
-
- Added in Saleor 3.8.
- """
+ """Fields required to update the product variant private metadata."""
privateMetadata: [MetadataInput!]
- """
- External ID of this product variant.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product variant."""
externalReference: String
}
@@ -23458,11 +22044,7 @@ input NameTranslationInput {
}
"""
-Creates/updates translations for products variants.
-
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Creates/updates translations for products variants.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
@@ -23546,9 +22128,7 @@ type ProductVariantReorderAttributeValues @doc(category: "Products") {
}
"""
-Deactivates product variant preorder. It changes all preorder allocation into regular allocation.
-
-Added in Saleor 3.1.
+Deactivates product variant preorder. It changes all preorder allocation into regular allocation.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -23721,11 +22301,7 @@ input MoneyInput {
}
"""
-Create transaction for checkout or order.
-
-Added in Saleor 3.4.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Create transaction for checkout or order.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -23757,25 +22333,13 @@ enum TransactionCreateErrorCode @doc(category: "Payments") {
}
input TransactionCreateInput @doc(category: "Payments") {
- """
- Payment name of the transaction.
-
- Added in Saleor 3.13.
- """
+ """Payment name of the transaction."""
name: String
- """
- The message of the transaction.
-
- Added in Saleor 3.13.
- """
+ """The message of the transaction."""
message: String
- """
- PSP Reference of the transaction.
-
- Added in Saleor 3.13.
- """
+ """PSP Reference of the transaction."""
pspReference: String
"""List of all possible actions for the transaction"""
@@ -23790,11 +22354,7 @@ input TransactionCreateInput @doc(category: "Payments") {
"""Amount refunded by this transaction."""
amountRefunded: MoneyInput
- """
- Amount canceled by this transaction.
-
- Added in Saleor 3.13.
- """
+ """Amount canceled by this transaction."""
amountCanceled: MoneyInput
"""Payment public metadata."""
@@ -23805,35 +22365,21 @@ input TransactionCreateInput @doc(category: "Payments") {
"""
The url that will allow to redirect user to payment provider page with transaction event details.
-
- Added in Saleor 3.13.
"""
externalUrl: String
}
input TransactionEventInput @doc(category: "Payments") {
- """
- PSP Reference related to this action.
-
- Added in Saleor 3.13.
- """
+ """PSP Reference related to this action."""
pspReference: String
- """
- The message related to the event.
-
- Added in Saleor 3.13.
- """
+ """The message related to the event."""
message: String
}
"""
Update transaction.
-Added in Saleor 3.4.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.
"""
type TransactionUpdate @doc(category: "Payments") {
@@ -23864,25 +22410,13 @@ enum TransactionUpdateErrorCode @doc(category: "Payments") {
}
input TransactionUpdateInput @doc(category: "Payments") {
- """
- Payment name of the transaction.
-
- Added in Saleor 3.13.
- """
+ """Payment name of the transaction."""
name: String
- """
- The message of the transaction.
-
- Added in Saleor 3.13.
- """
+ """The message of the transaction."""
message: String
- """
- PSP Reference of the transaction.
-
- Added in Saleor 3.13.
- """
+ """PSP Reference of the transaction."""
pspReference: String
"""List of all possible actions for the transaction"""
@@ -23897,11 +22431,7 @@ input TransactionUpdateInput @doc(category: "Payments") {
"""Amount refunded by this transaction."""
amountRefunded: MoneyInput
- """
- Amount canceled by this transaction.
-
- Added in Saleor 3.13.
- """
+ """Amount canceled by this transaction."""
amountCanceled: MoneyInput
"""Payment public metadata."""
@@ -23912,18 +22442,12 @@ input TransactionUpdateInput @doc(category: "Payments") {
"""
The url that will allow to redirect user to payment provider page with transaction event details.
-
- Added in Saleor 3.13.
"""
externalUrl: String
}
"""
-Request an action for payment transaction.
-
-Added in Saleor 3.4.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Request an action for payment transaction.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -23953,11 +22477,7 @@ enum TransactionRequestActionErrorCode @doc(category: "Payments") {
}
"""
-Request a refund for payment transaction based on granted refund.
-
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Request a refund for payment transaction based on granted refund.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -23992,10 +22512,6 @@ enum TransactionRequestRefundForGrantedRefundErrorCode @doc(category: "Payments"
"""
Report the event for the transaction.
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Requires the following permissions: OWNER and HANDLE_PAYMENTS for apps, HANDLE_PAYMENTS for staff users. Staff user cannot update a transaction that is owned by the app.
Triggers the following webhook events:
@@ -24041,10 +22557,6 @@ enum TransactionEventReportErrorCode @doc(category: "Payments") {
"""
Initializes a payment gateway session. It triggers the webhook `PAYMENT_GATEWAY_INITIALIZE_SESSION`, to the requested `paymentGateways`. If `paymentGateways` is not provided, the webhook will be send to all subscribed payment gateways. There is a limit of 100 transaction items per checkout / order.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
type PaymentGatewayInitialize @doc(category: "Payments") {
"""List of payment gateway configurations."""
@@ -24109,10 +22621,6 @@ input PaymentGatewayToInitialize @doc(category: "Payments") {
"""
Initializes a transaction session. It triggers the webhook `TRANSACTION_INITIALIZE_SESSION`, to the requested `paymentGateways`. There is a limit of 100 transaction items per checkout / order.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
type TransactionInitialize @doc(category: "Payments") {
"""The initialized transaction."""
@@ -24148,11 +22656,7 @@ enum TransactionInitializeErrorCode @doc(category: "Payments") {
}
"""
-Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Processes a transaction session. It triggers the webhook `TRANSACTION_PROCESS_SESSION`, to the assigned `paymentGateways`.
"""
type TransactionProcess @doc(category: "Payments") {
"""The processed transaction."""
@@ -24190,11 +22694,7 @@ enum TransactionProcessErrorCode @doc(category: "Payments") {
}
"""
-Request to delete a stored payment method on payment provider side.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Request to delete a stored payment method on payment provider side.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -24244,11 +22744,7 @@ enum StoredPaymentMethodRequestDeleteErrorCode @doc(category: "Payments") {
}
"""
-Initializes payment gateway for tokenizing payment method session.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Initializes payment gateway for tokenizing payment method session.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -24300,11 +22796,7 @@ enum PaymentGatewayInitializeTokenizationErrorCode @doc(category: "Payments") {
}
"""
-Tokenize payment method.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Tokenize payment method.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -24363,11 +22855,7 @@ enum PaymentMethodInitializeTokenizationErrorCode @doc(category: "Payments") {
}
"""
-Tokenize payment method.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Tokenize payment method.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -24474,11 +22962,7 @@ input PageCreateInput @doc(category: "Pages") {
"""
publicationDate: String
- """
- Publication date time. ISO 8601 standard.
-
- Added in Saleor 3.3.
- """
+ """Publication date time. ISO 8601 standard."""
publishedAt: DateTime
"""Search engine optimization fields."""
@@ -24561,11 +23045,7 @@ input PageInput @doc(category: "Pages") {
"""
publicationDate: String
- """
- Publication date time. ISO 8601 standard.
-
- Added in Saleor 3.3.
- """
+ """Publication date time. ISO 8601 standard."""
publishedAt: DateTime
"""Search engine optimization fields."""
@@ -24778,11 +23258,7 @@ input DraftOrderCreateInput @doc(category: "Orders") {
"""
redirectUrl: String
- """
- External ID of this order.
-
- Added in Saleor 3.10.
- """
+ """External ID of this order."""
externalReference: String
"""Variant line input consisting of variant ID and quantity of products."""
@@ -24797,18 +23273,12 @@ input OrderLineCreateInput @doc(category: "Orders") {
variantId: ID!
"""
- Flag that allow force splitting the same variant into multiple lines by skipping the matching logic.
-
- Added in Saleor 3.6.
+ Flag that allow force splitting the same variant into multiple lines by skipping the matching logic.
"""
forceNewLine: Boolean = false
"""
Custom price of the item.When the line with the same variant will be provided multiple times, the last price will be used.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
price: PositiveDecimal
}
@@ -24899,11 +23369,7 @@ input DraftOrderInput @doc(category: "Orders") {
"""
redirectUrl: String
- """
- External ID of this order.
-
- Added in Saleor 3.10.
- """
+ """External ID of this order."""
externalReference: String
}
@@ -24999,11 +23465,7 @@ input OrderFulfillInput @doc(category: "Orders") {
"""If true, then allow proceed fulfillment when stock is exceeded."""
allowStockToBeExceeded: Boolean = false
- """
- Fulfillment tracking number.
-
- Added in Saleor 3.6.
- """
+ """Fulfillment tracking number."""
trackingNumber: String
}
@@ -25046,9 +23508,7 @@ input FulfillmentCancelInput @doc(category: "Orders") {
}
"""
-Approve existing fulfillment.
-
-Added in Saleor 3.1.
+Approve existing fulfillment.
Requires one of the following permissions: MANAGE_ORDERS.
@@ -25201,11 +23661,7 @@ input OrderReturnFulfillmentLineInput @doc(category: "Orders") {
}
"""
-Adds granted refund to the order.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Adds granted refund to the order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -25230,13 +23686,7 @@ type OrderGrantRefundCreateError @doc(category: "Orders") {
"""The error code."""
code: OrderGrantRefundCreateErrorCode!
- """
- List of lines which cause the error.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of lines which cause the error."""
lines: [OrderGrantRefundCreateLineError!]
}
@@ -25280,22 +23730,10 @@ input OrderGrantRefundCreateInput @doc(category: "Orders") {
"""Reason of the granted refund."""
reason: String
- """
- Lines to assign to granted refund.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Lines to assign to granted refund."""
lines: [OrderGrantRefundCreateLineInput!]
- """
- Determine if granted refund should include shipping costs.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Determine if granted refund should include shipping costs."""
grantRefundForShipping: Boolean
"""
@@ -25320,11 +23758,7 @@ input OrderGrantRefundCreateLineInput @doc(category: "Orders") {
}
"""
-Updates granted refund.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Updates granted refund.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -25349,22 +23783,10 @@ type OrderGrantRefundUpdateError @doc(category: "Orders") {
"""The error code."""
code: OrderGrantRefundUpdateErrorCode!
- """
- List of lines to add which cause the error.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of lines to add which cause the error."""
addLines: [OrderGrantRefundUpdateLineError!]
- """
- List of lines to remove which cause the error.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of lines to remove which cause the error."""
removeLines: [OrderGrantRefundUpdateLineError!]
}
@@ -25408,31 +23830,13 @@ input OrderGrantRefundUpdateInput @doc(category: "Orders") {
"""Reason of the granted refund."""
reason: String
- """
- Lines to assign to granted refund.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Lines to assign to granted refund."""
addLines: [OrderGrantRefundUpdateLineAddInput!]
- """
- Lines to remove from granted refund.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Lines to remove from granted refund."""
removeLines: [ID!]
- """
- Determine if granted refund should include shipping costs.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Determine if granted refund should include shipping costs."""
grantRefundForShipping: Boolean
"""
@@ -25582,11 +23986,7 @@ type OrderLineDiscountRemove @doc(category: "Orders") {
}
"""
-Adds note to the order.
-
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Adds note to the order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -25623,11 +24023,7 @@ input OrderNoteInput @doc(category: "Orders") {
}
"""
-Updates note of an order.
-
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Updates note of an order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -25704,11 +24100,7 @@ input OrderUpdateInput @doc(category: "Orders") {
"""Shipping address of the customer."""
shippingAddress: AddressInput
- """
- External ID of this order.
-
- Added in Saleor 3.10.
- """
+ """External ID of this order."""
externalReference: String
}
@@ -25756,11 +24148,7 @@ type OrderBulkCancel @doc(category: "Orders") {
}
"""
-Creates multiple orders.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Creates multiple orders.
Requires one of the following permissions: MANAGE_ORDERS_IMPORT.
"""
@@ -26475,18 +24863,10 @@ input InvoiceCreateInput @doc(category: "Orders") {
"""URL of an invoice to download."""
url: String!
- """
- Fields required to update the invoice metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the invoice metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the invoice private metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the invoice private metadata."""
privateMetadata: [MetadataInput!]
}
@@ -26519,18 +24899,10 @@ input UpdateInvoiceInput @doc(category: "Orders") {
"""URL of an invoice to download."""
url: String
- """
- Fields required to update the invoice metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the invoice metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the invoice private metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the invoice private metadata."""
privateMetadata: [MetadataInput!]
}
@@ -26607,18 +24979,10 @@ type GiftCardCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents:
}
input GiftCardCreateInput @doc(category: "Gift cards") {
- """
- The gift card tags to add.
-
- Added in Saleor 3.1.
- """
+ """The gift card tags to add."""
addTags: [String!]
- """
- The gift card expiry date.
-
- Added in Saleor 3.1.
- """
+ """The gift card expiry date."""
expiryDate: Date
"""
@@ -26641,18 +25005,10 @@ input GiftCardCreateInput @doc(category: "Gift cards") {
"""Email of the customer to whom gift card will be sent."""
userEmail: String
- """
- Slug of a channel from which the email should be sent.
-
- Added in Saleor 3.1.
- """
+ """Slug of a channel from which the email should be sent."""
channel: String
- """
- Determine if gift card is active.
-
- Added in Saleor 3.1.
- """
+ """Determine if gift card is active."""
isActive: Boolean!
"""
@@ -26662,11 +25018,7 @@ input GiftCardCreateInput @doc(category: "Gift cards") {
"""
code: String
- """
- The gift card note from the staff member.
-
- Added in Saleor 3.1.
- """
+ """The gift card note from the staff member."""
note: String
}
@@ -26679,9 +25031,7 @@ input PriceInput {
}
"""
-Delete gift card.
-
-Added in Saleor 3.1.
+Delete gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26724,18 +25074,10 @@ type GiftCardUpdate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents:
}
input GiftCardUpdateInput @doc(category: "Gift cards") {
- """
- The gift card tags to add.
-
- Added in Saleor 3.1.
- """
+ """The gift card tags to add."""
addTags: [String!]
- """
- The gift card expiry date.
-
- Added in Saleor 3.1.
- """
+ """The gift card expiry date."""
expiryDate: Date
"""
@@ -26752,25 +25094,15 @@ input GiftCardUpdateInput @doc(category: "Gift cards") {
"""
endDate: Date
- """
- The gift card tags to remove.
-
- Added in Saleor 3.1.
- """
+ """The gift card tags to remove."""
removeTags: [String!]
- """
- The gift card balance amount.
-
- Added in Saleor 3.1.
- """
+ """The gift card balance amount."""
balanceAmount: PositiveDecimal
}
"""
-Resend a gift card.
-
-Added in Saleor 3.1.
+Resend a gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26795,9 +25127,7 @@ input GiftCardResendInput @doc(category: "Gift cards") {
}
"""
-Adds note to the gift card.
-
-Added in Saleor 3.1.
+Adds note to the gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26819,9 +25149,7 @@ input GiftCardAddNoteInput @doc(category: "Gift cards") {
}
"""
-Create gift cards.
-
-Added in Saleor 3.1.
+Create gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26856,9 +25184,7 @@ input GiftCardBulkCreateInput @doc(category: "Gift cards") {
}
"""
-Delete gift cards.
-
-Added in Saleor 3.1.
+Delete gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26872,9 +25198,7 @@ type GiftCardBulkDelete @doc(category: "Gift cards") @webhookEventsInfo(asyncEve
}
"""
-Activate gift cards.
-
-Added in Saleor 3.1.
+Activate gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26888,9 +25212,7 @@ type GiftCardBulkActivate @doc(category: "Gift cards") @webhookEventsInfo(asyncE
}
"""
-Deactivate gift cards.
-
-Added in Saleor 3.1.
+Deactivate gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26954,8 +25276,6 @@ input ConfigurationItemInput {
"""
Trigger sending a notification with the notify plugin method. Serializes nodes provided as ids parameter and includes this data in the notification payload.
-
-Added in Saleor 3.1.
"""
type ExternalNotificationTrigger {
errors: [ExternalNotificationError!]!
@@ -27507,9 +25827,7 @@ enum PromotionRuleDeleteErrorCode {
}
"""
-Creates/updates translations for a promotion.
-
-Added in Saleor 3.17.
+Creates/updates translations for a promotion.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -27530,9 +25848,7 @@ input PromotionTranslationInput {
}
"""
-Creates/updates translations for a promotion rule.
-
-Added in Saleor 3.17.
+Creates/updates translations for a promotion rule.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -28131,9 +26447,7 @@ enum FileTypesEnum {
}
"""
-Export gift cards to csv file.
-
-Added in Saleor 3.1.
+Export gift cards to csv file.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -28661,18 +26975,10 @@ input PaymentInput @doc(category: "Payments") {
"""
returnUrl: String
- """
- Payment store type.
-
- Added in Saleor 3.1.
- """
+ """Payment store type."""
storePaymentMethod: StorePaymentMethodEnum = NONE
- """
- User public metadata.
-
- Added in Saleor 3.1.
- """
+ """User public metadata."""
metadata: [MetadataInput!]
}
@@ -28851,60 +27157,28 @@ input ChannelCreateInput @doc(category: "Channels") {
"""Determine if channel will be set active or not."""
isActive: Boolean
- """
- The channel stock settings.
-
- Added in Saleor 3.7.
- """
+ """The channel stock settings."""
stockSettings: StockSettingsInput
"""List of shipping zones to assign to the channel."""
addShippingZones: [ID!]
- """
- List of warehouses to assign to the channel.
-
- Added in Saleor 3.5.
- """
+ """List of warehouses to assign to the channel."""
addWarehouses: [ID!]
- """
- The channel order settings
-
- Added in Saleor 3.12.
- """
+ """The channel order settings"""
orderSettings: OrderSettingsInput
- """
- Channel public metadata.
-
- Added in Saleor 3.15.
- """
+ """Channel public metadata."""
metadata: [MetadataInput!]
- """
- Channel private metadata.
-
- Added in Saleor 3.15.
- """
+ """Channel private metadata."""
privateMetadata: [MetadataInput!]
- """
- The channel checkout settings
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The channel checkout settings"""
checkoutSettings: CheckoutSettingsInput
- """
- The channel payment settings
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The channel payment settings"""
paymentSettings: PaymentSettingsInput
"""Name of the channel."""
@@ -28918,8 +27192,6 @@ input ChannelCreateInput @doc(category: "Channels") {
"""
Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.
-
- Added in Saleor 3.1.
"""
defaultCountry: CountryCode!
}
@@ -28944,19 +27216,11 @@ input OrderSettingsInput @doc(category: "Orders") {
"""
Expiration time in minutes. Default null - means do not expire any orders. Enter 0 or null to disable.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
expireOrdersAfter: Minute
"""
The time in days after expired orders will be deleted.Allowed range is from 1 to 120.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
deleteExpiredOrdersAfter: Day
@@ -28964,19 +27228,11 @@ input OrderSettingsInput @doc(category: "Orders") {
Determine what strategy will be used to mark the order as paid. Based on the chosen option, the proper object will be created and attached to the order when it's manually marked as paid.
`PAYMENT_FLOW` - [default option] creates the `Payment` object.
`TRANSACTION_FLOW` - creates the `TransactionItem` object.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
markAsPaidStrategy: MarkAsPaidStrategyEnum
"""
Determine if it is possible to place unpaid order by calling `checkoutComplete` mutation.
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
allowUnpaidOrders: Boolean
@@ -28996,8 +27252,6 @@ input CheckoutSettingsInput @doc(category: "Checkout") {
"""
Default `true`. Determines if the checkout mutations should use legacy error flow. In legacy flow, all mutations can raise an exception unrelated to the requested action - (e.g. out-of-stock exception when updating checkoutShippingAddress.) If `false`, the errors will be aggregated in `checkout.problems` field. Some of the `problems` can block the finalizing checkout process. The legacy flow will be removed in Saleor 4.0. The flow with `checkout.problems` will be the default one.
- Added in Saleor 3.15.
-
DEPRECATED: this field will be removed in Saleor 4.0.
"""
useLegacyErrorFlow: Boolean
@@ -29013,10 +27267,6 @@ input CheckoutSettingsInput @doc(category: "Checkout") {
input PaymentSettingsInput @doc(category: "Payments") {
"""
Determine the transaction flow strategy to be used. Include the selected option in the payload sent to the payment app, as a requested action for the transaction.
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
defaultTransactionFlowStrategy: TransactionFlowStrategyEnum
}
@@ -29043,60 +27293,28 @@ input ChannelUpdateInput @doc(category: "Channels") {
"""Determine if channel will be set active or not."""
isActive: Boolean
- """
- The channel stock settings.
-
- Added in Saleor 3.7.
- """
+ """The channel stock settings."""
stockSettings: StockSettingsInput
"""List of shipping zones to assign to the channel."""
addShippingZones: [ID!]
- """
- List of warehouses to assign to the channel.
-
- Added in Saleor 3.5.
- """
+ """List of warehouses to assign to the channel."""
addWarehouses: [ID!]
- """
- The channel order settings
-
- Added in Saleor 3.12.
- """
+ """The channel order settings"""
orderSettings: OrderSettingsInput
- """
- Channel public metadata.
-
- Added in Saleor 3.15.
- """
+ """Channel public metadata."""
metadata: [MetadataInput!]
- """
- Channel private metadata.
-
- Added in Saleor 3.15.
- """
+ """Channel private metadata."""
privateMetadata: [MetadataInput!]
- """
- The channel checkout settings
-
- Added in Saleor 3.15.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The channel checkout settings"""
checkoutSettings: CheckoutSettingsInput
- """
- The channel payment settings
-
- Added in Saleor 3.16.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The channel payment settings"""
paymentSettings: PaymentSettingsInput
"""Name of the channel."""
@@ -29107,19 +27325,13 @@ input ChannelUpdateInput @doc(category: "Channels") {
"""
Default country for the channel. Default country can be used in checkout to determine the stock quantities or calculate taxes when the country was not explicitly provided.
-
- Added in Saleor 3.1.
"""
defaultCountry: CountryCode
"""List of shipping zones to unassign from the channel."""
removeShippingZones: [ID!]
- """
- List of warehouses to unassign from the channel.
-
- Added in Saleor 3.5.
- """
+ """List of warehouses to unassign from the channel."""
removeWarehouses: [ID!]
}
@@ -29175,9 +27387,7 @@ type ChannelDeactivate @doc(category: "Channels") @webhookEventsInfo(asyncEvents
}
"""
-Reorder the warehouses of a channel.
-
-Added in Saleor 3.7.
+Reorder the warehouses of a channel.
Requires one of the following permissions: MANAGE_CHANNELS.
"""
@@ -29281,11 +27491,7 @@ input AttributeCreateInput @doc(category: "Attributes") {
"""
availableInGrid: Boolean
- """
- External ID of this attribute.
-
- Added in Saleor 3.10.
- """
+ """External ID of this attribute."""
externalReference: String
}
@@ -29317,11 +27523,7 @@ input AttributeValueCreateInput @doc(category: "Attributes") {
"""File content type."""
contentType: String
- """
- External ID of this attribute value.
-
- Added in Saleor 3.10.
- """
+ """External ID of this attribute value."""
externalReference: String
"""Name of a value displayed in the interface."""
@@ -29410,11 +27612,7 @@ input AttributeUpdateInput @doc(category: "Attributes") {
"""
availableInGrid: Boolean
- """
- External ID of this product.
-
- Added in Saleor 3.10.
- """
+ """External ID of this product."""
externalReference: String
}
@@ -29446,11 +27644,7 @@ input AttributeValueUpdateInput @doc(category: "Attributes") {
"""File content type."""
contentType: String
- """
- External ID of this attribute value.
-
- Added in Saleor 3.10.
- """
+ """External ID of this attribute value."""
externalReference: String
"""Name of a value displayed in the interface."""
@@ -29460,10 +27654,6 @@ input AttributeValueUpdateInput @doc(category: "Attributes") {
"""
Creates attributes.
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Triggers the following webhook events:
- ATTRIBUTE_CREATED (async): An attribute was created.
"""
@@ -29512,10 +27702,6 @@ enum AttributeBulkCreateErrorCode @doc(category: "Attributes") {
"""
Updates attributes.
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-
Triggers the following webhook events:
- ATTRIBUTE_UPDATED (async): An attribute was updated. Optionally called when new attribute value was created or deleted.
- ATTRIBUTE_VALUE_CREATED (async): Called optionally when an attribute value was created.
@@ -29586,11 +27772,7 @@ type AttributeTranslate @doc(category: "Attributes") {
}
"""
-Creates/updates translations for attributes.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Creates/updates translations for attributes.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -29728,11 +27910,7 @@ type AttributeValueUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncE
}
"""
-Creates/updates translations for attributes values.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Creates/updates translations for attributes values.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -30064,45 +28242,19 @@ type Manifest @doc(category: "Apps") {
"""
extensions: [AppManifestExtension!]!
- """
- List of the app's webhooks.
-
- Added in Saleor 3.5.
- """
+ """List of the app's webhooks."""
webhooks: [AppManifestWebhook!]!
- """
- The audience that will be included in all JWT tokens for the app.
-
- Added in Saleor 3.8.
- """
+ """The audience that will be included in all JWT tokens for the app."""
audience: String
- """
- Determines the app's required Saleor version as semver range.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Determines the app's required Saleor version as semver range."""
requiredSaleorVersion: AppManifestRequiredSaleorVersion
- """
- The App's author name.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """The App's author name."""
author: String
- """
- App's brand data.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """App's brand data."""
brand: AppManifestBrand
}
@@ -30141,58 +28293,22 @@ type AppManifestWebhook @doc(category: "Apps") {
}
type AppManifestRequiredSaleorVersion @doc(category: "Apps") {
- """
- Required Saleor version as semver range.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Required Saleor version as semver range."""
constraint: String!
- """
- Informs if the Saleor version matches the required one.
-
- Added in Saleor 3.13.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Informs if the Saleor version matches the required one."""
satisfied: Boolean!
}
-"""
-Represents the app's manifest brand data.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Represents the app's manifest brand data."""
type AppManifestBrand @doc(category: "Apps") {
- """
- App's logos details.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """App's logos details."""
logo: AppManifestBrandLogo!
}
-"""
-Represents the app's manifest brand data.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Represents the app's manifest brand data."""
type AppManifestBrandLogo @doc(category: "Apps") {
- """
- Data URL with a base64 encoded logo image.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Data URL with a base64 encoded logo image."""
default(
"""
Desired longest side the image in pixels. Defaults to 4096. Images are never cropped. Pass 0 to retrieve the original size (not recommended).
@@ -30201,10 +28317,6 @@ type AppManifestBrandLogo @doc(category: "Apps") {
"""
The format of the image. When not provided, format of the original image will be used.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
format: IconThumbnailFormatEnum = ORIGINAL
): String!
@@ -30433,11 +28545,7 @@ type RequestPasswordReset @doc(category: "Users") @webhookEventsInfo(asyncEvents
}
"""
-Sends a notification confirmation.
-
-Added in Saleor 3.15.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Sends a notification confirmation.
Requires one of the following permissions: AUTHENTICATED_USER.
@@ -30685,11 +28793,7 @@ input AccountInput @doc(category: "Users") {
"""Shipping address of the customer."""
defaultShippingAddress: AddressInput
- """
- Fields required to update the user metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user metadata."""
metadata: [MetadataInput!]
}
@@ -30823,35 +28927,21 @@ input UserCreateInput @doc(category: "Users") {
"""A note about the user."""
note: String
- """
- Fields required to update the user metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the user private metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user private metadata."""
privateMetadata: [MetadataInput!]
"""User language code."""
languageCode: LanguageCodeEnum
- """
- External ID of the customer.
-
- Added in Saleor 3.10.
- """
+ """External ID of the customer."""
externalReference: String
"""
User account is confirmed.
- Added in Saleor 3.15.
-
DEPRECATED: this field will be removed in Saleor 4.0.
The user will be always set as unconfirmed. The confirmation will take place when the user sets the password.
@@ -30906,35 +28996,19 @@ input CustomerInput @doc(category: "Users") {
"""A note about the user."""
note: String
- """
- Fields required to update the user metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the user private metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user private metadata."""
privateMetadata: [MetadataInput!]
"""User language code."""
languageCode: LanguageCodeEnum
- """
- External ID of the customer.
-
- Added in Saleor 3.10.
- """
+ """External ID of the customer."""
externalReference: String
- """
- User account is confirmed.
-
- Added in Saleor 3.15.
- """
+ """User account is confirmed."""
isConfirmed: Boolean
}
@@ -30968,11 +29042,7 @@ type CustomerBulkDelete @doc(category: "Users") @webhookEventsInfo(asyncEvents:
}
"""
-Updates customers.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Updates customers.
Requires one of the following permissions: MANAGE_USERS.
@@ -31090,18 +29160,10 @@ input StaffCreateInput @doc(category: "Users") {
"""A note about the user."""
note: String
- """
- Fields required to update the user metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the user private metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user private metadata."""
privateMetadata: [MetadataInput!]
"""List of permission group IDs to which user should be assigned."""
@@ -31144,18 +29206,10 @@ input StaffUpdateInput @doc(category: "Users") {
"""A note about the user."""
note: String
- """
- Fields required to update the user metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user metadata."""
metadata: [MetadataInput!]
- """
- Fields required to update the user private metadata.
-
- Added in Saleor 3.14.
- """
+ """Fields required to update the user private metadata."""
privateMetadata: [MetadataInput!]
"""List of permission group IDs to which user should be assigned."""
@@ -31285,13 +29339,7 @@ input PermissionGroupCreateInput @doc(category: "Users") {
"""List of users to assign to this group."""
addUsers: [ID!]
- """
- List of channels to assign to this group.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of channels to assign to this group."""
addChannels: [ID!]
"""Group name."""
@@ -31299,10 +29347,6 @@ input PermissionGroupCreateInput @doc(category: "Users") {
"""
Determine if the group has restricted access to channels. DEFAULT: False
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
restrictedAccessToChannels: Boolean = false
}
@@ -31328,13 +29372,7 @@ input PermissionGroupUpdateInput @doc(category: "Users") {
"""List of users to assign to this group."""
addUsers: [ID!]
- """
- List of channels to assign to this group.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of channels to assign to this group."""
addChannels: [ID!]
"""Group name."""
@@ -31346,22 +29384,10 @@ input PermissionGroupUpdateInput @doc(category: "Users") {
"""List of users to unassign from this group."""
removeUsers: [ID!]
- """
- List of channels to unassign from this group.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """List of channels to unassign from this group."""
removeChannels: [ID!]
- """
- Determine if the group has restricted access to channels.
-
- Added in Saleor 3.14.
-
- Note: this API is currently in Feature Preview and can be subject to changes at later point.
- """
+ """Determine if the group has restricted access to channels."""
restrictedAccessToChannels: Boolean
}
@@ -31380,11 +29406,7 @@ type PermissionGroupDelete @doc(category: "Users") @webhookEventsInfo(asyncEvent
}
type Subscription @doc(category: "Miscellaneous") {
- """
- Look up subscription event.
-
- Added in Saleor 3.2.
- """
+ """Look up subscription event."""
event: Event
"""
@@ -31614,11 +29636,7 @@ interface Event {
union IssuingPrincipal = App | User
-"""
-Event sent when new draft order is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new draft order is created."""
type DraftOrderCreated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31636,11 +29654,7 @@ type DraftOrderCreated implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when draft order is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when draft order is updated."""
type DraftOrderUpdated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31658,11 +29672,7 @@ type DraftOrderUpdated implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when draft order is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when draft order is deleted."""
type DraftOrderDeleted implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31680,11 +29690,7 @@ type DraftOrderDeleted implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when new order is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new order is created."""
type OrderCreated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31702,11 +29708,7 @@ type OrderCreated implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when order is updated."""
type OrderUpdated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31724,11 +29726,7 @@ type OrderUpdated implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order is confirmed.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when order is confirmed."""
type OrderConfirmed implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31746,13 +29744,7 @@ type OrderConfirmed implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Payment has been made. The order may be partially or fully paid.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Payment has been made. The order may be partially or fully paid."""
type OrderPaid implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31770,11 +29762,7 @@ type OrderPaid implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order is fully paid.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when order is fully paid."""
type OrderFullyPaid implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31794,10 +29782,6 @@ type OrderFullyPaid implements Event @doc(category: "Orders") {
"""
The order received a refund. The order may be partially or fully refunded.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
type OrderRefunded implements Event @doc(category: "Orders") {
"""Time of the event."""
@@ -31816,13 +29800,7 @@ type OrderRefunded implements Event @doc(category: "Orders") {
order: Order
}
-"""
-The order is fully refunded.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""The order is fully refunded."""
type OrderFullyRefunded implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31840,11 +29818,7 @@ type OrderFullyRefunded implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order is fulfilled.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when order is fulfilled."""
type OrderFulfilled implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31862,11 +29836,7 @@ type OrderFulfilled implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order is canceled.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when order is canceled."""
type OrderCancelled implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31884,13 +29854,7 @@ type OrderCancelled implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order becomes expired.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when order becomes expired."""
type OrderExpired implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31908,11 +29872,7 @@ type OrderExpired implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when order metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when order metadata is updated."""
type OrderMetadataUpdated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31930,13 +29890,7 @@ type OrderMetadataUpdated implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when orders are imported.
-
-Added in Saleor 3.14.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when orders are imported."""
type OrderBulkCreated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -31994,8 +29948,6 @@ enum VolumeUnitsEnum {
"""
Event sent when account confirmation requested. This event is always sent. enableAccountConfirmationByEmail flag set to True is not required.
-
-Added in Saleor 3.15.
"""
type AccountConfirmationRequested implements Event @doc(category: "Users") {
"""Time of the event."""
@@ -32026,11 +29978,7 @@ type AccountConfirmationRequested implements Event @doc(category: "Users") {
shop: Shop
}
-"""
-Event sent when account change email is requested.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when account change email is requested."""
type AccountChangeEmailRequested implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32063,11 +30011,7 @@ type AccountChangeEmailRequested implements Event @doc(category: "Users") {
newEmail: String
}
-"""
-Event sent when account email is changed.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when account email is changed."""
type AccountEmailChanged implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32100,11 +30044,7 @@ type AccountEmailChanged implements Event @doc(category: "Users") {
newEmail: String
}
-"""
-Event sent when setting a new password is requested.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when setting a new password is requested."""
type AccountSetPasswordRequested implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32134,11 +30074,7 @@ type AccountSetPasswordRequested implements Event @doc(category: "Users") {
shop: Shop
}
-"""
-Event sent when account is confirmed.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when account is confirmed."""
type AccountConfirmed implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32168,11 +30104,7 @@ type AccountConfirmed implements Event @doc(category: "Users") {
shop: Shop
}
-"""
-Event sent when account delete is requested.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when account delete is requested."""
type AccountDeleteRequested implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32202,11 +30134,7 @@ type AccountDeleteRequested implements Event @doc(category: "Users") {
shop: Shop
}
-"""
-Event sent when account is deleted.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when account is deleted."""
type AccountDeleted implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32236,11 +30164,7 @@ type AccountDeleted implements Event @doc(category: "Users") {
shop: Shop
}
-"""
-Event sent when new address is created.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when new address is created."""
type AddressCreated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32258,11 +30182,7 @@ type AddressCreated implements Event @doc(category: "Users") {
address: Address
}
-"""
-Event sent when address is updated.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when address is updated."""
type AddressUpdated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32280,11 +30200,7 @@ type AddressUpdated implements Event @doc(category: "Users") {
address: Address
}
-"""
-Event sent when address is deleted.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when address is deleted."""
type AddressDeleted implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -32302,11 +30218,7 @@ type AddressDeleted implements Event @doc(category: "Users") {
address: Address
}
-"""
-Event sent when new app is installed.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when new app is installed."""
type AppInstalled implements Event @doc(category: "Apps") {
"""Time of the event."""
issuedAt: DateTime
@@ -32324,11 +30236,7 @@ type AppInstalled implements Event @doc(category: "Apps") {
app: App
}
-"""
-Event sent when app is updated.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when app is updated."""
type AppUpdated implements Event @doc(category: "Apps") {
"""Time of the event."""
issuedAt: DateTime
@@ -32346,11 +30254,7 @@ type AppUpdated implements Event @doc(category: "Apps") {
app: App
}
-"""
-Event sent when app is deleted.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when app is deleted."""
type AppDeleted implements Event @doc(category: "Apps") {
"""Time of the event."""
issuedAt: DateTime
@@ -32368,11 +30272,7 @@ type AppDeleted implements Event @doc(category: "Apps") {
app: App
}
-"""
-Event sent when app status has changed.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when app status has changed."""
type AppStatusChanged implements Event @doc(category: "Apps") {
"""Time of the event."""
issuedAt: DateTime
@@ -32390,11 +30290,7 @@ type AppStatusChanged implements Event @doc(category: "Apps") {
app: App
}
-"""
-Event sent when new attribute is created.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when new attribute is created."""
type AttributeCreated implements Event @doc(category: "Attributes") {
"""Time of the event."""
issuedAt: DateTime
@@ -32412,11 +30308,7 @@ type AttributeCreated implements Event @doc(category: "Attributes") {
attribute: Attribute
}
-"""
-Event sent when attribute is updated.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when attribute is updated."""
type AttributeUpdated implements Event @doc(category: "Attributes") {
"""Time of the event."""
issuedAt: DateTime
@@ -32434,11 +30326,7 @@ type AttributeUpdated implements Event @doc(category: "Attributes") {
attribute: Attribute
}
-"""
-Event sent when attribute is deleted.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when attribute is deleted."""
type AttributeDeleted implements Event @doc(category: "Attributes") {
"""Time of the event."""
issuedAt: DateTime
@@ -32456,11 +30344,7 @@ type AttributeDeleted implements Event @doc(category: "Attributes") {
attribute: Attribute
}
-"""
-Event sent when new attribute value is created.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when new attribute value is created."""
type AttributeValueCreated implements Event @doc(category: "Attributes") {
"""Time of the event."""
issuedAt: DateTime
@@ -32478,11 +30362,7 @@ type AttributeValueCreated implements Event @doc(category: "Attributes") {
attributeValue: AttributeValue
}
-"""
-Event sent when attribute value is updated.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when attribute value is updated."""
type AttributeValueUpdated implements Event @doc(category: "Attributes") {
"""Time of the event."""
issuedAt: DateTime
@@ -32500,11 +30380,7 @@ type AttributeValueUpdated implements Event @doc(category: "Attributes") {
attributeValue: AttributeValue
}
-"""
-Event sent when attribute value is deleted.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when attribute value is deleted."""
type AttributeValueDeleted implements Event @doc(category: "Attributes") {
"""Time of the event."""
issuedAt: DateTime
@@ -32522,11 +30398,7 @@ type AttributeValueDeleted implements Event @doc(category: "Attributes") {
attributeValue: AttributeValue
}
-"""
-Event sent when new category is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new category is created."""
type CategoryCreated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -32544,11 +30416,7 @@ type CategoryCreated implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when category is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when category is updated."""
type CategoryUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -32566,11 +30434,7 @@ type CategoryUpdated implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when category is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when category is deleted."""
type CategoryDeleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -32588,11 +30452,7 @@ type CategoryDeleted implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when new channel is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new channel is created."""
type ChannelCreated implements Event @doc(category: "Channels") {
"""Time of the event."""
issuedAt: DateTime
@@ -32610,11 +30470,7 @@ type ChannelCreated implements Event @doc(category: "Channels") {
channel: Channel
}
-"""
-Event sent when channel is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when channel is updated."""
type ChannelUpdated implements Event @doc(category: "Channels") {
"""Time of the event."""
issuedAt: DateTime
@@ -32632,11 +30488,7 @@ type ChannelUpdated implements Event @doc(category: "Channels") {
channel: Channel
}
-"""
-Event sent when channel is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when channel is deleted."""
type ChannelDeleted implements Event @doc(category: "Channels") {
"""Time of the event."""
issuedAt: DateTime
@@ -32654,11 +30506,7 @@ type ChannelDeleted implements Event @doc(category: "Channels") {
channel: Channel
}
-"""
-Event sent when channel status has changed.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when channel status has changed."""
type ChannelStatusChanged implements Event @doc(category: "Channels") {
"""Time of the event."""
issuedAt: DateTime
@@ -32676,11 +30524,7 @@ type ChannelStatusChanged implements Event @doc(category: "Channels") {
channel: Channel
}
-"""
-Event sent when channel metadata is updated.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when channel metadata is updated."""
type ChannelMetadataUpdated implements Event @doc(category: "Channels") {
"""Time of the event."""
issuedAt: DateTime
@@ -32698,11 +30542,7 @@ type ChannelMetadataUpdated implements Event @doc(category: "Channels") {
channel: Channel
}
-"""
-Event sent when new gift card is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new gift card is created."""
type GiftCardCreated implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32720,11 +30560,7 @@ type GiftCardCreated implements Event @doc(category: "Gift cards") {
giftCard: GiftCard
}
-"""
-Event sent when gift card is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when gift card is updated."""
type GiftCardUpdated implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32742,11 +30578,7 @@ type GiftCardUpdated implements Event @doc(category: "Gift cards") {
giftCard: GiftCard
}
-"""
-Event sent when gift card is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when gift card is deleted."""
type GiftCardDeleted implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32764,13 +30596,7 @@ type GiftCardDeleted implements Event @doc(category: "Gift cards") {
giftCard: GiftCard
}
-"""
-Event sent when gift card is e-mailed.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when gift card is e-mailed."""
type GiftCardSent implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32794,11 +30620,7 @@ type GiftCardSent implements Event @doc(category: "Gift cards") {
sentToEmail: String
}
-"""
-Event sent when gift card status has changed.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when gift card status has changed."""
type GiftCardStatusChanged implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32816,11 +30638,7 @@ type GiftCardStatusChanged implements Event @doc(category: "Gift cards") {
giftCard: GiftCard
}
-"""
-Event sent when gift card metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when gift card metadata is updated."""
type GiftCardMetadataUpdated implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32838,11 +30656,7 @@ type GiftCardMetadataUpdated implements Event @doc(category: "Gift cards") {
giftCard: GiftCard
}
-"""
-Event sent when gift card export is completed.
-
-Added in Saleor 3.16.
-"""
+"""Event sent when gift card export is completed."""
type GiftCardExportCompleted implements Event @doc(category: "Gift cards") {
"""Time of the event."""
issuedAt: DateTime
@@ -32860,11 +30674,7 @@ type GiftCardExportCompleted implements Event @doc(category: "Gift cards") {
export: ExportFile
}
-"""
-Event sent when new menu is created.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when new menu is created."""
type MenuCreated implements Event @doc(category: "Menu") {
"""Time of the event."""
issuedAt: DateTime
@@ -32885,11 +30695,7 @@ type MenuCreated implements Event @doc(category: "Menu") {
): Menu
}
-"""
-Event sent when menu is updated.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when menu is updated."""
type MenuUpdated implements Event @doc(category: "Menu") {
"""Time of the event."""
issuedAt: DateTime
@@ -32910,11 +30716,7 @@ type MenuUpdated implements Event @doc(category: "Menu") {
): Menu
}
-"""
-Event sent when menu is deleted.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when menu is deleted."""
type MenuDeleted implements Event @doc(category: "Menu") {
"""Time of the event."""
issuedAt: DateTime
@@ -32935,11 +30737,7 @@ type MenuDeleted implements Event @doc(category: "Menu") {
): Menu
}
-"""
-Event sent when new menu item is created.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when new menu item is created."""
type MenuItemCreated implements Event @doc(category: "Menu") {
"""Time of the event."""
issuedAt: DateTime
@@ -32960,11 +30758,7 @@ type MenuItemCreated implements Event @doc(category: "Menu") {
): MenuItem
}
-"""
-Event sent when menu item is updated.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when menu item is updated."""
type MenuItemUpdated implements Event @doc(category: "Menu") {
"""Time of the event."""
issuedAt: DateTime
@@ -32985,11 +30779,7 @@ type MenuItemUpdated implements Event @doc(category: "Menu") {
): MenuItem
}
-"""
-Event sent when menu item is deleted.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when menu item is deleted."""
type MenuItemDeleted implements Event @doc(category: "Menu") {
"""Time of the event."""
issuedAt: DateTime
@@ -33010,11 +30800,7 @@ type MenuItemDeleted implements Event @doc(category: "Menu") {
): MenuItem
}
-"""
-Event sent when new product is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new product is created."""
type ProductCreated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33038,11 +30824,7 @@ type ProductCreated implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when product is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when product is updated."""
type ProductUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33066,11 +30848,7 @@ type ProductUpdated implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when product is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when product is deleted."""
type ProductDeleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33094,11 +30872,7 @@ type ProductDeleted implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when product metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when product metadata is updated."""
type ProductMetadataUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33122,11 +30896,7 @@ type ProductMetadataUpdated implements Event @doc(category: "Products") {
category: Category
}
-"""
-Event sent when product export is completed.
-
-Added in Saleor 3.16.
-"""
+"""Event sent when product export is completed."""
type ProductExportCompleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33144,11 +30914,7 @@ type ProductExportCompleted implements Event @doc(category: "Products") {
export: ExportFile
}
-"""
-Event sent when new product media is created.
-
-Added in Saleor 3.12.
-"""
+"""Event sent when new product media is created."""
type ProductMediaCreated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33166,11 +30932,7 @@ type ProductMediaCreated implements Event @doc(category: "Products") {
productMedia: ProductMedia
}
-"""
-Event sent when product media is updated.
-
-Added in Saleor 3.12.
-"""
+"""Event sent when product media is updated."""
type ProductMediaUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33188,11 +30950,7 @@ type ProductMediaUpdated implements Event @doc(category: "Products") {
productMedia: ProductMedia
}
-"""
-Event sent when product media is deleted.
-
-Added in Saleor 3.12.
-"""
+"""Event sent when product media is deleted."""
type ProductMediaDeleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33210,11 +30968,7 @@ type ProductMediaDeleted implements Event @doc(category: "Products") {
productMedia: ProductMedia
}
-"""
-Event sent when new product variant is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new product variant is created."""
type ProductVariantCreated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33235,11 +30989,7 @@ type ProductVariantCreated implements Event @doc(category: "Products") {
): ProductVariant
}
-"""
-Event sent when product variant is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when product variant is updated."""
type ProductVariantUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33260,11 +31010,7 @@ type ProductVariantUpdated implements Event @doc(category: "Products") {
): ProductVariant
}
-"""
-Event sent when product variant is out of stock.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when product variant is out of stock."""
type ProductVariantOutOfStock implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33288,11 +31034,7 @@ type ProductVariantOutOfStock implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when product variant is back in stock.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when product variant is back in stock."""
type ProductVariantBackInStock implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33316,13 +31058,7 @@ type ProductVariantBackInStock implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when product variant stock is updated.
-
-Added in Saleor 3.11.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when product variant stock is updated."""
type ProductVariantStockUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33346,11 +31082,7 @@ type ProductVariantStockUpdated implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when product variant is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when product variant is deleted."""
type ProductVariantDeleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33371,11 +31103,7 @@ type ProductVariantDeleted implements Event @doc(category: "Products") {
): ProductVariant
}
-"""
-Event sent when product variant metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when product variant metadata is updated."""
type ProductVariantMetadataUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -33399,8 +31127,6 @@ type ProductVariantMetadataUpdated implements Event @doc(category: "Products") {
"""
Event sent when new sale is created.
-Added in Saleor 3.2.
-
DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionCreated` event instead.
"""
type SaleCreated implements Event @doc(category: "Discounts") {
@@ -33426,8 +31152,6 @@ type SaleCreated implements Event @doc(category: "Discounts") {
"""
Event sent when sale is updated.
-Added in Saleor 3.2.
-
DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionUpdated` event instead.
"""
type SaleUpdated implements Event @doc(category: "Discounts") {
@@ -33453,8 +31177,6 @@ type SaleUpdated implements Event @doc(category: "Discounts") {
"""
Event sent when sale is deleted.
-Added in Saleor 3.2.
-
DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionDeleted` event instead.
"""
type SaleDeleted implements Event @doc(category: "Discounts") {
@@ -33480,8 +31202,6 @@ type SaleDeleted implements Event @doc(category: "Discounts") {
"""
The event informs about the start or end of the sale.
-Added in Saleor 3.5.
-
DEPRECATED: this event will be removed in Saleor 4.0. Use `PromotionStarted` and `PromotionEnded` events instead.
"""
type SaleToggle implements Event @doc(category: "Discounts") {
@@ -33497,24 +31217,14 @@ type SaleToggle implements Event @doc(category: "Discounts") {
"""The application receiving the webhook."""
recipient: App
- """
- The sale the event relates to.
-
- Added in Saleor 3.5.
- """
+ """The sale the event relates to."""
sale(
"""Slug of a channel for which the data should be returned."""
channel: String
): Sale
}
-"""
-Event sent when new promotion is created.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when new promotion is created."""
type PromotionCreated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33532,13 +31242,7 @@ type PromotionCreated implements Event @doc(category: "Discounts") {
promotion: Promotion
}
-"""
-Event sent when promotion is updated.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when promotion is updated."""
type PromotionUpdated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33556,13 +31260,7 @@ type PromotionUpdated implements Event @doc(category: "Discounts") {
promotion: Promotion
}
-"""
-Event sent when promotion is deleted.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when promotion is deleted."""
type PromotionDeleted implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33580,13 +31278,7 @@ type PromotionDeleted implements Event @doc(category: "Discounts") {
promotion: Promotion
}
-"""
-The event informs about the start of the promotion.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""The event informs about the start of the promotion."""
type PromotionStarted implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33604,13 +31296,7 @@ type PromotionStarted implements Event @doc(category: "Discounts") {
promotion: Promotion
}
-"""
-The event informs about the end of the promotion.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""The event informs about the end of the promotion."""
type PromotionEnded implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33628,13 +31314,7 @@ type PromotionEnded implements Event @doc(category: "Discounts") {
promotion: Promotion
}
-"""
-Event sent when new promotion rule is created.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when new promotion rule is created."""
type PromotionRuleCreated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33652,13 +31332,7 @@ type PromotionRuleCreated implements Event @doc(category: "Discounts") {
promotionRule: PromotionRule
}
-"""
-Event sent when new promotion rule is updated.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when new promotion rule is updated."""
type PromotionRuleUpdated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33676,13 +31350,7 @@ type PromotionRuleUpdated implements Event @doc(category: "Discounts") {
promotionRule: PromotionRule
}
-"""
-Event sent when new promotion rule is deleted.
-
-Added in Saleor 3.17.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when new promotion rule is deleted."""
type PromotionRuleDeleted implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -33700,11 +31368,7 @@ type PromotionRuleDeleted implements Event @doc(category: "Discounts") {
promotionRule: PromotionRule
}
-"""
-Event sent when invoice is requested.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when invoice is requested."""
type InvoiceRequested implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33721,19 +31385,11 @@ type InvoiceRequested implements Event @doc(category: "Orders") {
"""The invoice the event relates to."""
invoice: Invoice
- """
- Order related to the invoice.
-
- Added in Saleor 3.10.
- """
+ """Order related to the invoice."""
order: Order!
}
-"""
-Event sent when invoice is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when invoice is deleted."""
type InvoiceDeleted implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33750,19 +31406,11 @@ type InvoiceDeleted implements Event @doc(category: "Orders") {
"""The invoice the event relates to."""
invoice: Invoice
- """
- Order related to the invoice.
-
- Added in Saleor 3.10.
- """
+ """Order related to the invoice."""
order: Order
}
-"""
-Event sent when invoice is sent.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when invoice is sent."""
type InvoiceSent implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33779,19 +31427,11 @@ type InvoiceSent implements Event @doc(category: "Orders") {
"""The invoice the event relates to."""
invoice: Invoice
- """
- Order related to the invoice.
-
- Added in Saleor 3.10.
- """
+ """Order related to the invoice."""
order: Order
}
-"""
-Event sent when new fulfillment is created.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when new fulfillment is created."""
type FulfillmentCreated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33811,19 +31451,11 @@ type FulfillmentCreated implements Event @doc(category: "Orders") {
"""The order the fulfillment belongs to."""
order: Order
- """
- If true, the app should send a notification to the customer.
-
- Added in Saleor 3.16.
- """
+ """If true, the app should send a notification to the customer."""
notifyCustomer: Boolean!
}
-"""
-Event sent when the tracking number is updated.
-
-Added in Saleor 3.16.
-"""
+"""Event sent when the tracking number is updated."""
type FulfillmentTrackingNumberUpdated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33844,11 +31476,7 @@ type FulfillmentTrackingNumberUpdated implements Event @doc(category: "Orders")
order: Order
}
-"""
-Event sent when fulfillment is canceled.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when fulfillment is canceled."""
type FulfillmentCanceled implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33869,11 +31497,7 @@ type FulfillmentCanceled implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when fulfillment is approved.
-
-Added in Saleor 3.7.
-"""
+"""Event sent when fulfillment is approved."""
type FulfillmentApproved implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33893,19 +31517,11 @@ type FulfillmentApproved implements Event @doc(category: "Orders") {
"""The order the fulfillment belongs to."""
order: Order
- """
- If true, send a notification to the customer.
-
- Added in Saleor 3.16.
- """
+ """If true, send a notification to the customer."""
notifyCustomer: Boolean!
}
-"""
-Event sent when fulfillment metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when fulfillment metadata is updated."""
type FulfillmentMetadataUpdated implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -33926,11 +31542,7 @@ type FulfillmentMetadataUpdated implements Event @doc(category: "Orders") {
order: Order
}
-"""
-Event sent when new customer user is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new customer user is created."""
type CustomerCreated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -33948,11 +31560,7 @@ type CustomerCreated implements Event @doc(category: "Users") {
user: User
}
-"""
-Event sent when customer user is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when customer user is updated."""
type CustomerUpdated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -33970,11 +31578,7 @@ type CustomerUpdated implements Event @doc(category: "Users") {
user: User
}
-"""
-Event sent when customer user metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when customer user metadata is updated."""
type CustomerMetadataUpdated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -33992,11 +31596,7 @@ type CustomerMetadataUpdated implements Event @doc(category: "Users") {
user: User
}
-"""
-Event sent when new collection is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new collection is created."""
type CollectionCreated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34017,11 +31617,7 @@ type CollectionCreated implements Event @doc(category: "Products") {
): Collection
}
-"""
-Event sent when collection is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when collection is updated."""
type CollectionUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34042,11 +31638,7 @@ type CollectionUpdated implements Event @doc(category: "Products") {
): Collection
}
-"""
-Event sent when collection is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when collection is deleted."""
type CollectionDeleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34067,11 +31659,7 @@ type CollectionDeleted implements Event @doc(category: "Products") {
): Collection
}
-"""
-Event sent when collection metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when collection metadata is updated."""
type CollectionMetadataUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34092,11 +31680,7 @@ type CollectionMetadataUpdated implements Event @doc(category: "Products") {
): Collection
}
-"""
-Event sent when new checkout is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new checkout is created."""
type CheckoutCreated implements Event @doc(category: "Checkout") {
"""Time of the event."""
issuedAt: DateTime
@@ -34114,11 +31698,7 @@ type CheckoutCreated implements Event @doc(category: "Checkout") {
checkout: Checkout
}
-"""
-Event sent when checkout is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when checkout is updated."""
type CheckoutUpdated implements Event @doc(category: "Checkout") {
"""Time of the event."""
issuedAt: DateTime
@@ -34138,10 +31718,6 @@ type CheckoutUpdated implements Event @doc(category: "Checkout") {
"""
Event sent when checkout is fully paid with transactions. The checkout is considered as fully paid when the checkout `charge_status` is `FULL` or `OVERCHARGED`. The event is not sent when the checkout authorization flow strategy is used.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
type CheckoutFullyPaid implements Event @doc(category: "Checkout") {
"""Time of the event."""
@@ -34160,11 +31736,7 @@ type CheckoutFullyPaid implements Event @doc(category: "Checkout") {
checkout: Checkout
}
-"""
-Event sent when checkout metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when checkout metadata is updated."""
type CheckoutMetadataUpdated implements Event @doc(category: "Checkout") {
"""Time of the event."""
issuedAt: DateTime
@@ -34182,11 +31754,7 @@ type CheckoutMetadataUpdated implements Event @doc(category: "Checkout") {
checkout: Checkout
}
-"""
-Event sent when new page is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new page is created."""
type PageCreated implements Event @doc(category: "Pages") {
"""Time of the event."""
issuedAt: DateTime
@@ -34204,11 +31772,7 @@ type PageCreated implements Event @doc(category: "Pages") {
page: Page
}
-"""
-Event sent when page is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when page is updated."""
type PageUpdated implements Event @doc(category: "Pages") {
"""Time of the event."""
issuedAt: DateTime
@@ -34226,11 +31790,7 @@ type PageUpdated implements Event @doc(category: "Pages") {
page: Page
}
-"""
-Event sent when page is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when page is deleted."""
type PageDeleted implements Event @doc(category: "Pages") {
"""Time of the event."""
issuedAt: DateTime
@@ -34248,11 +31808,7 @@ type PageDeleted implements Event @doc(category: "Pages") {
page: Page
}
-"""
-Event sent when new page type is created.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when new page type is created."""
type PageTypeCreated implements Event @doc(category: "Pages") {
"""Time of the event."""
issuedAt: DateTime
@@ -34270,11 +31826,7 @@ type PageTypeCreated implements Event @doc(category: "Pages") {
pageType: PageType
}
-"""
-Event sent when page type is updated.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when page type is updated."""
type PageTypeUpdated implements Event @doc(category: "Pages") {
"""Time of the event."""
issuedAt: DateTime
@@ -34292,11 +31844,7 @@ type PageTypeUpdated implements Event @doc(category: "Pages") {
pageType: PageType
}
-"""
-Event sent when page type is deleted.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when page type is deleted."""
type PageTypeDeleted implements Event @doc(category: "Pages") {
"""Time of the event."""
issuedAt: DateTime
@@ -34314,11 +31862,7 @@ type PageTypeDeleted implements Event @doc(category: "Pages") {
pageType: PageType
}
-"""
-Event sent when new permission group is created.
-
-Added in Saleor 3.6.
-"""
+"""Event sent when new permission group is created."""
type PermissionGroupCreated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34336,11 +31880,7 @@ type PermissionGroupCreated implements Event @doc(category: "Users") {
permissionGroup: Group
}
-"""
-Event sent when permission group is updated.
-
-Added in Saleor 3.6.
-"""
+"""Event sent when permission group is updated."""
type PermissionGroupUpdated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34358,11 +31898,7 @@ type PermissionGroupUpdated implements Event @doc(category: "Users") {
permissionGroup: Group
}
-"""
-Event sent when permission group is deleted.
-
-Added in Saleor 3.6.
-"""
+"""Event sent when permission group is deleted."""
type PermissionGroupDeleted implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34380,11 +31916,7 @@ type PermissionGroupDeleted implements Event @doc(category: "Users") {
permissionGroup: Group
}
-"""
-Event sent when new shipping price is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new shipping price is created."""
type ShippingPriceCreated implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34411,11 +31943,7 @@ type ShippingPriceCreated implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when shipping price is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when shipping price is updated."""
type ShippingPriceUpdated implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34442,11 +31970,7 @@ type ShippingPriceUpdated implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when shipping price is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when shipping price is deleted."""
type ShippingPriceDeleted implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34473,11 +31997,7 @@ type ShippingPriceDeleted implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when new shipping zone is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new shipping zone is created."""
type ShippingZoneCreated implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34498,11 +32018,7 @@ type ShippingZoneCreated implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when shipping zone is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when shipping zone is updated."""
type ShippingZoneUpdated implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34523,11 +32039,7 @@ type ShippingZoneUpdated implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when shipping zone is deleted.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when shipping zone is deleted."""
type ShippingZoneDeleted implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34548,11 +32060,7 @@ type ShippingZoneDeleted implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when shipping zone metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when shipping zone metadata is updated."""
type ShippingZoneMetadataUpdated implements Event @doc(category: "Shipping") {
"""Time of the event."""
issuedAt: DateTime
@@ -34573,11 +32081,7 @@ type ShippingZoneMetadataUpdated implements Event @doc(category: "Shipping") {
): ShippingZone
}
-"""
-Event sent when shop metadata is updated.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when shop metadata is updated."""
type ShopMetadataUpdated implements Event {
"""Time of the event."""
issuedAt: DateTime
@@ -34595,11 +32099,7 @@ type ShopMetadataUpdated implements Event {
shop: Shop
}
-"""
-Event sent when new staff user is created.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when new staff user is created."""
type StaffCreated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34617,11 +32117,7 @@ type StaffCreated implements Event @doc(category: "Users") {
user: User
}
-"""
-Event sent when staff user is updated.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when staff user is updated."""
type StaffUpdated implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34639,11 +32135,7 @@ type StaffUpdated implements Event @doc(category: "Users") {
user: User
}
-"""
-Event sent when staff user is deleted.
-
-Added in Saleor 3.5.
-"""
+"""Event sent when staff user is deleted."""
type StaffDeleted implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34661,11 +32153,7 @@ type StaffDeleted implements Event @doc(category: "Users") {
user: User
}
-"""
-Event sent when setting a new password for staff is requested.
-
-Added in Saleor 3.15.
-"""
+"""Event sent when setting a new password for staff is requested."""
type StaffSetPasswordRequested implements Event @doc(category: "Users") {
"""Time of the event."""
issuedAt: DateTime
@@ -34695,11 +32183,7 @@ type StaffSetPasswordRequested implements Event @doc(category: "Users") {
shop: Shop
}
-"""
-Event sent when transaction item metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when transaction item metadata is updated."""
type TransactionItemMetadataUpdated implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -34717,11 +32201,7 @@ type TransactionItemMetadataUpdated implements Event @doc(category: "Payments")
transaction: TransactionItem
}
-"""
-Event sent when new translation is created.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when new translation is created."""
type TranslationCreated implements Event @doc(category: "Miscellaneous") {
"""Time of the event."""
issuedAt: DateTime
@@ -34741,11 +32221,7 @@ type TranslationCreated implements Event @doc(category: "Miscellaneous") {
union TranslationTypes = ProductTranslation | CollectionTranslation | CategoryTranslation | AttributeTranslation | AttributeValueTranslation | ProductVariantTranslation | PageTranslation | ShippingMethodTranslation | VoucherTranslation | MenuItemTranslation | PromotionTranslation | PromotionRuleTranslation | SaleTranslation
-"""
-Event sent when translation is updated.
-
-Added in Saleor 3.2.
-"""
+"""Event sent when translation is updated."""
type TranslationUpdated implements Event @doc(category: "Miscellaneous") {
"""Time of the event."""
issuedAt: DateTime
@@ -34763,11 +32239,7 @@ type TranslationUpdated implements Event @doc(category: "Miscellaneous") {
translation: TranslationTypes
}
-"""
-Event sent when new voucher is created.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when new voucher is created."""
type VoucherCreated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -34788,11 +32260,7 @@ type VoucherCreated implements Event @doc(category: "Discounts") {
): Voucher
}
-"""
-Event sent when voucher is updated.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when voucher is updated."""
type VoucherUpdated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -34813,11 +32281,7 @@ type VoucherUpdated implements Event @doc(category: "Discounts") {
): Voucher
}
-"""
-Event sent when voucher is deleted.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when voucher is deleted."""
type VoucherDeleted implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -34882,11 +32346,7 @@ type VoucherCodesDeleted implements Event {
voucherCodes: [VoucherCode!]
}
-"""
-Event sent when voucher metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when voucher metadata is updated."""
type VoucherMetadataUpdated implements Event @doc(category: "Discounts") {
"""Time of the event."""
issuedAt: DateTime
@@ -34929,11 +32389,7 @@ type VoucherCodeExportCompleted implements Event @doc(category: "Discounts") {
export: ExportFile
}
-"""
-Event sent when new warehouse is created.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when new warehouse is created."""
type WarehouseCreated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34951,11 +32407,7 @@ type WarehouseCreated implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when warehouse is updated.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when warehouse is updated."""
type WarehouseUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34973,11 +32425,7 @@ type WarehouseUpdated implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when warehouse is deleted.
-
-Added in Saleor 3.4.
-"""
+"""Event sent when warehouse is deleted."""
type WarehouseDeleted implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -34995,11 +32443,7 @@ type WarehouseDeleted implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when warehouse metadata is updated.
-
-Added in Saleor 3.8.
-"""
+"""Event sent when warehouse metadata is updated."""
type WarehouseMetadataUpdated implements Event @doc(category: "Products") {
"""Time of the event."""
issuedAt: DateTime
@@ -35017,11 +32461,7 @@ type WarehouseMetadataUpdated implements Event @doc(category: "Products") {
warehouse: Warehouse
}
-"""
-Event sent when thumbnail is created.
-
-Added in Saleor 3.12.
-"""
+"""Event sent when thumbnail is created."""
type ThumbnailCreated implements Event @doc(category: "Miscellaneous") {
"""Time of the event."""
issuedAt: DateTime
@@ -35035,40 +32475,20 @@ type ThumbnailCreated implements Event @doc(category: "Miscellaneous") {
"""The application receiving the webhook."""
recipient: App
- """
- Thumbnail id.
-
- Added in Saleor 3.12.
- """
+ """Thumbnail id."""
id: ID
- """
- Thumbnail url.
-
- Added in Saleor 3.12.
- """
+ """Thumbnail url."""
url: String
- """
- Object the thumbnail refers to.
-
- Added in Saleor 3.12.
- """
+ """Object the thumbnail refers to."""
objectId: ID
- """
- Original media url.
-
- Added in Saleor 3.12.
- """
+ """Original media url."""
mediaUrl: String
}
-"""
-Authorize payment.
-
-Added in Saleor 3.6.
-"""
+"""Authorize payment."""
type PaymentAuthorize implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35086,11 +32506,7 @@ type PaymentAuthorize implements Event @doc(category: "Payments") {
payment: Payment
}
-"""
-Capture payment.
-
-Added in Saleor 3.6.
-"""
+"""Capture payment."""
type PaymentCaptureEvent implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35108,11 +32524,7 @@ type PaymentCaptureEvent implements Event @doc(category: "Payments") {
payment: Payment
}
-"""
-Refund payment.
-
-Added in Saleor 3.6.
-"""
+"""Refund payment."""
type PaymentRefundEvent implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35130,11 +32542,7 @@ type PaymentRefundEvent implements Event @doc(category: "Payments") {
payment: Payment
}
-"""
-Void payment.
-
-Added in Saleor 3.6.
-"""
+"""Void payment."""
type PaymentVoidEvent implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35152,11 +32560,7 @@ type PaymentVoidEvent implements Event @doc(category: "Payments") {
payment: Payment
}
-"""
-Confirm payment.
-
-Added in Saleor 3.6.
-"""
+"""Confirm payment."""
type PaymentConfirmEvent implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35174,11 +32578,7 @@ type PaymentConfirmEvent implements Event @doc(category: "Payments") {
payment: Payment
}
-"""
-Process payment.
-
-Added in Saleor 3.6.
-"""
+"""Process payment."""
type PaymentProcessEvent implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35196,11 +32596,7 @@ type PaymentProcessEvent implements Event @doc(category: "Payments") {
payment: Payment
}
-"""
-List payment gateways.
-
-Added in Saleor 3.6.
-"""
+"""List payment gateways."""
type PaymentListGateways implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35218,13 +32614,7 @@ type PaymentListGateways implements Event @doc(category: "Payments") {
checkout: Checkout
}
-"""
-Event sent when transaction cancelation is requested.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when transaction cancelation is requested."""
type TransactionCancelationRequested implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35252,21 +32642,11 @@ type TransactionAction @doc(category: "Payments") {
"""Transaction request amount. Null when action type is VOID."""
amount: PositiveDecimal
- """
- Currency code.
-
- Added in Saleor 3.16.
- """
+ """Currency code."""
currency: String!
}
-"""
-Event sent when transaction charge is requested.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when transaction charge is requested."""
type TransactionChargeRequested implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35287,13 +32667,7 @@ type TransactionChargeRequested implements Event @doc(category: "Payments") {
action: TransactionAction!
}
-"""
-Event sent when transaction refund is requested.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when transaction refund is requested."""
type TransactionRefundRequested implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35316,18 +32690,12 @@ type TransactionRefundRequested implements Event @doc(category: "Payments") {
"""
Granted refund related to refund request.
- Added in Saleor 3.15.
-
Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
grantedRefund: OrderGrantedRefund
}
-"""
-Filter shipping methods for order.
-
-Added in Saleor 3.6.
-"""
+"""Filter shipping methods for order."""
type OrderFilterShippingMethods implements Event @doc(category: "Orders") {
"""Time of the event."""
issuedAt: DateTime
@@ -35344,19 +32712,11 @@ type OrderFilterShippingMethods implements Event @doc(category: "Orders") {
"""The order the event relates to."""
order: Order
- """
- Shipping methods that can be used with this checkout.
-
- Added in Saleor 3.6.
- """
+ """Shipping methods that can be used with this checkout."""
shippingMethods: [ShippingMethod!]
}
-"""
-Filter shipping methods for checkout.
-
-Added in Saleor 3.6.
-"""
+"""Filter shipping methods for checkout."""
type CheckoutFilterShippingMethods implements Event @doc(category: "Checkout") {
"""Time of the event."""
issuedAt: DateTime
@@ -35373,19 +32733,11 @@ type CheckoutFilterShippingMethods implements Event @doc(category: "Checkout") {
"""The checkout the event relates to."""
checkout: Checkout
- """
- Shipping methods that can be used with this checkout.
-
- Added in Saleor 3.6.
- """
+ """Shipping methods that can be used with this checkout."""
shippingMethods: [ShippingMethod!]
}
-"""
-List shipping methods for checkout.
-
-Added in Saleor 3.6.
-"""
+"""List shipping methods for checkout."""
type ShippingListMethodsForCheckout implements Event @doc(category: "Checkout") {
"""Time of the event."""
issuedAt: DateTime
@@ -35402,19 +32754,11 @@ type ShippingListMethodsForCheckout implements Event @doc(category: "Checkout")
"""The checkout the event relates to."""
checkout: Checkout
- """
- Shipping methods that can be used with this checkout.
-
- Added in Saleor 3.6.
- """
+ """Shipping methods that can be used with this checkout."""
shippingMethods: [ShippingMethod!]
}
-"""
-Synchronous webhook for calculating checkout/order taxes.
-
-Added in Saleor 3.7.
-"""
+"""Synchronous webhook for calculating checkout/order taxes."""
type CalculateTaxes implements Event @doc(category: "Taxes") {
"""Time of the event."""
issuedAt: DateTime
@@ -35511,13 +32855,7 @@ type TaxableObjectLine @doc(category: "Taxes") {
union TaxSourceLine = CheckoutLine | OrderLine
-"""
-Event sent when user wants to initialize the payment gateway.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when user wants to initialize the payment gateway."""
type PaymentGatewayInitializeSession implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35543,13 +32881,7 @@ type PaymentGatewayInitializeSession implements Event @doc(category: "Payments")
union OrderOrCheckout = Checkout | Order
-"""
-Event sent when user starts processing the payment.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when user starts processing the payment."""
type TransactionInitializeSession implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35577,19 +32909,13 @@ type TransactionInitializeSession implements Event @doc(category: "Payments") {
"""
The customer's IP address. If not provided as a parameter in the mutation, Saleor will try to determine the customer's IP address on its own.
-
- Added in Saleor 3.16.
"""
customerIpAddress: String
"""Action to proceed for the transaction"""
action: TransactionProcessAction!
- """
- Idempotency key assigned to the transaction initialize.
-
- Added in Saleor 3.14.
- """
+ """Idempotency key assigned to the transaction initialize."""
idempotencyKey: String!
}
@@ -35602,13 +32928,7 @@ type TransactionProcessAction @doc(category: "Payments") {
actionType: TransactionFlowStrategyEnum!
}
-"""
-Event sent when user has additional payment action to process.
-
-Added in Saleor 3.13.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when user has additional payment action to process."""
type TransactionProcessSession implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35636,8 +32956,6 @@ type TransactionProcessSession implements Event @doc(category: "Payments") {
"""
The customer's IP address. If not provided as a parameter in the mutation, Saleor will try to determine the customer's IP address on its own.
-
- Added in Saleor 3.16.
"""
customerIpAddress: String
@@ -35648,8 +32966,6 @@ type TransactionProcessSession implements Event @doc(category: "Payments") {
"""
List payment methods stored for the user by payment gateway.
-Added in Saleor 3.15.
-
Note: this API is currently in Feature Preview and can be subject to changes at later point.
"""
type ListStoredPaymentMethods implements Event @doc(category: "Payments") {
@@ -35674,13 +32990,7 @@ type ListStoredPaymentMethods implements Event @doc(category: "Payments") {
channel: Channel!
}
-"""
-Event sent when user requests to delete a payment method.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when user requests to delete a payment method."""
type StoredPaymentMethodDeleteRequested implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35709,11 +33019,7 @@ type StoredPaymentMethodDeleteRequested implements Event @doc(category: "Payment
}
"""
-Event sent to initialize a new session in payment gateway to store the payment method.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
+Event sent to initialize a new session in payment gateway to store the payment method.
"""
type PaymentGatewayInitializeTokenizationSession implements Event @doc(category: "Payments") {
"""Time of the event."""
@@ -35738,13 +33044,7 @@ type PaymentGatewayInitializeTokenizationSession implements Event @doc(category:
data: JSON
}
-"""
-Event sent when user requests a tokenization of payment method.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when user requests a tokenization of payment method."""
type PaymentMethodInitializeTokenizationSession implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
@@ -35771,13 +33071,7 @@ type PaymentMethodInitializeTokenizationSession implements Event @doc(category:
paymentFlowToSupport: TokenizedPaymentFlowEnum!
}
-"""
-Event sent when user continues a tokenization of payment method.
-
-Added in Saleor 3.16.
-
-Note: this API is currently in Feature Preview and can be subject to changes at later point.
-"""
+"""Event sent when user continues a tokenization of payment method."""
type PaymentMethodProcessTokenizationSession implements Event @doc(category: "Payments") {
"""Time of the event."""
issuedAt: DateTime
diff --git a/saleor/graphql/shop/mutations/shop_settings_update.py b/saleor/graphql/shop/mutations/shop_settings_update.py
index 3dc2abb11c..d4126189d7 100644
--- a/saleor/graphql/shop/mutations/shop_settings_update.py
+++ b/saleor/graphql/shop/mutations/shop_settings_update.py
@@ -7,12 +7,7 @@ from ....permission.enums import SitePermissions
from ....site.models import DEFAULT_LIMIT_QUANTITY_PER_CHECKOUT
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import (
- ADDED_IN_31,
- ADDED_IN_314,
- ADDED_IN_315,
- DEPRECATED_IN_3X_INPUT,
-)
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_SHOP
from ...core.enums import WeightUnitsEnum
from ...core.mutations import BaseMutation
@@ -39,12 +34,10 @@ class ShopSettingsInput(graphene.InputObjectType):
description="Enable automatic fulfillment for all digital products."
)
fulfillment_auto_approve = graphene.Boolean(
- description="Enable automatic approval of all new fulfillments." + ADDED_IN_31
+ description="Enable automatic approval of all new fulfillments."
)
fulfillment_allow_unpaid = graphene.Boolean(
- description=(
- "Enable ability to approve fulfillments which are unpaid." + ADDED_IN_31
- )
+ description=("Enable ability to approve fulfillments which are unpaid.")
)
default_digital_max_downloads = graphene.Int(
description="Default number of max downloads per digital content URL."
@@ -64,39 +57,37 @@ class ShopSettingsInput(graphene.InputObjectType):
reserve_stock_duration_anonymous_user = graphene.Int(
description=(
"Default number of minutes stock will be reserved for "
- "anonymous checkout. Enter 0 or null to disable." + ADDED_IN_31
+ "anonymous checkout. Enter 0 or null to disable."
)
)
reserve_stock_duration_authenticated_user = graphene.Int(
description=(
"Default number of minutes stock will be reserved for "
- "authenticated checkout. Enter 0 or null to disable." + ADDED_IN_31
+ "authenticated checkout. Enter 0 or null to disable."
)
)
limit_quantity_per_checkout = graphene.Int(
description=(
"Default number of maximum line quantity "
"in single checkout. Minimum possible value is 1, default "
- f"value is {DEFAULT_LIMIT_QUANTITY_PER_CHECKOUT}." + ADDED_IN_31
+ f"value is {DEFAULT_LIMIT_QUANTITY_PER_CHECKOUT}."
)
)
enable_account_confirmation_by_email = graphene.Boolean(
- description="Enable automatic account confirmation by email." + ADDED_IN_314
+ description="Enable automatic account confirmation by email."
)
allow_login_without_confirmation = graphene.Boolean(
- description=(
- "Enable possibility to login without account confirmation." + ADDED_IN_315
- )
+ description=("Enable possibility to login without account confirmation.")
)
metadata = common_types.NonNullList(
MetadataInput,
- description="Shop public metadata." + ADDED_IN_315,
+ description="Shop public metadata.",
required=False,
)
private_metadata = common_types.NonNullList(
MetadataInput,
- description="Shop private metadata." + ADDED_IN_315,
+ description="Shop private metadata.",
required=False,
)
# deprecated
diff --git a/saleor/graphql/tax/mutations/tax_class_create.py b/saleor/graphql/tax/mutations/tax_class_create.py
index 93ba51b0f4..e40b6539bc 100644
--- a/saleor/graphql/tax/mutations/tax_class_create.py
+++ b/saleor/graphql/tax/mutations/tax_class_create.py
@@ -3,7 +3,6 @@ import graphene
from ....permission.enums import CheckoutPermissions
from ....tax import error_codes, models
from ...account.enums import CountryCodeEnum
-from ...core.descriptions import ADDED_IN_39
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.mutations import ModelMutation
from ...core.types import BaseInputObjectType, Error, NonNullList
@@ -59,7 +58,7 @@ class TaxClassCreate(ModelMutation):
)
class Meta:
- description = "Create a tax class." + ADDED_IN_39
+ description = "Create a tax class."
error_type_class = TaxClassCreateError
model = models.TaxClass
object_type = TaxClass
diff --git a/saleor/graphql/tax/mutations/tax_class_delete.py b/saleor/graphql/tax/mutations/tax_class_delete.py
index 4ccb13dea8..9b20f82b68 100644
--- a/saleor/graphql/tax/mutations/tax_class_delete.py
+++ b/saleor/graphql/tax/mutations/tax_class_delete.py
@@ -2,7 +2,6 @@ import graphene
from ....permission.enums import CheckoutPermissions
from ....tax import error_codes, models
-from ...core.descriptions import ADDED_IN_39
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.mutations import ModelDeleteMutation
from ...core.types import Error
@@ -28,7 +27,7 @@ class TaxClassDelete(ModelDeleteMutation):
"Delete a tax class. After deleting the tax class any products, "
"product types or shipping methods using it are updated to use the "
"default tax class."
- ) + ADDED_IN_39
+ )
error_type_class = TaxClassDeleteError
model = models.TaxClass
object_type = TaxClass
diff --git a/saleor/graphql/tax/mutations/tax_class_update.py b/saleor/graphql/tax/mutations/tax_class_update.py
index 69f82a02d5..d7937ab8a7 100644
--- a/saleor/graphql/tax/mutations/tax_class_update.py
+++ b/saleor/graphql/tax/mutations/tax_class_update.py
@@ -5,7 +5,6 @@ from ....permission.enums import CheckoutPermissions
from ....tax import error_codes, models
from ...account.enums import CountryCodeEnum
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_39
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.mutations import ModelMutation
from ...core.types import BaseInputObjectType, Error, NonNullList
@@ -72,7 +71,7 @@ class TaxClassUpdate(ModelMutation):
)
class Meta:
- description = "Update a tax class." + ADDED_IN_39
+ description = "Update a tax class."
error_type_class = TaxClassUpdateError
model = models.TaxClass
object_type = TaxClass
diff --git a/saleor/graphql/tax/mutations/tax_configuration_update.py b/saleor/graphql/tax/mutations/tax_configuration_update.py
index 339c895508..a5653b1e22 100644
--- a/saleor/graphql/tax/mutations/tax_configuration_update.py
+++ b/saleor/graphql/tax/mutations/tax_configuration_update.py
@@ -7,7 +7,7 @@ from ....plugins import PLUGIN_IDENTIFIER_PREFIX
from ....tax import error_codes, models
from ...account.enums import CountryCodeEnum
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_39, ADDED_IN_319
+from ...core.descriptions import ADDED_IN_319
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.mutations import ModelMutation
from ...core.types import BaseInputObjectType, Error, NonNullList
@@ -126,7 +126,7 @@ class TaxConfigurationUpdate(ModelMutation):
)
class Meta:
- description = "Update tax configuration for a channel." + ADDED_IN_39
+ description = "Update tax configuration for a channel."
error_type_class = TaxConfigurationUpdateError
model = models.TaxConfiguration
object_type = TaxConfiguration
diff --git a/saleor/graphql/tax/mutations/tax_country_configuration_delete.py b/saleor/graphql/tax/mutations/tax_country_configuration_delete.py
index 8cab4b0d86..f87e587b8d 100644
--- a/saleor/graphql/tax/mutations/tax_country_configuration_delete.py
+++ b/saleor/graphql/tax/mutations/tax_country_configuration_delete.py
@@ -5,7 +5,6 @@ from ....permission.enums import CheckoutPermissions
from ....tax import error_codes, models
from ...account.enums import CountryCodeEnum
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_39
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.mutations import BaseMutation
from ...core.types import Error
@@ -38,7 +37,7 @@ class TaxCountryConfigurationDelete(BaseMutation):
)
class Meta:
- description = "Remove all tax class rates for a specific country." + ADDED_IN_39
+ description = "Remove all tax class rates for a specific country."
doc_category = DOC_CATEGORY_TAXES
error_type_class = TaxCountryConfigurationDeleteError
permissions = (CheckoutPermissions.MANAGE_TAXES,)
diff --git a/saleor/graphql/tax/mutations/tax_country_configuration_update.py b/saleor/graphql/tax/mutations/tax_country_configuration_update.py
index 63df8bc3d9..9c6f6306e9 100644
--- a/saleor/graphql/tax/mutations/tax_country_configuration_update.py
+++ b/saleor/graphql/tax/mutations/tax_country_configuration_update.py
@@ -10,7 +10,6 @@ from ....permission.enums import CheckoutPermissions
from ....tax import error_codes, models
from ...account.enums import CountryCodeEnum
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_39
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.mutations import BaseMutation
from ...core.types import BaseInputObjectType, Error, NonNullList
@@ -69,7 +68,7 @@ class TaxCountryConfigurationUpdate(BaseMutation):
)
class Meta:
- description = "Update tax class rates for a specific country." + ADDED_IN_39
+ description = "Update tax class rates for a specific country."
doc_category = DOC_CATEGORY_TAXES
error_type_class = TaxCountryConfigurationUpdateError
permissions = (CheckoutPermissions.MANAGE_TAXES,)
diff --git a/saleor/graphql/tax/mutations/tax_exemption_manage.py b/saleor/graphql/tax/mutations/tax_exemption_manage.py
index dcc7bed2e4..1e0a142e34 100644
--- a/saleor/graphql/tax/mutations/tax_exemption_manage.py
+++ b/saleor/graphql/tax/mutations/tax_exemption_manage.py
@@ -10,7 +10,6 @@ from ....order.models import Order
from ....permission.enums import CheckoutPermissions
from ....tax import error_codes
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_38
from ...core.doc_category import DOC_CATEGORY_TAXES
from ...core.types import Error
from ...core.types.taxes import TaxSourceObject
@@ -45,7 +44,7 @@ class TaxExemptionManage(BaseMutation):
"Exempt checkout or order from charging the taxes. When tax exemption is "
"enabled, taxes won't be charged for the checkout or order. Taxes may "
"still be calculated in cases when product prices are entered with the "
- "tax included and the net price needs to be known." + ADDED_IN_38
+ "tax included and the net price needs to be known."
)
doc_category = DOC_CATEGORY_TAXES
error_type_class = TaxExemptionManageError
diff --git a/saleor/graphql/translations/mutations/attribute_bulk_translate.py b/saleor/graphql/translations/mutations/attribute_bulk_translate.py
index 011c457a6a..41b7c14e84 100644
--- a/saleor/graphql/translations/mutations/attribute_bulk_translate.py
+++ b/saleor/graphql/translations/mutations/attribute_bulk_translate.py
@@ -5,7 +5,6 @@ from graphql.error import GraphQLError
from ....attribute import models
from ....permission.enums import SitePermissions
from ...attribute.types import AttributeTranslation
-from ...core.descriptions import ADDED_IN_314, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ...core.enums import AttributeTranslateErrorCode, LanguageCodeEnum
from ...core.types import (
@@ -70,11 +69,7 @@ class AttributeBulkTranslate(BaseBulkTranslateMutation):
)
class Meta:
- description = (
- "Creates/updates translations for attributes."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- )
+ description = "Creates/updates translations for attributes."
base_model = models.Attribute
translation_model = models.AttributeTranslation
translation_fields = ["name"]
diff --git a/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py b/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py
index 159c593239..5d17afdfbe 100644
--- a/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py
+++ b/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py
@@ -7,7 +7,6 @@ from ....attribute import AttributeInputType, models
from ....core.utils.editorjs import clean_editor_js
from ....permission.enums import SitePermissions
from ...attribute.types import AttributeValueTranslation
-from ...core.descriptions import ADDED_IN_314, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_ATTRIBUTES
from ...core.enums import AttributeValueTranslateErrorCode, LanguageCodeEnum
from ...core.types import (
@@ -77,11 +76,7 @@ class AttributeValueBulkTranslate(BaseBulkTranslateMutation):
)
class Meta:
- description = (
- "Creates/updates translations for attributes values."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- )
+ description = "Creates/updates translations for attributes values."
base_model = models.AttributeValue
translation_model = models.AttributeValueTranslation
translation_fields = ["name", "rich_text", "plain_text"]
diff --git a/saleor/graphql/translations/mutations/product_bulk_translate.py b/saleor/graphql/translations/mutations/product_bulk_translate.py
index c15822b040..741bcec960 100644
--- a/saleor/graphql/translations/mutations/product_bulk_translate.py
+++ b/saleor/graphql/translations/mutations/product_bulk_translate.py
@@ -4,7 +4,6 @@ from graphql.error import GraphQLError
from ....permission.enums import SitePermissions
from ....product import models
-from ...core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.enums import LanguageCodeEnum, ProductTranslateErrorCode
from ...core.types import (
@@ -74,11 +73,7 @@ class ProductBulkTranslate(BaseBulkTranslateMutation):
)
class Meta:
- description = (
- "Creates/updates translations for products."
- + ADDED_IN_315
- + PREVIEW_FEATURE
- )
+ description = "Creates/updates translations for products."
base_model = models.Product
translation_model = models.ProductTranslation
translation_fields = ["name", "description", "seo_description", "seo_title"]
diff --git a/saleor/graphql/translations/mutations/product_variant_bulk_translate.py b/saleor/graphql/translations/mutations/product_variant_bulk_translate.py
index 932413619c..fe3f1214ee 100644
--- a/saleor/graphql/translations/mutations/product_variant_bulk_translate.py
+++ b/saleor/graphql/translations/mutations/product_variant_bulk_translate.py
@@ -4,7 +4,6 @@ from graphql.error import GraphQLError
from ....permission.enums import SitePermissions
from ....product import models
-from ...core.descriptions import ADDED_IN_315, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.enums import LanguageCodeEnum, ProductVariantTranslateErrorCode
from ...core.types import (
@@ -74,11 +73,7 @@ class ProductVariantBulkTranslate(BaseBulkTranslateMutation):
)
class Meta:
- description = (
- "Creates/updates translations for products variants."
- + ADDED_IN_315
- + PREVIEW_FEATURE
- )
+ description = "Creates/updates translations for products variants."
base_model = models.ProductVariant
translation_model = models.ProductVariantTranslation
translation_fields = ["name"]
diff --git a/saleor/graphql/translations/mutations/promotion_rule_translate.py b/saleor/graphql/translations/mutations/promotion_rule_translate.py
index 92bbbe3502..f9e82374c4 100644
--- a/saleor/graphql/translations/mutations/promotion_rule_translate.py
+++ b/saleor/graphql/translations/mutations/promotion_rule_translate.py
@@ -3,7 +3,7 @@ import graphene
from ....discount import models as discount_models
from ....permission.enums import SitePermissions
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_317, RICH_CONTENT
+from ...core.descriptions import RICH_CONTENT
from ...core.enums import LanguageCodeEnum
from ...core.scalars import JSON
from ...core.types import TranslationError
@@ -32,9 +32,7 @@ class PromotionRuleTranslate(BaseTranslateMutation):
)
class Meta:
- description = (
- "Creates/updates translations for a promotion rule." + ADDED_IN_317
- )
+ description = "Creates/updates translations for a promotion rule."
model = discount_models.PromotionRule
object_type = PromotionRule
error_type_class = TranslationError
diff --git a/saleor/graphql/translations/mutations/promotion_translate.py b/saleor/graphql/translations/mutations/promotion_translate.py
index d861370394..ca2d2b667b 100644
--- a/saleor/graphql/translations/mutations/promotion_translate.py
+++ b/saleor/graphql/translations/mutations/promotion_translate.py
@@ -3,7 +3,7 @@ import graphene
from ....discount import models as discount_models
from ....permission.enums import SitePermissions
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_317, RICH_CONTENT
+from ...core.descriptions import RICH_CONTENT
from ...core.enums import LanguageCodeEnum
from ...core.scalars import JSON
from ...core.types import TranslationError
@@ -32,7 +32,7 @@ class PromotionTranslate(BaseTranslateMutation):
)
class Meta:
- description = "Creates/updates translations for a promotion." + ADDED_IN_317
+ description = "Creates/updates translations for a promotion."
model = discount_models.Promotion
object_type = Promotion
error_type_class = TranslationError
diff --git a/saleor/graphql/warehouse/bulk_mutations/stock_bulk_update.py b/saleor/graphql/warehouse/bulk_mutations/stock_bulk_update.py
index 879ad96229..88a806864a 100644
--- a/saleor/graphql/warehouse/bulk_mutations/stock_bulk_update.py
+++ b/saleor/graphql/warehouse/bulk_mutations/stock_bulk_update.py
@@ -10,7 +10,6 @@ from ....warehouse import models
from ....warehouse.error_codes import StockBulkUpdateErrorCode
from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.utils import get_webhooks_for_event
-from ...core.descriptions import ADDED_IN_313, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_PRODUCTS
from ...core.enums import ErrorPolicyEnum
from ...core.mutations import BaseMutation
@@ -87,8 +86,6 @@ class StockBulkUpdate(BaseMutation):
"Updates stocks for a given variant and warehouse. Variant and warehouse "
"selectors have to be the same for all stock inputs. Is not allowed to "
"use 'variantId' in one input and 'variantExternalReference' in another."
- + ADDED_IN_313
- + PREVIEW_FEATURE
)
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
diff --git a/saleor/graphql/warehouse/mutations/warehouse_update.py b/saleor/graphql/warehouse/mutations/warehouse_update.py
index 0fd9a6880d..9d3e130850 100644
--- a/saleor/graphql/warehouse/mutations/warehouse_update.py
+++ b/saleor/graphql/warehouse/mutations/warehouse_update.py
@@ -5,7 +5,6 @@ from ....warehouse import models
from ...account.i18n import I18nMixin
from ...account.mixins import AddressMetadataMixin
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_316
from ...core.mutations import ModelWithExtRefMutation
from ...core.types import WarehouseError
from ...plugins.dataloaders import get_plugin_manager_promise
@@ -31,7 +30,7 @@ class WarehouseUpdate(
)
external_reference = graphene.String(
required=False,
- description="External reference of a warehouse." + ADDED_IN_316,
+ description="External reference of a warehouse.",
)
@classmethod
diff --git a/saleor/graphql/webhook/enums.py b/saleor/graphql/webhook/enums.py
index 081de08b3e..1238ea42d1 100644
--- a/saleor/graphql/webhook/enums.py
+++ b/saleor/graphql/webhook/enums.py
@@ -2,16 +2,8 @@ import graphene
from ...webhook.event_types import WebhookEventAsyncType, WebhookEventSyncType
from ..core.descriptions import (
- ADDED_IN_36,
- ADDED_IN_38,
- ADDED_IN_312,
- ADDED_IN_313,
- ADDED_IN_314,
- ADDED_IN_315,
- ADDED_IN_316,
ADDED_IN_318,
DEPRECATED_IN_3X_ENUM_VALUE,
- PREVIEW_FEATURE,
)
from ..core.doc_category import DOC_CATEGORY_WEBHOOKS
from ..core.types import BaseEnum
@@ -73,34 +65,22 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.CHANNEL_METADATA_UPDATED: "A channel metadata is updated.",
WebhookEventAsyncType.CHECKOUT_CREATED: "A new checkout is created.",
WebhookEventAsyncType.CHECKOUT_UPDATED: checkout_updated_event_enum_description,
- WebhookEventAsyncType.CHECKOUT_METADATA_UPDATED: (
- "A checkout metadata is updated." + ADDED_IN_38
- ),
+ WebhookEventAsyncType.CHECKOUT_METADATA_UPDATED: "A checkout metadata is updated.",
WebhookEventAsyncType.COLLECTION_CREATED: "A new collection is created.",
WebhookEventAsyncType.COLLECTION_UPDATED: "A collection is updated.",
WebhookEventAsyncType.COLLECTION_DELETED: "A collection is deleted.",
- WebhookEventAsyncType.COLLECTION_METADATA_UPDATED: (
- "A collection metadata is updated." + ADDED_IN_38
- ),
+ WebhookEventAsyncType.COLLECTION_METADATA_UPDATED: "A collection metadata is updated.",
WebhookEventAsyncType.CUSTOMER_CREATED: "A new customer account is created.",
WebhookEventAsyncType.CUSTOMER_UPDATED: "A customer account is updated.",
WebhookEventAsyncType.CUSTOMER_DELETED: "A customer account is deleted.",
- WebhookEventAsyncType.CUSTOMER_METADATA_UPDATED: (
- "A customer account metadata is updated." + ADDED_IN_38
- ),
+ WebhookEventAsyncType.CUSTOMER_METADATA_UPDATED: "A customer account metadata is updated.",
WebhookEventAsyncType.GIFT_CARD_CREATED: "A new gift card created.",
WebhookEventAsyncType.GIFT_CARD_UPDATED: "A gift card is updated.",
WebhookEventAsyncType.GIFT_CARD_DELETED: "A gift card is deleted.",
- WebhookEventAsyncType.GIFT_CARD_SENT: (
- "A gift card has been sent." + ADDED_IN_313 + PREVIEW_FEATURE
- ),
+ WebhookEventAsyncType.GIFT_CARD_SENT: "A gift card has been sent.",
WebhookEventAsyncType.GIFT_CARD_STATUS_CHANGED: "A gift card status is changed.",
- WebhookEventAsyncType.GIFT_CARD_METADATA_UPDATED: (
- "A gift card metadata is updated." + ADDED_IN_38
- ),
- WebhookEventAsyncType.GIFT_CARD_EXPORT_COMPLETED: (
- "A gift card export is completed." + ADDED_IN_316
- ),
+ WebhookEventAsyncType.GIFT_CARD_METADATA_UPDATED: "A gift card metadata is updated.",
+ WebhookEventAsyncType.GIFT_CARD_EXPORT_COMPLETED: "A gift card export is completed.",
WebhookEventAsyncType.INVOICE_REQUESTED: "An invoice for order requested.",
WebhookEventAsyncType.INVOICE_DELETED: "An invoice is deleted.",
WebhookEventAsyncType.INVOICE_SENT: "Invoice has been sent.",
@@ -121,28 +101,18 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.ORDER_CONFIRMED: order_confirmed_event_enum_description,
WebhookEventAsyncType.ORDER_PAID: (
"Payment has been made. The order may be partially or fully paid."
- + ADDED_IN_314
- + PREVIEW_FEATURE
),
WebhookEventAsyncType.ORDER_FULLY_PAID: order_fully_paid_event_enum_description,
WebhookEventAsyncType.ORDER_REFUNDED: (
"The order received a refund. The order may be partially or fully refunded."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- ),
- WebhookEventAsyncType.ORDER_FULLY_REFUNDED: (
- "The order is fully refunded." + ADDED_IN_314 + PREVIEW_FEATURE
),
+ WebhookEventAsyncType.ORDER_FULLY_REFUNDED: ("The order is fully refunded."),
WebhookEventAsyncType.ORDER_UPDATED: order_updated_event_enum_description,
WebhookEventAsyncType.ORDER_CANCELLED: "An order is cancelled.",
WebhookEventAsyncType.ORDER_EXPIRED: "An order is expired.",
WebhookEventAsyncType.ORDER_FULFILLED: "An order is fulfilled.",
- WebhookEventAsyncType.ORDER_METADATA_UPDATED: (
- "An order metadata is updated." + ADDED_IN_38
- ),
- WebhookEventAsyncType.ORDER_BULK_CREATED: "Orders are imported."
- + ADDED_IN_314
- + PREVIEW_FEATURE,
+ WebhookEventAsyncType.ORDER_METADATA_UPDATED: ("An order metadata is updated."),
+ WebhookEventAsyncType.ORDER_BULK_CREATED: "Orders are imported.",
WebhookEventAsyncType.DRAFT_ORDER_CREATED: "A draft order is created.",
WebhookEventAsyncType.DRAFT_ORDER_UPDATED: "A draft order is updated.",
WebhookEventAsyncType.DRAFT_ORDER_DELETED: "A draft order is deleted.",
@@ -162,7 +132,7 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.FULFILLMENT_CANCELED: "A fulfillment is cancelled.",
WebhookEventAsyncType.FULFILLMENT_APPROVED: "A fulfillment is approved.",
WebhookEventAsyncType.FULFILLMENT_METADATA_UPDATED: (
- "A fulfillment metadata is updated." + ADDED_IN_38
+ "A fulfillment metadata is updated."
),
WebhookEventAsyncType.PAGE_CREATED: "A new page is created.",
WebhookEventAsyncType.PAGE_UPDATED: "A page is updated.",
@@ -178,20 +148,15 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.PRODUCT_CREATED: "A new product is created.",
WebhookEventAsyncType.PRODUCT_UPDATED: "A product is updated.",
WebhookEventAsyncType.PRODUCT_DELETED: "A product is deleted.",
- WebhookEventAsyncType.PRODUCT_METADATA_UPDATED: (
- "A product metadata is updated." + ADDED_IN_38
- ),
- WebhookEventAsyncType.PRODUCT_MEDIA_CREATED: "A new product media is created."
- + ADDED_IN_312,
- WebhookEventAsyncType.PRODUCT_MEDIA_UPDATED: "A product media is updated."
- + ADDED_IN_312,
- WebhookEventAsyncType.PRODUCT_MEDIA_DELETED: "A product media is deleted."
- + ADDED_IN_312,
+ WebhookEventAsyncType.PRODUCT_METADATA_UPDATED: ("A product metadata is updated."),
+ WebhookEventAsyncType.PRODUCT_MEDIA_CREATED: "A new product media is created.",
+ WebhookEventAsyncType.PRODUCT_MEDIA_UPDATED: "A product media is updated.",
+ WebhookEventAsyncType.PRODUCT_MEDIA_DELETED: "A product media is deleted.",
WebhookEventAsyncType.PRODUCT_VARIANT_CREATED: "A new product variant is created.",
WebhookEventAsyncType.PRODUCT_VARIANT_UPDATED: "A product variant is updated.",
WebhookEventAsyncType.PRODUCT_VARIANT_DELETED: "A product variant is deleted. Warning: this event will not be executed when parent product has been deleted. Check PRODUCT_DELETED.",
WebhookEventAsyncType.PRODUCT_VARIANT_METADATA_UPDATED: (
- "A product variant metadata is updated." + ADDED_IN_38
+ "A product variant metadata is updated."
),
WebhookEventAsyncType.PRODUCT_VARIANT_OUT_OF_STOCK: (
"A product variant is out of stock."
@@ -202,9 +167,7 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.PRODUCT_VARIANT_STOCK_UPDATED: (
"A product variant stock is updated"
),
- WebhookEventAsyncType.PRODUCT_EXPORT_COMPLETED: (
- "A product export is completed." + ADDED_IN_316
- ),
+ WebhookEventAsyncType.PRODUCT_EXPORT_COMPLETED: ("A product export is completed."),
WebhookEventAsyncType.SHIPPING_PRICE_CREATED: "A new shipping price is created.",
WebhookEventAsyncType.SHIPPING_PRICE_UPDATED: "A shipping price is updated.",
WebhookEventAsyncType.SHIPPING_PRICE_DELETED: "A shipping price is deleted.",
@@ -212,7 +175,7 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.SHIPPING_ZONE_UPDATED: "A shipping zone is updated.",
WebhookEventAsyncType.SHIPPING_ZONE_DELETED: "A shipping zone is deleted.",
WebhookEventAsyncType.SHIPPING_ZONE_METADATA_UPDATED: (
- "A shipping zone metadata is updated." + ADDED_IN_38
+ "A shipping zone metadata is updated."
),
WebhookEventAsyncType.STAFF_SET_PASSWORD_REQUESTED: (
"Setting a new password for the staff account is requested."
@@ -221,7 +184,7 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.STAFF_UPDATED: "A staff user is updated.",
WebhookEventAsyncType.STAFF_DELETED: "A staff user is deleted.",
WebhookEventAsyncType.TRANSACTION_ITEM_METADATA_UPDATED: (
- "Transaction item metadata is updated." + ADDED_IN_38
+ "Transaction item metadata is updated."
),
WebhookEventAsyncType.TRANSLATION_CREATED: "A new translation is created.",
WebhookEventAsyncType.TRANSLATION_UPDATED: "A translation is updated.",
@@ -229,22 +192,19 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventAsyncType.WAREHOUSE_UPDATED: "A warehouse is updated.",
WebhookEventAsyncType.WAREHOUSE_DELETED: "A warehouse is deleted.",
WebhookEventAsyncType.WAREHOUSE_METADATA_UPDATED: (
- "A warehouse metadata is updated." + ADDED_IN_38
+ "A warehouse metadata is updated."
),
WebhookEventAsyncType.VOUCHER_CREATED: "A new voucher created.",
WebhookEventAsyncType.VOUCHER_UPDATED: "A voucher is updated.",
WebhookEventAsyncType.VOUCHER_DELETED: "A voucher is deleted.",
- WebhookEventAsyncType.VOUCHER_METADATA_UPDATED: (
- "A voucher metadata is updated." + ADDED_IN_38
- ),
+ WebhookEventAsyncType.VOUCHER_METADATA_UPDATED: ("A voucher metadata is updated."),
WebhookEventAsyncType.VOUCHER_CODE_EXPORT_COMPLETED: (
"A voucher code export is completed." + ADDED_IN_318
),
WebhookEventAsyncType.ANY: "All the events." + DEPRECATED_IN_3X_ENUM_VALUE,
WebhookEventAsyncType.OBSERVABILITY: "An observability event is created.",
- WebhookEventAsyncType.THUMBNAIL_CREATED: "A thumbnail is created." + ADDED_IN_312,
- WebhookEventAsyncType.SHOP_METADATA_UPDATED: "Shop metadata is updated."
- + ADDED_IN_315,
+ WebhookEventAsyncType.THUMBNAIL_CREATED: "A thumbnail is created.",
+ WebhookEventAsyncType.SHOP_METADATA_UPDATED: "Shop metadata is updated.",
WebhookEventSyncType.SHIPPING_LIST_METHODS_FOR_CHECKOUT: (
"Fetch external shipping methods for checkout."
),
@@ -262,25 +222,19 @@ WEBHOOK_EVENT_DESCRIPTION = {
WebhookEventSyncType.PAYMENT_CONFIRM: "Confirm payment.",
WebhookEventSyncType.PAYMENT_PROCESS: "Process payment.",
WebhookEventSyncType.CHECKOUT_CALCULATE_TAXES: (
- "Event called for checkout tax calculation." + ADDED_IN_36
+ "Event called for checkout tax calculation."
),
WebhookEventSyncType.ORDER_CALCULATE_TAXES: (
- "Event called for order tax calculation." + ADDED_IN_36
+ "Event called for order tax calculation."
),
WebhookEventSyncType.TRANSACTION_CHARGE_REQUESTED: (
"Event called when charge has been requested for transaction."
- + ADDED_IN_313
- + PREVIEW_FEATURE
),
WebhookEventSyncType.TRANSACTION_REFUND_REQUESTED: (
"Event called when refund has been requested for transaction."
- + ADDED_IN_313
- + PREVIEW_FEATURE
),
WebhookEventSyncType.TRANSACTION_CANCELATION_REQUESTED: (
"Event called when cancel has been requested for transaction."
- + ADDED_IN_313
- + PREVIEW_FEATURE
),
}
diff --git a/saleor/graphql/webhook/mutations/webhook_create.py b/saleor/graphql/webhook/mutations/webhook_create.py
index 9f03fc88cf..131e6e27b4 100644
--- a/saleor/graphql/webhook/mutations/webhook_create.py
+++ b/saleor/graphql/webhook/mutations/webhook_create.py
@@ -16,12 +16,7 @@ from ....webhook.validators import (
from ...app.dataloaders import get_app_promise
from ...app.utils import validate_app_is_not_removed
from ...core import ResolveInfo
-from ...core.descriptions import (
- ADDED_IN_32,
- ADDED_IN_312,
- DEPRECATED_IN_3X_INPUT,
- PREVIEW_FEATURE,
-)
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_WEBHOOKS
from ...core.fields import JSONString
from ...core.mutations import ModelMutation
@@ -65,17 +60,14 @@ class WebhookCreateInput(BaseInputObjectType):
required=False,
)
query = graphene.String(
- description="Subscription query used to define a webhook payload."
- + ADDED_IN_32,
+ description="Subscription query used to define a webhook payload.",
required=False,
)
custom_headers = JSONString(
description=f"Custom headers, which will be added to HTTP request. "
f"There is a limitation of {HEADERS_NUMBER_LIMIT} headers per webhook "
f"and {HEADERS_LENGTH_LIMIT} characters per header."
- f"Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed."
- + ADDED_IN_312
- + PREVIEW_FEATURE,
+ f"Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed.",
required=False,
)
diff --git a/saleor/graphql/webhook/mutations/webhook_dry_run.py b/saleor/graphql/webhook/mutations/webhook_dry_run.py
index 0c69d56f3c..403e4ca7ba 100644
--- a/saleor/graphql/webhook/mutations/webhook_dry_run.py
+++ b/saleor/graphql/webhook/mutations/webhook_dry_run.py
@@ -7,7 +7,6 @@ from ....permission.auth_filters import AuthorizationFilters
from ....webhook.error_codes import WebhookDryRunErrorCode
from ....webhook.event_types import WebhookEventAsyncType
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_311, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_WEBHOOKS
from ...core.fields import JSONString
from ...core.mutations import BaseMutation
@@ -38,8 +37,6 @@ class WebhookDryRun(BaseMutation):
"Performs a dry run of a webhook event. "
"Supports a single event (the first, if multiple provided in the `query`). "
"Requires permission relevant to processed event."
- + ADDED_IN_311
- + PREVIEW_FEATURE
)
doc_category = DOC_CATEGORY_WEBHOOKS
permissions = (AuthorizationFilters.AUTHENTICATED_STAFF_USER,)
diff --git a/saleor/graphql/webhook/mutations/webhook_trigger.py b/saleor/graphql/webhook/mutations/webhook_trigger.py
index 8fd0eb5077..d3cd649464 100644
--- a/saleor/graphql/webhook/mutations/webhook_trigger.py
+++ b/saleor/graphql/webhook/mutations/webhook_trigger.py
@@ -11,7 +11,6 @@ from ....webhook.error_codes import WebhookTriggerErrorCode
from ....webhook.event_types import WebhookEventAsyncType
from ....webhook.models import Webhook
from ...core import ResolveInfo
-from ...core.descriptions import ADDED_IN_311, PREVIEW_FEATURE
from ...core.doc_category import DOC_CATEGORY_WEBHOOKS
from ...core.mutations import BaseMutation
from ...core.types.common import WebhookTriggerError
@@ -36,8 +35,6 @@ class WebhookTrigger(BaseMutation):
"provided in the `webhook.subscription_query`). Requires permission "
"relevant to processed event. Successfully delivered webhook returns "
"`delivery` with status='PENDING' and empty payload."
- + ADDED_IN_311
- + PREVIEW_FEATURE
)
doc_category = DOC_CATEGORY_WEBHOOKS
permissions = (AuthorizationFilters.AUTHENTICATED_STAFF_USER,)
diff --git a/saleor/graphql/webhook/mutations/webhook_update.py b/saleor/graphql/webhook/mutations/webhook_update.py
index d993218466..17148fede9 100644
--- a/saleor/graphql/webhook/mutations/webhook_update.py
+++ b/saleor/graphql/webhook/mutations/webhook_update.py
@@ -8,12 +8,7 @@ from ....webhook import models
from ....webhook.validators import HEADERS_LENGTH_LIMIT, HEADERS_NUMBER_LIMIT
from ...app.dataloaders import get_app_promise
from ...core import ResolveInfo
-from ...core.descriptions import (
- ADDED_IN_32,
- ADDED_IN_312,
- DEPRECATED_IN_3X_INPUT,
- PREVIEW_FEATURE,
-)
+from ...core.descriptions import DEPRECATED_IN_3X_INPUT
from ...core.doc_category import DOC_CATEGORY_WEBHOOKS
from ...core.fields import JSONString
from ...core.types import BaseInputObjectType, NonNullList, WebhookError
@@ -60,17 +55,14 @@ class WebhookUpdateInput(BaseInputObjectType):
required=False,
)
query = graphene.String(
- description="Subscription query used to define a webhook payload."
- + ADDED_IN_32,
+ description="Subscription query used to define a webhook payload.",
required=False,
)
custom_headers = JSONString(
description=f"Custom headers, which will be added to HTTP request. "
f"There is a limitation of {HEADERS_NUMBER_LIMIT} headers per webhook "
f"and {HEADERS_LENGTH_LIMIT} characters per header."
- f"Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed."
- + ADDED_IN_312
- + PREVIEW_FEATURE,
+ f"Only `X-*`, `Authorization*`, and `BrokerProperties` keys are allowed.",
required=False,
)
diff --git a/saleor/graphql/webhook/subscription_types.py b/saleor/graphql/webhook/subscription_types.py
index 5084c148df..62165a76b2 100644
--- a/saleor/graphql/webhook/subscription_types.py
+++ b/saleor/graphql/webhook/subscription_types.py
@@ -44,20 +44,6 @@ from ..channel.enums import TransactionFlowStrategyEnum
from ..core import ResolveInfo
from ..core.context import get_database_connection_name
from ..core.descriptions import (
- ADDED_IN_32,
- ADDED_IN_34,
- ADDED_IN_35,
- ADDED_IN_36,
- ADDED_IN_37,
- ADDED_IN_38,
- ADDED_IN_310,
- ADDED_IN_311,
- ADDED_IN_312,
- ADDED_IN_313,
- ADDED_IN_314,
- ADDED_IN_315,
- ADDED_IN_316,
- ADDED_IN_317,
ADDED_IN_318,
ADDED_IN_319,
ADDED_IN_320,
@@ -207,7 +193,7 @@ class AccountConfirmed(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when account is confirmed." + ADDED_IN_315
+ description = "Event sent when account is confirmed."
doc_category = DOC_CATEGORY_USERS
@@ -219,7 +205,6 @@ class AccountConfirmationRequested(SubscriptionObjectType, AccountOperationBase)
description = (
"Event sent when account confirmation requested. This event is always sent."
" enableAccountConfirmationByEmail flag set to True is not required."
- + ADDED_IN_315
)
doc_category = DOC_CATEGORY_USERS
@@ -233,9 +218,7 @@ class AccountChangeEmailRequested(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when account change email is requested." + ADDED_IN_315
- )
+ description = "Event sent when account change email is requested."
doc_category = DOC_CATEGORY_USERS
@staticmethod
@@ -253,7 +236,7 @@ class AccountEmailChanged(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when account email is changed." + ADDED_IN_315
+ description = "Event sent when account email is changed."
doc_category = DOC_CATEGORY_USERS
@@ -262,9 +245,7 @@ class AccountSetPasswordRequested(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when setting a new password is requested." + ADDED_IN_315
- )
+ description = "Event sent when setting a new password is requested."
doc_category = DOC_CATEGORY_USERS
@@ -273,7 +254,7 @@ class AccountDeleteRequested(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when account delete is requested." + ADDED_IN_315
+ description = "Event sent when account delete is requested."
doc_category = DOC_CATEGORY_USERS
@@ -282,7 +263,7 @@ class AccountDeleted(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when account is deleted." + ADDED_IN_315
+ description = "Event sent when account is deleted."
doc_category = DOC_CATEGORY_USERS
@@ -303,7 +284,7 @@ class AddressCreated(SubscriptionObjectType, AddressBase):
root_type = "Address"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new address is created." + ADDED_IN_35
+ description = "Event sent when new address is created."
class AddressUpdated(SubscriptionObjectType, AddressBase):
@@ -311,7 +292,7 @@ class AddressUpdated(SubscriptionObjectType, AddressBase):
root_type = "Address"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when address is updated." + ADDED_IN_35
+ description = "Event sent when address is updated."
class AddressDeleted(SubscriptionObjectType, AddressBase):
@@ -319,7 +300,7 @@ class AddressDeleted(SubscriptionObjectType, AddressBase):
root_type = "Address"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when address is deleted." + ADDED_IN_35
+ description = "Event sent when address is deleted."
class AppBase(AbstractType):
@@ -339,7 +320,7 @@ class AppInstalled(SubscriptionObjectType, AppBase):
root_type = "App"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new app is installed." + ADDED_IN_34
+ description = "Event sent when new app is installed."
class AppUpdated(SubscriptionObjectType, AppBase):
@@ -347,7 +328,7 @@ class AppUpdated(SubscriptionObjectType, AppBase):
root_type = "App"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when app is updated." + ADDED_IN_34
+ description = "Event sent when app is updated."
class AppDeleted(SubscriptionObjectType, AppBase):
@@ -355,7 +336,7 @@ class AppDeleted(SubscriptionObjectType, AppBase):
root_type = "App"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when app is deleted." + ADDED_IN_34
+ description = "Event sent when app is deleted."
class AppStatusChanged(SubscriptionObjectType, AppBase):
@@ -363,7 +344,7 @@ class AppStatusChanged(SubscriptionObjectType, AppBase):
root_type = "App"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when app status has changed." + ADDED_IN_34
+ description = "Event sent when app status has changed."
class AttributeBase(AbstractType):
@@ -383,7 +364,7 @@ class AttributeCreated(SubscriptionObjectType, AttributeBase):
root_type = "Attribute"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new attribute is created." + ADDED_IN_35
+ description = "Event sent when new attribute is created."
class AttributeUpdated(SubscriptionObjectType, AttributeBase):
@@ -391,7 +372,7 @@ class AttributeUpdated(SubscriptionObjectType, AttributeBase):
root_type = "Attribute"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when attribute is updated." + ADDED_IN_35
+ description = "Event sent when attribute is updated."
class AttributeDeleted(SubscriptionObjectType, AttributeBase):
@@ -399,7 +380,7 @@ class AttributeDeleted(SubscriptionObjectType, AttributeBase):
root_type = "Attribute"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when attribute is deleted." + ADDED_IN_35
+ description = "Event sent when attribute is deleted."
class AttributeValueBase(AbstractType):
@@ -419,7 +400,7 @@ class AttributeValueCreated(SubscriptionObjectType, AttributeValueBase):
root_type = "AttributeValue"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new attribute value is created." + ADDED_IN_35
+ description = "Event sent when new attribute value is created."
class AttributeValueUpdated(SubscriptionObjectType, AttributeValueBase):
@@ -427,7 +408,7 @@ class AttributeValueUpdated(SubscriptionObjectType, AttributeValueBase):
root_type = "AttributeValue"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when attribute value is updated." + ADDED_IN_35
+ description = "Event sent when attribute value is updated."
class AttributeValueDeleted(SubscriptionObjectType, AttributeValueBase):
@@ -435,7 +416,7 @@ class AttributeValueDeleted(SubscriptionObjectType, AttributeValueBase):
root_type = "AttributeValue"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when attribute value is deleted." + ADDED_IN_35
+ description = "Event sent when attribute value is deleted."
class CategoryBase(AbstractType):
@@ -455,7 +436,7 @@ class CategoryCreated(SubscriptionObjectType, CategoryBase):
root_type = "Category"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new category is created." + ADDED_IN_32
+ description = "Event sent when new category is created."
class CategoryUpdated(SubscriptionObjectType, CategoryBase):
@@ -463,7 +444,7 @@ class CategoryUpdated(SubscriptionObjectType, CategoryBase):
root_type = "Category"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when category is updated." + ADDED_IN_32
+ description = "Event sent when category is updated."
class CategoryDeleted(SubscriptionObjectType, CategoryBase):
@@ -471,7 +452,7 @@ class CategoryDeleted(SubscriptionObjectType, CategoryBase):
root_type = "Category"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when category is deleted." + ADDED_IN_32
+ description = "Event sent when category is deleted."
class ChannelBase(AbstractType):
@@ -491,7 +472,7 @@ class ChannelCreated(SubscriptionObjectType, ChannelBase):
root_type = "Channel"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new channel is created." + ADDED_IN_32
+ description = "Event sent when new channel is created."
class ChannelUpdated(SubscriptionObjectType, ChannelBase):
@@ -499,7 +480,7 @@ class ChannelUpdated(SubscriptionObjectType, ChannelBase):
root_type = "Channel"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when channel is updated." + ADDED_IN_32
+ description = "Event sent when channel is updated."
class ChannelDeleted(SubscriptionObjectType, ChannelBase):
@@ -507,7 +488,7 @@ class ChannelDeleted(SubscriptionObjectType, ChannelBase):
root_type = "Channel"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when channel is deleted." + ADDED_IN_32
+ description = "Event sent when channel is deleted."
class ChannelStatusChanged(SubscriptionObjectType, ChannelBase):
@@ -515,7 +496,7 @@ class ChannelStatusChanged(SubscriptionObjectType, ChannelBase):
root_type = "Channel"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when channel status has changed." + ADDED_IN_32
+ description = "Event sent when channel status has changed."
class ChannelMetadataUpdated(SubscriptionObjectType, ChannelBase):
@@ -523,7 +504,7 @@ class ChannelMetadataUpdated(SubscriptionObjectType, ChannelBase):
root_type = "Channel"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when channel metadata is updated." + ADDED_IN_315
+ description = "Event sent when channel metadata is updated."
class OrderBase(AbstractType):
@@ -543,7 +524,7 @@ class OrderCreated(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new order is created." + ADDED_IN_32
+ description = "Event sent when new order is created."
class OrderUpdated(SubscriptionObjectType, OrderBase):
@@ -551,7 +532,7 @@ class OrderUpdated(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when order is updated." + ADDED_IN_32
+ description = "Event sent when order is updated."
class OrderConfirmed(SubscriptionObjectType, OrderBase):
@@ -559,7 +540,7 @@ class OrderConfirmed(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when order is confirmed." + ADDED_IN_32
+ description = "Event sent when order is confirmed."
class OrderFullyPaid(SubscriptionObjectType, OrderBase):
@@ -567,7 +548,7 @@ class OrderFullyPaid(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when order is fully paid." + ADDED_IN_32
+ description = "Event sent when order is fully paid."
class OrderPaid(SubscriptionObjectType, OrderBase):
@@ -575,11 +556,7 @@ class OrderPaid(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Payment has been made. The order may be partially or fully paid."
- + ADDED_IN_314
- + PREVIEW_FEATURE
- )
+ description = "Payment has been made. The order may be partially or fully paid."
class OrderRefunded(SubscriptionObjectType, OrderBase):
@@ -589,8 +566,6 @@ class OrderRefunded(SubscriptionObjectType, OrderBase):
interfaces = (Event,)
description = (
"The order received a refund. The order may be partially or fully refunded."
- + ADDED_IN_314
- + PREVIEW_FEATURE
)
@@ -599,7 +574,7 @@ class OrderFullyRefunded(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "The order is fully refunded." + ADDED_IN_314 + PREVIEW_FEATURE
+ description = "The order is fully refunded."
class OrderFulfilled(SubscriptionObjectType, OrderBase):
@@ -607,7 +582,7 @@ class OrderFulfilled(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when order is fulfilled." + ADDED_IN_32
+ description = "Event sent when order is fulfilled."
class OrderCancelled(SubscriptionObjectType, OrderBase):
@@ -615,7 +590,7 @@ class OrderCancelled(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when order is canceled." + ADDED_IN_32
+ description = "Event sent when order is canceled."
class OrderExpired(SubscriptionObjectType, OrderBase):
@@ -623,9 +598,7 @@ class OrderExpired(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when order becomes expired." + ADDED_IN_313 + PREVIEW_FEATURE
- )
+ description = "Event sent when order becomes expired."
class OrderMetadataUpdated(SubscriptionObjectType, OrderBase):
@@ -633,7 +606,7 @@ class OrderMetadataUpdated(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when order metadata is updated." + ADDED_IN_38
+ description = "Event sent when order metadata is updated."
class OrderBulkCreated(SubscriptionObjectType):
@@ -651,9 +624,7 @@ class OrderBulkCreated(SubscriptionObjectType):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when orders are imported." + ADDED_IN_314 + PREVIEW_FEATURE
- )
+ description = "Event sent when orders are imported."
doc_category = DOC_CATEGORY_ORDERS
@@ -662,7 +633,7 @@ class DraftOrderCreated(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new draft order is created." + ADDED_IN_32
+ description = "Event sent when new draft order is created."
class DraftOrderUpdated(SubscriptionObjectType, OrderBase):
@@ -670,7 +641,7 @@ class DraftOrderUpdated(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when draft order is updated." + ADDED_IN_32
+ description = "Event sent when draft order is updated."
class DraftOrderDeleted(SubscriptionObjectType, OrderBase):
@@ -678,7 +649,7 @@ class DraftOrderDeleted(SubscriptionObjectType, OrderBase):
root_type = "Order"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when draft order is deleted." + ADDED_IN_32
+ description = "Event sent when draft order is deleted."
class GiftCardBase(AbstractType):
@@ -698,7 +669,7 @@ class GiftCardCreated(SubscriptionObjectType, GiftCardBase):
root_type = "GiftCard"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new gift card is created." + ADDED_IN_32
+ description = "Event sent when new gift card is created."
class GiftCardUpdated(SubscriptionObjectType, GiftCardBase):
@@ -706,7 +677,7 @@ class GiftCardUpdated(SubscriptionObjectType, GiftCardBase):
root_type = "GiftCard"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when gift card is updated." + ADDED_IN_32
+ description = "Event sent when gift card is updated."
class GiftCardDeleted(SubscriptionObjectType, GiftCardBase):
@@ -714,7 +685,7 @@ class GiftCardDeleted(SubscriptionObjectType, GiftCardBase):
root_type = "GiftCard"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when gift card is deleted." + ADDED_IN_32
+ description = "Event sent when gift card is deleted."
class GiftCardSent(SubscriptionObjectType, GiftCardBase):
@@ -729,9 +700,7 @@ class GiftCardSent(SubscriptionObjectType, GiftCardBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when gift card is e-mailed." + ADDED_IN_313 + PREVIEW_FEATURE
- )
+ description = "Event sent when gift card is e-mailed."
doc_category = DOC_CATEGORY_GIFT_CARDS
@staticmethod
@@ -755,7 +724,7 @@ class GiftCardStatusChanged(SubscriptionObjectType, GiftCardBase):
root_type = "GiftCard"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when gift card status has changed." + ADDED_IN_32
+ description = "Event sent when gift card status has changed."
class GiftCardMetadataUpdated(SubscriptionObjectType, GiftCardBase):
@@ -763,7 +732,7 @@ class GiftCardMetadataUpdated(SubscriptionObjectType, GiftCardBase):
root_type = "GiftCard"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when gift card metadata is updated." + ADDED_IN_38
+ description = "Event sent when gift card metadata is updated."
class GiftCardExportCompleted(SubscriptionObjectType):
@@ -776,7 +745,7 @@ class GiftCardExportCompleted(SubscriptionObjectType):
root_type = "ExportFile"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when gift card export is completed." + ADDED_IN_316
+ description = "Event sent when gift card export is completed."
doc_category = DOC_CATEGORY_GIFT_CARDS
@staticmethod
@@ -805,7 +774,7 @@ class MenuCreated(SubscriptionObjectType, MenuBase):
root_type = "Menu"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new menu is created." + ADDED_IN_34
+ description = "Event sent when new menu is created."
class MenuUpdated(SubscriptionObjectType, MenuBase):
@@ -813,7 +782,7 @@ class MenuUpdated(SubscriptionObjectType, MenuBase):
root_type = "Menu"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when menu is updated." + ADDED_IN_34
+ description = "Event sent when menu is updated."
class MenuDeleted(SubscriptionObjectType, MenuBase):
@@ -821,7 +790,7 @@ class MenuDeleted(SubscriptionObjectType, MenuBase):
root_type = "Menu"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when menu is deleted." + ADDED_IN_34
+ description = "Event sent when menu is deleted."
class MenuItemBase(AbstractType):
@@ -844,7 +813,7 @@ class MenuItemCreated(SubscriptionObjectType, MenuItemBase):
root_type = "MenuItem"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new menu item is created." + ADDED_IN_34
+ description = "Event sent when new menu item is created."
class MenuItemUpdated(SubscriptionObjectType, MenuItemBase):
@@ -852,7 +821,7 @@ class MenuItemUpdated(SubscriptionObjectType, MenuItemBase):
root_type = "MenuItem"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when menu item is updated." + ADDED_IN_34
+ description = "Event sent when menu item is updated."
class MenuItemDeleted(SubscriptionObjectType, MenuItemBase):
@@ -860,7 +829,7 @@ class MenuItemDeleted(SubscriptionObjectType, MenuItemBase):
root_type = "MenuItem"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when menu item is deleted." + ADDED_IN_34
+ description = "Event sent when menu item is deleted."
class ProductBase(AbstractType):
@@ -892,7 +861,7 @@ class ProductCreated(SubscriptionObjectType, ProductBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new product is created." + ADDED_IN_32
+ description = "Event sent when new product is created."
class ProductUpdated(SubscriptionObjectType, ProductBase):
@@ -900,7 +869,7 @@ class ProductUpdated(SubscriptionObjectType, ProductBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product is updated." + ADDED_IN_32
+ description = "Event sent when product is updated."
class ProductDeleted(SubscriptionObjectType, ProductBase):
@@ -908,7 +877,7 @@ class ProductDeleted(SubscriptionObjectType, ProductBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product is deleted." + ADDED_IN_32
+ description = "Event sent when product is deleted."
class ProductMetadataUpdated(SubscriptionObjectType, ProductBase):
@@ -916,7 +885,7 @@ class ProductMetadataUpdated(SubscriptionObjectType, ProductBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product metadata is updated." + ADDED_IN_38
+ description = "Event sent when product metadata is updated."
class ProductMediaBase(AbstractType):
@@ -936,7 +905,7 @@ class ProductMediaCreated(SubscriptionObjectType, ProductMediaBase):
root_type = "ProductMedia"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new product media is created." + ADDED_IN_312
+ description = "Event sent when new product media is created."
class ProductMediaUpdated(SubscriptionObjectType, ProductMediaBase):
@@ -944,7 +913,7 @@ class ProductMediaUpdated(SubscriptionObjectType, ProductMediaBase):
root_type = "ProductMedia"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product media is updated." + ADDED_IN_312
+ description = "Event sent when product media is updated."
class ProductMediaDeleted(SubscriptionObjectType, ProductMediaBase):
@@ -952,7 +921,7 @@ class ProductMediaDeleted(SubscriptionObjectType, ProductMediaBase):
root_type = "ProductMedia"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product media is deleted." + ADDED_IN_312
+ description = "Event sent when product media is deleted."
class ProductVariantBase(AbstractType):
@@ -975,7 +944,7 @@ class ProductVariantCreated(SubscriptionObjectType, ProductVariantBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new product variant is created." + ADDED_IN_32
+ description = "Event sent when new product variant is created."
class ProductVariantUpdated(SubscriptionObjectType, ProductVariantBase):
@@ -983,7 +952,7 @@ class ProductVariantUpdated(SubscriptionObjectType, ProductVariantBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product variant is updated." + ADDED_IN_32
+ description = "Event sent when product variant is updated."
class ProductVariantDeleted(SubscriptionObjectType, ProductVariantBase):
@@ -991,7 +960,7 @@ class ProductVariantDeleted(SubscriptionObjectType, ProductVariantBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product variant is deleted." + ADDED_IN_32
+ description = "Event sent when product variant is deleted."
class ProductVariantMetadataUpdated(SubscriptionObjectType, ProductVariantBase):
@@ -999,9 +968,7 @@ class ProductVariantMetadataUpdated(SubscriptionObjectType, ProductVariantBase):
root_type = "Product"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when product variant metadata is updated." + ADDED_IN_38
- )
+ description = "Event sent when product variant metadata is updated."
class ProductVariantOutOfStock(SubscriptionObjectType, ProductVariantBase):
@@ -1013,7 +980,7 @@ class ProductVariantOutOfStock(SubscriptionObjectType, ProductVariantBase):
root_type = "Stock"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product variant is out of stock." + ADDED_IN_32
+ description = "Event sent when product variant is out of stock."
@staticmethod
def resolve_product_variant(root, info: ResolveInfo, channel=None):
@@ -1036,7 +1003,7 @@ class ProductVariantBackInStock(SubscriptionObjectType, ProductVariantBase):
root_type = "Stock"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product variant is back in stock." + ADDED_IN_32
+ description = "Event sent when product variant is back in stock."
@staticmethod
def resolve_product_variant(root, _info: ResolveInfo, channel=None):
@@ -1059,11 +1026,7 @@ class ProductVariantStockUpdated(SubscriptionObjectType, ProductVariantBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when product variant stock is updated."
- + ADDED_IN_311
- + PREVIEW_FEATURE
- )
+ description = "Event sent when product variant stock is updated."
doc_category = DOC_CATEGORY_PRODUCTS
@staticmethod
@@ -1091,7 +1054,7 @@ class ProductExportCompleted(SubscriptionObjectType):
root_type = "ExportFile"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when product export is completed." + ADDED_IN_316
+ description = "Event sent when product export is completed."
doc_category = DOC_CATEGORY_PRODUCTS
@staticmethod
@@ -1122,7 +1085,6 @@ class SaleCreated(SubscriptionObjectType, SaleBase):
interfaces = (Event,)
description = (
"Event sent when new sale is created."
- + ADDED_IN_32
+ DEPRECATED_IN_3X_EVENT
+ " Use `PromotionCreated` event instead."
)
@@ -1135,7 +1097,6 @@ class SaleUpdated(SubscriptionObjectType, SaleBase):
interfaces = (Event,)
description = (
"Event sent when sale is updated."
- + ADDED_IN_32
+ DEPRECATED_IN_3X_EVENT
+ " Use `PromotionUpdated` event instead."
)
@@ -1148,7 +1109,6 @@ class SaleDeleted(SubscriptionObjectType, SaleBase):
interfaces = (Event,)
description = (
"Event sent when sale is deleted."
- + ADDED_IN_32
+ DEPRECATED_IN_3X_EVENT
+ " Use `PromotionDeleted` event instead."
)
@@ -1160,7 +1120,7 @@ class SaleToggle(SubscriptionObjectType, SaleBase):
channel=graphene.String(
description="Slug of a channel for which the data should be returned."
),
- description="The sale the event relates to." + ADDED_IN_35,
+ description="The sale the event relates to.",
)
class Meta:
@@ -1168,7 +1128,6 @@ class SaleToggle(SubscriptionObjectType, SaleBase):
enable_dry_run = True
description = (
"The event informs about the start or end of the sale."
- + ADDED_IN_35
+ DEPRECATED_IN_3X_EVENT
+ " Use `PromotionStarted` and `PromotionEnded` events instead."
)
@@ -1192,9 +1151,7 @@ class PromotionCreated(SubscriptionObjectType, PromotionBase):
root_type = "Promotion"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when new promotion is created." + ADDED_IN_317 + PREVIEW_FEATURE
- )
+ description = "Event sent when new promotion is created."
class PromotionUpdated(SubscriptionObjectType, PromotionBase):
@@ -1202,9 +1159,7 @@ class PromotionUpdated(SubscriptionObjectType, PromotionBase):
root_type = "Promotion"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when promotion is updated." + ADDED_IN_317 + PREVIEW_FEATURE
- )
+ description = "Event sent when promotion is updated."
class PromotionDeleted(SubscriptionObjectType, PromotionBase):
@@ -1212,20 +1167,14 @@ class PromotionDeleted(SubscriptionObjectType, PromotionBase):
root_type = "Promotion"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when promotion is deleted." + ADDED_IN_317 + PREVIEW_FEATURE
- )
+ description = "Event sent when promotion is deleted."
class PromotionStarted(SubscriptionObjectType, PromotionBase):
class Meta:
root_type = "Promotion"
enable_dry_run = True
- description = (
- "The event informs about the start of the promotion."
- + ADDED_IN_317
- + PREVIEW_FEATURE
- )
+ description = "The event informs about the start of the promotion."
interfaces = (Event,)
@@ -1233,11 +1182,7 @@ class PromotionEnded(SubscriptionObjectType, PromotionBase):
class Meta:
root_type = "Promotion"
enable_dry_run = True
- description = (
- "The event informs about the end of the promotion."
- + ADDED_IN_317
- + PREVIEW_FEATURE
- )
+ description = "The event informs about the end of the promotion."
interfaces = (Event,)
@@ -1258,11 +1203,7 @@ class PromotionRuleCreated(SubscriptionObjectType, PromotionRuleBase):
root_type = "PromotionRule"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when new promotion rule is created."
- + ADDED_IN_317
- + PREVIEW_FEATURE
- )
+ description = "Event sent when new promotion rule is created."
class PromotionRuleUpdated(SubscriptionObjectType, PromotionRuleBase):
@@ -1270,11 +1211,7 @@ class PromotionRuleUpdated(SubscriptionObjectType, PromotionRuleBase):
root_type = "PromotionRule"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when new promotion rule is updated."
- + ADDED_IN_317
- + PREVIEW_FEATURE
- )
+ description = "Event sent when new promotion rule is updated."
class PromotionRuleDeleted(SubscriptionObjectType, PromotionRuleBase):
@@ -1282,11 +1219,7 @@ class PromotionRuleDeleted(SubscriptionObjectType, PromotionRuleBase):
root_type = "PromotionRule"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when new promotion rule is deleted."
- + ADDED_IN_317
- + PREVIEW_FEATURE
- )
+ description = "Event sent when new promotion rule is deleted."
class InvoiceBase(AbstractType):
@@ -1296,7 +1229,7 @@ class InvoiceBase(AbstractType):
)
order = graphene.Field(
"saleor.graphql.order.types.Order",
- description="Order related to the invoice." + ADDED_IN_310,
+ description="Order related to the invoice.",
)
@staticmethod
@@ -1314,14 +1247,14 @@ class InvoiceRequested(SubscriptionObjectType, InvoiceBase):
order = graphene.Field(
"saleor.graphql.order.types.Order",
required=True,
- description="Order related to the invoice." + ADDED_IN_310,
+ description="Order related to the invoice.",
)
class Meta:
root_type = "Invoice"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when invoice is requested." + ADDED_IN_32
+ description = "Event sent when invoice is requested."
class InvoiceDeleted(SubscriptionObjectType, InvoiceBase):
@@ -1329,7 +1262,7 @@ class InvoiceDeleted(SubscriptionObjectType, InvoiceBase):
root_type = "Invoice"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when invoice is deleted." + ADDED_IN_32
+ description = "Event sent when invoice is deleted."
class InvoiceSent(SubscriptionObjectType, InvoiceBase):
@@ -1337,7 +1270,7 @@ class InvoiceSent(SubscriptionObjectType, InvoiceBase):
root_type = "Invoice"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when invoice is sent." + ADDED_IN_32
+ description = "Event sent when invoice is sent."
class FulfillmentBase(AbstractType):
@@ -1366,16 +1299,13 @@ class FulfillmentTrackingNumberUpdated(SubscriptionObjectType, FulfillmentBase):
root_type = "Fulfillment"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when the tracking number is updated." + ADDED_IN_316
+ description = "Event sent when the tracking number is updated."
doc_category = DOC_CATEGORY_ORDERS
class FulfillmentCreated(SubscriptionObjectType, FulfillmentBase):
notify_customer = graphene.Boolean(
- description=(
- "If true, the app should send a notification to the customer."
- + ADDED_IN_316
- ),
+ description=("If true, the app should send a notification to the customer."),
required=True,
)
@@ -1383,7 +1313,7 @@ class FulfillmentCreated(SubscriptionObjectType, FulfillmentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when new fulfillment is created." + ADDED_IN_34
+ description = "Event sent when new fulfillment is created."
doc_category = DOC_CATEGORY_ORDERS
@staticmethod
@@ -1407,12 +1337,12 @@ class FulfillmentCanceled(SubscriptionObjectType, FulfillmentBase):
root_type = "Fulfillment"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when fulfillment is canceled." + ADDED_IN_34
+ description = "Event sent when fulfillment is canceled."
class FulfillmentApproved(SubscriptionObjectType, FulfillmentBase):
notify_customer = graphene.Boolean(
- description="If true, send a notification to the customer." + ADDED_IN_316,
+ description="If true, send a notification to the customer.",
required=True,
)
@@ -1420,7 +1350,7 @@ class FulfillmentApproved(SubscriptionObjectType, FulfillmentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when fulfillment is approved." + ADDED_IN_37
+ description = "Event sent when fulfillment is approved."
doc_category = DOC_CATEGORY_ORDERS
@staticmethod
@@ -1444,7 +1374,7 @@ class FulfillmentMetadataUpdated(SubscriptionObjectType, FulfillmentBase):
root_type = "Fulfillment"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when fulfillment metadata is updated." + ADDED_IN_38
+ description = "Event sent when fulfillment metadata is updated."
class UserBase(AbstractType):
@@ -1464,7 +1394,7 @@ class CustomerCreated(SubscriptionObjectType, UserBase):
root_type = "User"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new customer user is created." + ADDED_IN_32
+ description = "Event sent when new customer user is created."
class CustomerUpdated(SubscriptionObjectType, UserBase):
@@ -1472,7 +1402,7 @@ class CustomerUpdated(SubscriptionObjectType, UserBase):
root_type = "User"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when customer user is updated." + ADDED_IN_32
+ description = "Event sent when customer user is updated."
class CustomerMetadataUpdated(SubscriptionObjectType, UserBase):
@@ -1480,7 +1410,7 @@ class CustomerMetadataUpdated(SubscriptionObjectType, UserBase):
root_type = "User"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when customer user metadata is updated." + ADDED_IN_38
+ description = "Event sent when customer user metadata is updated."
class CollectionBase(AbstractType):
@@ -1503,7 +1433,7 @@ class CollectionCreated(SubscriptionObjectType, CollectionBase):
root_type = "Collection"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new collection is created." + ADDED_IN_32
+ description = "Event sent when new collection is created."
class CollectionUpdated(SubscriptionObjectType, CollectionBase):
@@ -1511,7 +1441,7 @@ class CollectionUpdated(SubscriptionObjectType, CollectionBase):
root_type = "Collection"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when collection is updated." + ADDED_IN_32
+ description = "Event sent when collection is updated."
class CollectionDeleted(SubscriptionObjectType, CollectionBase):
@@ -1519,7 +1449,7 @@ class CollectionDeleted(SubscriptionObjectType, CollectionBase):
root_type = "Collection"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when collection is deleted." + ADDED_IN_32
+ description = "Event sent when collection is deleted."
class CollectionMetadataUpdated(SubscriptionObjectType, CollectionBase):
@@ -1527,7 +1457,7 @@ class CollectionMetadataUpdated(SubscriptionObjectType, CollectionBase):
root_type = "Collection"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when collection metadata is updated." + ADDED_IN_38
+ description = "Event sent when collection metadata is updated."
class CheckoutBase(AbstractType):
@@ -1547,7 +1477,7 @@ class CheckoutCreated(SubscriptionObjectType, CheckoutBase):
root_type = "Checkout"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new checkout is created." + ADDED_IN_32
+ description = "Event sent when new checkout is created."
class CheckoutUpdated(SubscriptionObjectType, CheckoutBase):
@@ -1555,7 +1485,7 @@ class CheckoutUpdated(SubscriptionObjectType, CheckoutBase):
root_type = "Checkout"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when checkout is updated." + ADDED_IN_32
+ description = "Event sent when checkout is updated."
class CheckoutFullyPaid(SubscriptionObjectType, CheckoutBase):
@@ -1568,7 +1498,7 @@ class CheckoutFullyPaid(SubscriptionObjectType, CheckoutBase):
" The checkout is considered as fully paid when the checkout "
"`charge_status` is `FULL` or `OVERCHARGED`. "
"The event is not sent when the checkout authorization flow strategy "
- "is used." + ADDED_IN_313 + PREVIEW_FEATURE
+ "is used."
)
@@ -1577,7 +1507,7 @@ class CheckoutMetadataUpdated(SubscriptionObjectType, CheckoutBase):
root_type = "Checkout"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when checkout metadata is updated." + ADDED_IN_38
+ description = "Event sent when checkout metadata is updated."
class PageBase(AbstractType):
@@ -1596,7 +1526,7 @@ class PageCreated(SubscriptionObjectType, PageBase):
root_type = "Page"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new page is created." + ADDED_IN_32
+ description = "Event sent when new page is created."
class PageUpdated(SubscriptionObjectType, PageBase):
@@ -1604,7 +1534,7 @@ class PageUpdated(SubscriptionObjectType, PageBase):
root_type = "Page"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when page is updated." + ADDED_IN_32
+ description = "Event sent when page is updated."
class PageDeleted(SubscriptionObjectType, PageBase):
@@ -1612,7 +1542,7 @@ class PageDeleted(SubscriptionObjectType, PageBase):
root_type = "Page"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when page is deleted." + ADDED_IN_32
+ description = "Event sent when page is deleted."
class PageTypeBase(AbstractType):
@@ -1632,7 +1562,7 @@ class PageTypeCreated(SubscriptionObjectType, PageTypeBase):
root_type = "PageType"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new page type is created." + ADDED_IN_35
+ description = "Event sent when new page type is created."
class PageTypeUpdated(SubscriptionObjectType, PageTypeBase):
@@ -1640,7 +1570,7 @@ class PageTypeUpdated(SubscriptionObjectType, PageTypeBase):
root_type = "PageType"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when page type is updated." + ADDED_IN_35
+ description = "Event sent when page type is updated."
class PageTypeDeleted(SubscriptionObjectType, PageTypeBase):
@@ -1648,7 +1578,7 @@ class PageTypeDeleted(SubscriptionObjectType, PageTypeBase):
root_type = "PageType"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when page type is deleted." + ADDED_IN_35
+ description = "Event sent when page type is deleted."
class PermissionGroupBase(AbstractType):
@@ -1668,7 +1598,7 @@ class PermissionGroupCreated(SubscriptionObjectType, PermissionGroupBase):
root_type = "Group"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new permission group is created." + ADDED_IN_36
+ description = "Event sent when new permission group is created."
class PermissionGroupUpdated(SubscriptionObjectType, PermissionGroupBase):
@@ -1676,7 +1606,7 @@ class PermissionGroupUpdated(SubscriptionObjectType, PermissionGroupBase):
root_type = "Group"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when permission group is updated." + ADDED_IN_36
+ description = "Event sent when permission group is updated."
class PermissionGroupDeleted(SubscriptionObjectType, PermissionGroupBase):
@@ -1684,7 +1614,7 @@ class PermissionGroupDeleted(SubscriptionObjectType, PermissionGroupBase):
root_type = "Group"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when permission group is deleted." + ADDED_IN_36
+ description = "Event sent when permission group is deleted."
class ShippingPriceBase(AbstractType):
@@ -1719,7 +1649,7 @@ class ShippingPriceCreated(SubscriptionObjectType, ShippingPriceBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when new shipping price is created." + ADDED_IN_32
+ description = "Event sent when new shipping price is created."
doc_category = DOC_CATEGORY_SHIPPING
@@ -1728,7 +1658,7 @@ class ShippingPriceUpdated(SubscriptionObjectType, ShippingPriceBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when shipping price is updated." + ADDED_IN_32
+ description = "Event sent when shipping price is updated."
doc_category = DOC_CATEGORY_SHIPPING
@@ -1737,7 +1667,7 @@ class ShippingPriceDeleted(SubscriptionObjectType, ShippingPriceBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when shipping price is deleted." + ADDED_IN_32
+ description = "Event sent when shipping price is deleted."
doc_category = DOC_CATEGORY_SHIPPING
@@ -1761,7 +1691,7 @@ class ShippingZoneCreated(SubscriptionObjectType, ShippingZoneBase):
root_type = "ShippingZone"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new shipping zone is created." + ADDED_IN_32
+ description = "Event sent when new shipping zone is created."
class ShippingZoneUpdated(SubscriptionObjectType, ShippingZoneBase):
@@ -1769,7 +1699,7 @@ class ShippingZoneUpdated(SubscriptionObjectType, ShippingZoneBase):
root_type = "ShippingZone"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when shipping zone is updated." + ADDED_IN_32
+ description = "Event sent when shipping zone is updated."
class ShippingZoneDeleted(SubscriptionObjectType, ShippingZoneBase):
@@ -1777,7 +1707,7 @@ class ShippingZoneDeleted(SubscriptionObjectType, ShippingZoneBase):
root_type = "ShippingZone"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when shipping zone is deleted." + ADDED_IN_32
+ description = "Event sent when shipping zone is deleted."
class ShippingZoneMetadataUpdated(SubscriptionObjectType, ShippingZoneBase):
@@ -1785,7 +1715,7 @@ class ShippingZoneMetadataUpdated(SubscriptionObjectType, ShippingZoneBase):
root_type = "ShippingZone"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when shipping zone metadata is updated." + ADDED_IN_38
+ description = "Event sent when shipping zone metadata is updated."
class StaffCreated(SubscriptionObjectType, UserBase):
@@ -1793,7 +1723,7 @@ class StaffCreated(SubscriptionObjectType, UserBase):
root_type = "User"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new staff user is created." + ADDED_IN_35
+ description = "Event sent when new staff user is created."
class StaffUpdated(SubscriptionObjectType, UserBase):
@@ -1801,7 +1731,7 @@ class StaffUpdated(SubscriptionObjectType, UserBase):
root_type = "User"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when staff user is updated." + ADDED_IN_35
+ description = "Event sent when staff user is updated."
class StaffDeleted(SubscriptionObjectType, UserBase):
@@ -1809,7 +1739,7 @@ class StaffDeleted(SubscriptionObjectType, UserBase):
root_type = "User"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when staff user is deleted." + ADDED_IN_35
+ description = "Event sent when staff user is deleted."
class StaffSetPasswordRequested(SubscriptionObjectType, AccountOperationBase):
@@ -1817,10 +1747,7 @@ class StaffSetPasswordRequested(SubscriptionObjectType, AccountOperationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when setting a new password for staff is requested."
- + ADDED_IN_315
- )
+ description = "Event sent when setting a new password for staff is requested."
doc_category = DOC_CATEGORY_USERS
@@ -1834,7 +1761,7 @@ class TransactionAction(SubscriptionObjectType, AbstractType):
description="Transaction request amount. Null when action type is VOID.",
)
currency = graphene.String(
- description="Currency code." + ADDED_IN_316,
+ description="Currency code.",
required=True,
)
@@ -1881,31 +1808,21 @@ class TransactionChargeRequested(TransactionActionBase, SubscriptionObjectType):
interfaces = (Event,)
root_type = None
enable_dry_run = False
- description = (
- "Event sent when transaction charge is requested."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- )
+ description = "Event sent when transaction charge is requested."
doc_category = DOC_CATEGORY_PAYMENTS
class TransactionRefundRequested(TransactionActionBase, SubscriptionObjectType):
granted_refund = graphene.Field(
OrderGrantedRefund,
- description="Granted refund related to refund request."
- + ADDED_IN_315
- + PREVIEW_FEATURE,
+ description="Granted refund related to refund request." + PREVIEW_FEATURE,
)
class Meta:
interfaces = (Event,)
root_type = None
enable_dry_run = False
- description = (
- "Event sent when transaction refund is requested."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- )
+ description = "Event sent when transaction refund is requested."
doc_category = DOC_CATEGORY_PAYMENTS
@staticmethod
@@ -1920,11 +1837,7 @@ class TransactionCancelationRequested(TransactionActionBase, SubscriptionObjectT
interfaces = (Event,)
root_type = None
enable_dry_run = False
- description = (
- "Event sent when transaction cancelation is requested."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- )
+ description = "Event sent when transaction cancelation is requested."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -1945,11 +1858,7 @@ class PaymentGatewayInitializeSession(SubscriptionObjectType):
interfaces = (Event,)
root_type = None
enable_dry_run = False
- description = (
- "Event sent when user wants to initialize the payment gateway."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- )
+ description = "Event sent when user wants to initialize the payment gateway."
doc_category = DOC_CATEGORY_PAYMENTS
@staticmethod
@@ -2000,7 +1909,7 @@ class TransactionSessionBase(SubscriptionObjectType, AbstractType):
description=(
"The customer's IP address. If not provided as a parameter in the "
"mutation, Saleor will try to determine the customer's IP address on its "
- "own." + ADDED_IN_316
+ "own."
),
)
action = graphene.Field(
@@ -2055,9 +1964,7 @@ class TransactionSessionBase(SubscriptionObjectType, AbstractType):
class TransactionInitializeSession(TransactionSessionBase):
idempotency_key = graphene.String(
- description=(
- "Idempotency key assigned to the transaction initialize." + ADDED_IN_314
- ),
+ description=("Idempotency key assigned to the transaction initialize."),
required=True,
)
@@ -2065,11 +1972,7 @@ class TransactionInitializeSession(TransactionSessionBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when user starts processing the payment."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- )
+ description = "Event sent when user starts processing the payment."
doc_category = DOC_CATEGORY_PAYMENTS
@classmethod
@@ -2085,11 +1988,7 @@ class TransactionProcessSession(TransactionSessionBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when user has additional payment action to process."
- + ADDED_IN_313
- + PREVIEW_FEATURE
- )
+ description = "Event sent when user has additional payment action to process."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2115,7 +2014,6 @@ class ListStoredPaymentMethods(SubscriptionObjectType):
interfaces = (Event,)
description = (
"List payment methods stored for the user by payment gateway."
- + ADDED_IN_315
+ PREVIEW_FEATURE
)
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2145,9 +2043,7 @@ class TransactionItemMetadataUpdated(SubscriptionObjectType):
root_type = "TransactionItem"
enable_dry_run = True
interfaces = (Event,)
- description = (
- "Event sent when transaction item metadata is updated." + ADDED_IN_38
- )
+ description = "Event sent when transaction item metadata is updated."
doc_category = DOC_CATEGORY_PAYMENTS
@staticmethod
@@ -2184,11 +2080,7 @@ class StoredPaymentMethodDeleteRequested(SubscriptionObjectType):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when user requests to delete a payment method."
- + ADDED_IN_316
- + PREVIEW_FEATURE
- )
+ description = "Event sent when user requests to delete a payment method."
doc_category = DOC_CATEGORY_PAYMENTS
@classmethod
@@ -2266,7 +2158,7 @@ class PaymentGatewayInitializeTokenizationSession(
interfaces = (Event,)
description = (
"Event sent to initialize a new session in payment gateway to store the "
- "payment method. " + ADDED_IN_316 + PREVIEW_FEATURE
+ "payment method. "
)
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2285,11 +2177,7 @@ class PaymentMethodInitializeTokenizationSession(
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when user requests a tokenization of payment method."
- + ADDED_IN_316
- + PREVIEW_FEATURE
- )
+ description = "Event sent when user requests a tokenization of payment method."
doc_category = DOC_CATEGORY_PAYMENTS
@classmethod
@@ -2317,11 +2205,7 @@ class PaymentMethodProcessTokenizationSession(
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Event sent when user continues a tokenization of payment method."
- + ADDED_IN_316
- + PREVIEW_FEATURE
- )
+ description = "Event sent when user continues a tokenization of payment method."
doc_category = DOC_CATEGORY_PAYMENTS
@classmethod
@@ -2367,7 +2251,7 @@ class TranslationCreated(SubscriptionObjectType, TranslationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when new translation is created." + ADDED_IN_32
+ description = "Event sent when new translation is created."
doc_category = DOC_CATEGORY_MISC
@@ -2376,7 +2260,7 @@ class TranslationUpdated(SubscriptionObjectType, TranslationBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when translation is updated." + ADDED_IN_32
+ description = "Event sent when translation is updated."
doc_category = DOC_CATEGORY_MISC
@@ -2400,7 +2284,7 @@ class VoucherCreated(SubscriptionObjectType, VoucherBase):
root_type = "Voucher"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new voucher is created." + ADDED_IN_34
+ description = "Event sent when new voucher is created."
class VoucherUpdated(SubscriptionObjectType, VoucherBase):
@@ -2408,7 +2292,7 @@ class VoucherUpdated(SubscriptionObjectType, VoucherBase):
root_type = "Voucher"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when voucher is updated." + ADDED_IN_34
+ description = "Event sent when voucher is updated."
class VoucherDeleted(SubscriptionObjectType, VoucherBase):
@@ -2416,7 +2300,7 @@ class VoucherDeleted(SubscriptionObjectType, VoucherBase):
root_type = "Voucher"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when voucher is deleted." + ADDED_IN_34
+ description = "Event sent when voucher is deleted."
class VoucherCodeBase(AbstractType):
@@ -2452,7 +2336,7 @@ class VoucherMetadataUpdated(SubscriptionObjectType, VoucherBase):
root_type = "Voucher"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when voucher metadata is updated." + ADDED_IN_38
+ description = "Event sent when voucher metadata is updated."
class VoucherCodeExportCompleted(SubscriptionObjectType):
@@ -2481,7 +2365,7 @@ class ShopMetadataUpdated(SubscriptionObjectType, AbstractType):
root_type = "Shop"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when shop metadata is updated." + ADDED_IN_315
+ description = "Event sent when shop metadata is updated."
@staticmethod
def resolve_shop(root, _info: ResolveInfo):
@@ -2505,7 +2389,7 @@ class PaymentAuthorize(SubscriptionObjectType, PaymentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Authorize payment." + ADDED_IN_36
+ description = "Authorize payment."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2514,7 +2398,7 @@ class PaymentCaptureEvent(SubscriptionObjectType, PaymentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Capture payment." + ADDED_IN_36
+ description = "Capture payment."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2523,7 +2407,7 @@ class PaymentRefundEvent(SubscriptionObjectType, PaymentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Refund payment." + ADDED_IN_36
+ description = "Refund payment."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2532,7 +2416,7 @@ class PaymentVoidEvent(SubscriptionObjectType, PaymentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Void payment." + ADDED_IN_36
+ description = "Void payment."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2541,7 +2425,7 @@ class PaymentConfirmEvent(SubscriptionObjectType, PaymentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Confirm payment." + ADDED_IN_36
+ description = "Confirm payment."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2550,7 +2434,7 @@ class PaymentProcessEvent(SubscriptionObjectType, PaymentBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Process payment." + ADDED_IN_36
+ description = "Process payment."
doc_category = DOC_CATEGORY_PAYMENTS
@@ -2559,15 +2443,14 @@ class PaymentListGateways(SubscriptionObjectType, CheckoutBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "List payment gateways." + ADDED_IN_36
+ description = "List payment gateways."
doc_category = DOC_CATEGORY_PAYMENTS
class ShippingListMethodsForCheckout(SubscriptionObjectType, CheckoutBase):
shipping_methods = NonNullList(
ShippingMethod,
- description="Shipping methods that can be used with this checkout."
- + ADDED_IN_36,
+ description="Shipping methods that can be used with this checkout.",
)
@staticmethod
@@ -2583,7 +2466,7 @@ class ShippingListMethodsForCheckout(SubscriptionObjectType, CheckoutBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "List shipping methods for checkout." + ADDED_IN_36
+ description = "List shipping methods for checkout."
doc_category = DOC_CATEGORY_CHECKOUT
@@ -2596,9 +2479,7 @@ class CalculateTaxes(SubscriptionObjectType):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = (
- "Synchronous webhook for calculating checkout/order taxes." + ADDED_IN_37
- )
+ description = "Synchronous webhook for calculating checkout/order taxes."
doc_category = DOC_CATEGORY_TAXES
@staticmethod
@@ -2610,8 +2491,7 @@ class CalculateTaxes(SubscriptionObjectType):
class CheckoutFilterShippingMethods(SubscriptionObjectType, CheckoutBase):
shipping_methods = NonNullList(
ShippingMethod,
- description="Shipping methods that can be used with this checkout."
- + ADDED_IN_36,
+ description="Shipping methods that can be used with this checkout.",
)
@staticmethod
@@ -2627,15 +2507,14 @@ class CheckoutFilterShippingMethods(SubscriptionObjectType, CheckoutBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Filter shipping methods for checkout." + ADDED_IN_36
+ description = "Filter shipping methods for checkout."
doc_category = DOC_CATEGORY_CHECKOUT
class OrderFilterShippingMethods(SubscriptionObjectType, OrderBase):
shipping_methods = NonNullList(
ShippingMethod,
- description="Shipping methods that can be used with this checkout."
- + ADDED_IN_36,
+ description="Shipping methods that can be used with this checkout.",
)
@staticmethod
@@ -2658,7 +2537,7 @@ class OrderFilterShippingMethods(SubscriptionObjectType, OrderBase):
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Filter shipping methods for order." + ADDED_IN_36
+ description = "Filter shipping methods for order."
doc_category = DOC_CATEGORY_ORDERS
@@ -2679,7 +2558,7 @@ class WarehouseCreated(SubscriptionObjectType, WarehouseBase):
root_type = "Warehouse"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when new warehouse is created." + ADDED_IN_34
+ description = "Event sent when new warehouse is created."
class WarehouseUpdated(SubscriptionObjectType, WarehouseBase):
@@ -2687,7 +2566,7 @@ class WarehouseUpdated(SubscriptionObjectType, WarehouseBase):
root_type = "Warehouse"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when warehouse is updated." + ADDED_IN_34
+ description = "Event sent when warehouse is updated."
class WarehouseDeleted(SubscriptionObjectType, WarehouseBase):
@@ -2695,7 +2574,7 @@ class WarehouseDeleted(SubscriptionObjectType, WarehouseBase):
root_type = "Warehouse"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when warehouse is deleted." + ADDED_IN_34
+ description = "Event sent when warehouse is deleted."
class WarehouseMetadataUpdated(SubscriptionObjectType, WarehouseBase):
@@ -2703,7 +2582,7 @@ class WarehouseMetadataUpdated(SubscriptionObjectType, WarehouseBase):
root_type = "Warehouse"
enable_dry_run = True
interfaces = (Event,)
- description = "Event sent when warehouse metadata is updated." + ADDED_IN_38
+ description = "Event sent when warehouse metadata is updated."
def default_order_resolver(root, info, channels=None):
@@ -2724,7 +2603,7 @@ channels_argument = graphene.Argument(
class Subscription(SubscriptionObjectType):
event = graphene.Field(
Event,
- description="Look up subscription event." + ADDED_IN_32,
+ description="Look up subscription event.",
)
draft_order_created = BaseField(
DraftOrderCreated,
@@ -2895,18 +2774,16 @@ class Subscription(SubscriptionObjectType):
class ThumbnailCreated(SubscriptionObjectType):
- id = graphene.ID(description="Thumbnail id." + ADDED_IN_312)
- url = graphene.String(description="Thumbnail url." + ADDED_IN_312)
- object_id = graphene.ID(
- description="Object the thumbnail refers to." + ADDED_IN_312
- )
- media_url = graphene.String(description="Original media url." + ADDED_IN_312)
+ id = graphene.ID(description="Thumbnail id.")
+ url = graphene.String(description="Thumbnail url.")
+ object_id = graphene.ID(description="Object the thumbnail refers to.")
+ media_url = graphene.String(description="Original media url.")
class Meta:
root_type = None
enable_dry_run = False
interfaces = (Event,)
- description = "Event sent when thumbnail is created." + ADDED_IN_312
+ description = "Event sent when thumbnail is created."
doc_category = DOC_CATEGORY_MISC
@staticmethod
diff --git a/saleor/graphql/webhook/types.py b/saleor/graphql/webhook/types.py
index 6f17cb09dc..2c3343fc80 100644
--- a/saleor/graphql/webhook/types.py
+++ b/saleor/graphql/webhook/types.py
@@ -11,7 +11,7 @@ from ..core.connection import (
filter_connection_queryset,
)
from ..core.context import get_database_connection_name
-from ..core.descriptions import ADDED_IN_312, DEPRECATED_IN_3X_FIELD, PREVIEW_FEATURE
+from ..core.descriptions import DEPRECATED_IN_3X_FIELD
from ..core.fields import FilterConnectionField, JSONString
from ..core.scalars import DateTime
from ..core.types import ModelObjectType, NonNullList
@@ -201,8 +201,6 @@ class Webhook(ModelObjectType[models.Webhook]):
)
custom_headers = JSONString(
description="Custom headers, which will be added to HTTP request."
- + ADDED_IN_312
- + PREVIEW_FEATURE
)
class Meta: