Skip to content

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

Fix grammar errors and verb consistency in GraphQL mutation descriptions (#18009)

Copilot4bba6cf490cf
diff --git a/saleor/graphql/account/mutations/account/account_address_delete.py b/saleor/graphql/account/mutations/account/account_address_delete.py
index 8a3b1975b6..3892b26cea 100644
--- a/saleor/graphql/account/mutations/account/account_address_delete.py
+++ b/saleor/graphql/account/mutations/account/account_address_delete.py
@@ -11,7 +11,7 @@ class AccountAddressDelete(BaseAddressDelete):
class Meta:
auto_permission_message = False
description = (
- "Delete an address of the logged-in user. Requires one of the following "
+ "Deletes an address of the logged-in user. Requires one of the following "
"permissions: MANAGE_USERS, IS_OWNER."
)
doc_category = DOC_CATEGORY_USERS
diff --git a/saleor/graphql/app/mutations/app_delete_failed_installation.py b/saleor/graphql/app/mutations/app_delete_failed_installation.py
index 01a82896cf..fa1c9cafb4 100644
--- a/saleor/graphql/app/mutations/app_delete_failed_installation.py
+++ b/saleor/graphql/app/mutations/app_delete_failed_installation.py
@@ -18,7 +18,7 @@ class AppDeleteFailedInstallation(ModelDeleteMutation):
)
class Meta:
- description = "Delete failed installation."
+ description = "Deletes failed installation."
model = models.AppInstallation
object_type = AppInstallation
permissions = (AppPermission.MANAGE_APPS,)
diff --git a/saleor/graphql/channel/mutations/channel_create.py b/saleor/graphql/channel/mutations/channel_create.py
index f91796f4cf..9a7be869c7 100644
--- a/saleor/graphql/channel/mutations/channel_create.py
+++ b/saleor/graphql/channel/mutations/channel_create.py
@@ -290,7 +290,7 @@ class ChannelCreate(DeprecatedModelMutation):
)
class Meta:
- description = "Creates new channel."
+ description = "Creates a new channel."
model = models.Channel
object_type = Channel
permissions = (ChannelPermissions.MANAGE_CHANNELS,)
diff --git a/saleor/graphql/channel/mutations/channel_delete.py b/saleor/graphql/channel/mutations/channel_delete.py
index ddd2d535a3..3bc53c9b02 100644
--- a/saleor/graphql/channel/mutations/channel_delete.py
+++ b/saleor/graphql/channel/mutations/channel_delete.py
@@ -38,7 +38,7 @@ class ChannelDelete(ModelDeleteMutation):
class Meta:
description = (
- "Delete a channel. Orders associated with the deleted "
+ "Deletes a channel. Orders associated with the deleted "
"channel will be moved to the target channel. "
"Checkouts, product availability, and pricing will be removed."
)
diff --git a/saleor/graphql/checkout/mutations/checkout_billing_address_update.py b/saleor/graphql/checkout/mutations/checkout_billing_address_update.py
index c87153b111..caad9bb47b 100644
--- a/saleor/graphql/checkout/mutations/checkout_billing_address_update.py
+++ b/saleor/graphql/checkout/mutations/checkout_billing_address_update.py
@@ -60,7 +60,7 @@ class CheckoutBillingAddressUpdate(CheckoutShippingAddressUpdate):
)
class Meta:
- description = "Update billing address in the existing checkout."
+ description = "Updates billing address in the existing checkout."
doc_category = DOC_CATEGORY_CHECKOUT
error_type_class = CheckoutError
error_type_field = "checkout_errors"
diff --git a/saleor/graphql/checkout/mutations/checkout_create_from_order.py b/saleor/graphql/checkout/mutations/checkout_create_from_order.py
index 86f151e4e5..41ea486476 100644
--- a/saleor/graphql/checkout/mutations/checkout_create_from_order.py
+++ b/saleor/graphql/checkout/mutations/checkout_create_from_order.py
@@ -73,7 +73,7 @@ class CheckoutCreateFromOrder(BaseMutation):
)
class Meta:
- description = "Create new checkout from existing order."
+ description = "Creates a new checkout from existing order."
doc_category = DOC_CATEGORY_CHECKOUT
error_type_class = CheckoutCreateFromOrderError
diff --git a/saleor/graphql/checkout/mutations/checkout_language_code_update.py b/saleor/graphql/checkout/mutations/checkout_language_code_update.py
index 579210eb44..afd98c694a 100644
--- a/saleor/graphql/checkout/mutations/checkout_language_code_update.py
+++ b/saleor/graphql/checkout/mutations/checkout_language_code_update.py
@@ -40,7 +40,7 @@ class CheckoutLanguageCodeUpdate(BaseMutation):
)
class Meta:
- description = "Update language code in the existing checkout."
+ description = "Updates language code in the existing checkout."
doc_category = DOC_CATEGORY_CHECKOUT
error_type_class = CheckoutError
error_type_field = "checkout_errors"
diff --git a/saleor/graphql/checkout/mutations/checkout_shipping_address_update.py b/saleor/graphql/checkout/mutations/checkout_shipping_address_update.py
index eb76726679..39d5d870d7 100644
--- a/saleor/graphql/checkout/mutations/checkout_shipping_address_update.py
+++ b/saleor/graphql/checkout/mutations/checkout_shipping_address_update.py
@@ -83,7 +83,7 @@ class CheckoutShippingAddressUpdate(AddressMetadataMixin, BaseMutation, I18nMixi
)
class Meta:
- description = "Update shipping address in the existing checkout."
+ description = "Updates shipping address in the existing checkout."
doc_category = DOC_CATEGORY_CHECKOUT
error_type_class = CheckoutError
error_type_field = "checkout_errors"
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 3acb3f5df1..68749d01b9 100644
--- a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_create.py
+++ b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_create.py
@@ -62,7 +62,7 @@ class GiftCardBulkCreate(BaseMutation):
)
class Meta:
- description = "Create gift cards."
+ description = "Creates 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_delete.py b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py
index 04da47ed13..63add0fba8 100644
--- a/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py
+++ b/saleor/graphql/giftcard/bulk_mutations/gift_card_bulk_delete.py
@@ -19,7 +19,7 @@ class GiftCardBulkDelete(ModelBulkDeleteMutation):
)
class Meta:
- description = "Delete gift cards."
+ description = "Deletes gift cards."
model = models.GiftCard
object_type = GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/giftcard/mutations/gift_card_delete.py b/saleor/graphql/giftcard/mutations/gift_card_delete.py
index 6aa3907886..5d1703fdf6 100644
--- a/saleor/graphql/giftcard/mutations/gift_card_delete.py
+++ b/saleor/graphql/giftcard/mutations/gift_card_delete.py
@@ -16,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."
+ description = "Deletes gift card."
model = models.GiftCard
object_type = GiftCard
permissions = (GiftcardPermissions.MANAGE_GIFT_CARD,)
diff --git a/saleor/graphql/order/mutations/order_lines_create.py b/saleor/graphql/order/mutations/order_lines_create.py
index c0c236672f..b7dedbe5e1 100644
--- a/saleor/graphql/order/mutations/order_lines_create.py
+++ b/saleor/graphql/order/mutations/order_lines_create.py
@@ -58,7 +58,7 @@ class OrderLinesCreate(EditableOrderValidationMixin, BaseMutation):
)
class Meta:
- description = "Create order lines for an order."
+ description = "Creates order lines for an order."
doc_category = DOC_CATEGORY_ORDERS
permissions = (OrderPermissions.MANAGE_ORDERS,)
error_type_class = OrderError
diff --git a/saleor/graphql/page/bulk_mutations.py b/saleor/graphql/page/bulk_mutations.py
index 7775202548..eae08e96c1 100644
--- a/saleor/graphql/page/bulk_mutations.py
+++ b/saleor/graphql/page/bulk_mutations.py
@@ -100,7 +100,7 @@ class PageTypeBulkDelete(ModelBulkDeleteMutation):
)
class Meta:
- description = "Delete page types."
+ description = "Deletes page types."
model = models.PageType
object_type = PageType
permissions = (PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES,)
diff --git a/saleor/graphql/page/mutations/page_type_create.py b/saleor/graphql/page/mutations/page_type_create.py
index 635d71b374..a3292d90e3 100644
--- a/saleor/graphql/page/mutations/page_type_create.py
+++ b/saleor/graphql/page/mutations/page_type_create.py
@@ -66,7 +66,7 @@ class PageTypeCreate(PageTypeMixin, DeprecatedModelMutation):
)
class Meta:
- description = "Create a new page type."
+ description = "Creates a new page type."
model = models.PageType
object_type = PageType
permissions = (PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES,)
diff --git a/saleor/graphql/page/mutations/page_type_delete.py b/saleor/graphql/page/mutations/page_type_delete.py
index c26414bacb..47c776f875 100644
--- a/saleor/graphql/page/mutations/page_type_delete.py
+++ b/saleor/graphql/page/mutations/page_type_delete.py
@@ -18,7 +18,7 @@ class PageTypeDelete(ModelDeleteMutation):
id = graphene.ID(required=True, description="ID of the page type to delete.")
class Meta:
- description = "Delete a page type."
+ description = "Deletes a page type."
model = models.PageType
object_type = PageType
permissions = (PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES,)
diff --git a/saleor/graphql/page/mutations/page_type_update.py b/saleor/graphql/page/mutations/page_type_update.py
index cad2f08029..0a73413e57 100644
--- a/saleor/graphql/page/mutations/page_type_update.py
+++ b/saleor/graphql/page/mutations/page_type_update.py
@@ -35,7 +35,7 @@ class PageTypeUpdate(PageTypeMixin, DeprecatedModelMutation):
)
class Meta:
- description = "Update page type."
+ description = "Updates page type."
model = models.PageType
object_type = PageType
permissions = (PageTypePermissions.MANAGE_PAGE_TYPES_AND_ATTRIBUTES,)
diff --git a/saleor/graphql/payment/mutations/payment/checkout_payment_create.py b/saleor/graphql/payment/mutations/payment/checkout_payment_create.py
index 5ca530b364..976cadd36a 100644
--- a/saleor/graphql/payment/mutations/payment/checkout_payment_create.py
+++ b/saleor/graphql/payment/mutations/payment/checkout_payment_create.py
@@ -104,7 +104,7 @@ class CheckoutPaymentCreate(BaseMutation, I18nMixin):
)
class Meta:
- description = "Create a new payment for given checkout."
+ description = "Creates a new payment for given checkout."
doc_category = DOC_CATEGORY_CHECKOUT
error_type_class = common_types.PaymentError
error_type_field = "payment_errors"
diff --git a/saleor/graphql/payment/mutations/transaction/transaction_create.py b/saleor/graphql/payment/mutations/transaction/transaction_create.py
index a9e0d689f2..5c4a25e697 100644
--- a/saleor/graphql/payment/mutations/transaction/transaction_create.py
+++ b/saleor/graphql/payment/mutations/transaction/transaction_create.py
@@ -117,7 +117,7 @@ class TransactionCreate(BaseMutation):
)
class Meta:
- description = "Create transaction for checkout or order."
+ description = "Creates 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/product/bulk_mutations/product_variant_bulk_update.py b/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py
index 02a67f41a7..9c930898a5 100644
--- a/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py
+++ b/saleor/graphql/product/bulk_mutations/product_variant_bulk_update.py
@@ -152,7 +152,7 @@ class ProductVariantBulkUpdate(BaseMutation):
)
class Meta:
- description = "Update multiple product variants."
+ description = "Updates multiple product variants."
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
error_type_class = ProductVariantBulkError
diff --git a/saleor/graphql/product/bulk_mutations/product_variant_stocks_delete.py b/saleor/graphql/product/bulk_mutations/product_variant_stocks_delete.py
index ecaff655bc..d73a5007f1 100644
--- a/saleor/graphql/product/bulk_mutations/product_variant_stocks_delete.py
+++ b/saleor/graphql/product/bulk_mutations/product_variant_stocks_delete.py
@@ -39,7 +39,7 @@ class ProductVariantStocksDelete(BaseMutation):
)
class Meta:
- description = "Delete stocks from product variant."
+ description = "Deletes stocks from product variant."
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
error_type_class = StockError
diff --git a/saleor/graphql/product/bulk_mutations/product_variant_stocks_update.py b/saleor/graphql/product/bulk_mutations/product_variant_stocks_update.py
index e38e6b40d7..2dd09f5943 100644
--- a/saleor/graphql/product/bulk_mutations/product_variant_stocks_update.py
+++ b/saleor/graphql/product/bulk_mutations/product_variant_stocks_update.py
@@ -25,7 +25,7 @@ from .product_variant_stocks_create import ProductVariantStocksCreate
class ProductVariantStocksUpdate(ProductVariantStocksCreate):
class Meta:
- description = "Update stocks for product variant."
+ description = "Updates stocks for product variant."
doc_category = DOC_CATEGORY_PRODUCTS
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
error_type_class = BulkStockError
diff --git a/saleor/graphql/product/mutations/digital_contents.py b/saleor/graphql/product/mutations/digital_contents.py
index 05a3801e1f..2cf18bb393 100644
--- a/saleor/graphql/product/mutations/digital_contents.py
+++ b/saleor/graphql/product/mutations/digital_contents.py
@@ -208,7 +208,7 @@ class DigitalContentUpdate(BaseMutation):
)
class Meta:
- description = "Update digital content."
+ description = "Updates digital content."
doc_category = DOC_CATEGORY_PRODUCTS
error_type_class = ProductError
error_type_field = "product_errors"
diff --git a/saleor/graphql/schema.graphql b/saleor/graphql/schema.graphql
index a0ffc26c90..ffd6e9a538 100644
--- a/saleor/graphql/schema.graphql
+++ b/saleor/graphql/schema.graphql
@@ -14918,7 +14918,7 @@ type Mutation {
): WebhookCreate @doc(category: "Webhooks")
"""
- Delete a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated.
+ Deletes a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated.
Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP.
"""
@@ -14977,7 +14977,7 @@ type Mutation {
): WebhookTrigger @doc(category: "Webhooks")
"""
- Creates new warehouse.
+ Creates a new warehouse.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -15039,7 +15039,7 @@ type Mutation {
): WarehouseShippingZoneUnassign @doc(category: "Products")
"""
- Create a tax class.
+ Creates a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -15049,7 +15049,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.
+ Deletes 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.
"""
@@ -15059,7 +15059,7 @@ type Mutation {
): TaxClassDelete @doc(category: "Taxes")
"""
- Update a tax class.
+ Updates a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -15072,7 +15072,7 @@ type Mutation {
): TaxClassUpdate @doc(category: "Taxes")
"""
- Update tax configuration for a channel.
+ Updates tax configuration for a channel.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -15085,7 +15085,7 @@ type Mutation {
): TaxConfigurationUpdate @doc(category: "Taxes")
"""
- Update tax class rates for a specific country.
+ Updates tax class rates for a specific country.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -15162,7 +15162,7 @@ type Mutation {
): StaffNotificationRecipientUpdate @doc(category: "Users")
"""
- Delete staff notification recipient.
+ Deletes staff notification recipient.
Requires one of the following permissions: MANAGE_SETTINGS.
"""
@@ -15875,7 +15875,7 @@ type Mutation {
): DigitalContentDelete @doc(category: "Products")
"""
- Update digital content.
+ Updates digital content.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -15940,7 +15940,7 @@ type Mutation {
): ProductVariantBulkCreate @doc(category: "Products")
"""
- Update multiple product variants.
+ Updates multiple product variants.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -15982,7 +15982,7 @@ type Mutation {
): ProductVariantStocksCreate @doc(category: "Products")
"""
- Delete stocks from product variant.
+ Deletes stocks from product variant.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -15998,7 +15998,7 @@ type Mutation {
): ProductVariantStocksDelete @doc(category: "Products")
"""
- Update stocks for product variant.
+ Updates stocks for product variant.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -16062,7 +16062,7 @@ type Mutation {
): ProductVariantTranslate @doc(category: "Products")
"""
- Creates/updates translations for products variants.
+ Creates/updates translations for product variants.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
@@ -16074,7 +16074,7 @@ type Mutation {
"""Policies of error handling. DEFAULT: REJECT_EVERYTHING"""
errorPolicy: ErrorPolicyEnum
- """List of products variants translations."""
+ """List of product variant translations."""
translations: [ProductVariantBulkTranslateInput!]!
): ProductVariantBulkTranslate @doc(category: "Products") @webhookEventsInfo(asyncEvents: [TRANSLATION_CREATED, TRANSLATION_UPDATED], syncEvents: [])
@@ -16203,7 +16203,7 @@ type Mutation {
): PaymentCheckBalance @doc(category: "Payments")
"""
- Create transaction for checkout or order.
+ Creates transaction for checkout or order.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -16573,7 +16573,7 @@ type Mutation {
): PageTranslate @doc(category: "Pages")
"""
- Create a new page type.
+ Creates a new page type.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -16583,7 +16583,7 @@ type Mutation {
): PageTypeCreate @doc(category: "Pages")
"""
- Update page type.
+ Updates page type.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -16596,7 +16596,7 @@ type Mutation {
): PageTypeUpdate @doc(category: "Pages")
"""
- Delete a page type.
+ Deletes a page type.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -16606,7 +16606,7 @@ type Mutation {
): PageTypeDelete @doc(category: "Pages")
"""
- Delete page types.
+ Deletes page types.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -16905,7 +16905,7 @@ type Mutation {
): OrderGrantRefundUpdate @doc(category: "Orders")
"""
- Create order lines for an order.
+ Creates order lines for an order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -17432,7 +17432,7 @@ type Mutation {
): GiftCardCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: [])
"""
- Delete gift card.
+ Deletes gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17503,7 +17503,7 @@ type Mutation {
): GiftCardAddNote @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_UPDATED], syncEvents: [])
"""
- Create gift cards.
+ Creates gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -17517,7 +17517,7 @@ type Mutation {
): GiftCardBulkCreate @doc(category: "Gift cards") @webhookEventsInfo(asyncEvents: [GIFT_CARD_CREATED, NOTIFY_USER], syncEvents: [])
"""
- Delete gift cards.
+ Deletes gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -18048,7 +18048,7 @@ type Mutation {
): CheckoutAddPromoCode @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [])
"""
- Update billing address in the existing checkout.
+ Updates billing address in the existing checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
@@ -18134,7 +18134,7 @@ type Mutation {
input: CheckoutCreateInput!
): CheckoutCreate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_CREATED], syncEvents: [])
- """Create new checkout from existing order."""
+ """Creates a new checkout from existing order."""
checkoutCreateFromOrder(
"""ID of a order that will be used to create the checkout."""
id: ID!
@@ -18323,7 +18323,7 @@ type Mutation {
token: UUID @deprecated(reason: "Use `id` instead.")
): CheckoutRemovePromoCode @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [])
- """Create a new payment for given checkout."""
+ """Creates a new payment for given checkout."""
checkoutPaymentCreate(
"""The ID of the checkout."""
checkoutId: ID @deprecated(reason: "Use `id` instead.")
@@ -18339,7 +18339,7 @@ type Mutation {
): CheckoutPaymentCreate @doc(category: "Checkout")
"""
- Update shipping address in the existing checkout.
+ Updates shipping address in the existing checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
@@ -18408,7 +18408,7 @@ type Mutation {
): CheckoutDeliveryMethodUpdate @doc(category: "Checkout") @webhookEventsInfo(asyncEvents: [CHECKOUT_UPDATED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT])
"""
- Update language code in the existing checkout.
+ Updates language code in the existing checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
@@ -18467,7 +18467,7 @@ type Mutation {
): OrderCreateFromCheckout @doc(category: "Orders") @webhookEventsInfo(asyncEvents: [ORDER_CREATED, NOTIFY_USER, NOTIFY_USER, ORDER_UPDATED, ORDER_PAID, ORDER_FULLY_PAID, ORDER_CONFIRMED], syncEvents: [SHIPPING_LIST_METHODS_FOR_CHECKOUT, CHECKOUT_FILTER_SHIPPING_METHODS, CHECKOUT_CALCULATE_TAXES])
"""
- Creates new channel.
+ Creates a new channel.
Requires one of the following permissions: MANAGE_CHANNELS.
@@ -18500,7 +18500,7 @@ type Mutation {
): ChannelUpdate @doc(category: "Channels") @webhookEventsInfo(asyncEvents: [CHANNEL_UPDATED, CHANNEL_METADATA_UPDATED], syncEvents: [])
"""
- Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed.
+ Deletes a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed.
Requires one of the following permissions: MANAGE_CHANNELS.
@@ -18741,7 +18741,7 @@ type Mutation {
): AttributeValueUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncEvents: [ATTRIBUTE_VALUE_UPDATED, ATTRIBUTE_UPDATED], syncEvents: [])
"""
- Creates/updates translations for attributes values.
+ Creates/updates translations for attribute values.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -18877,7 +18877,7 @@ type Mutation {
): AppRetryInstall @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP_INSTALLED], syncEvents: [])
"""
- Delete failed installation.
+ Deletes failed installation.
Requires one of the following permissions: MANAGE_APPS.
"""
@@ -19188,7 +19188,7 @@ type Mutation {
): AccountAddressUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents: [ADDRESS_UPDATED], syncEvents: [])
"""
- Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.
+ Deletes an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.
Triggers the following webhook events:
- ADDRESS_DELETED (async): An address was deleted.
@@ -19634,7 +19634,7 @@ input WebhookCreateInput @doc(category: "Webhooks") {
}
"""
-Delete a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated.
+Deletes a webhook. Before the deletion, the webhook is deactivated to pause any deliveries that are already scheduled. The deletion might fail if delivery is in progress. In such a case, the webhook is not deleted but remains deactivated.
Requires one of the following permissions: MANAGE_APPS, AUTHENTICATED_APP.
"""
@@ -19773,7 +19773,7 @@ enum WebhookTriggerErrorCode @doc(category: "Webhooks") {
}
"""
-Creates new warehouse.
+Creates a new warehouse.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -19896,7 +19896,7 @@ type WarehouseShippingZoneUnassign @doc(category: "Products") {
}
"""
-Create a tax class.
+Creates a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -19946,7 +19946,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.
+Deletes 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.
"""
@@ -19975,7 +19975,7 @@ enum TaxClassDeleteErrorCode @doc(category: "Taxes") {
}
"""
-Update a tax class.
+Updates a tax class.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20033,7 +20033,7 @@ input CountryRateUpdateInput @doc(category: "Taxes") {
}
"""
-Update tax configuration for a channel.
+Updates tax configuration for a channel.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20136,7 +20136,7 @@ input TaxConfigurationPerCountryInput @doc(category: "Taxes") {
}
"""
-Update tax class rates for a specific country.
+Updates tax class rates for a specific country.
Requires one of the following permissions: MANAGE_TAXES.
"""
@@ -20372,7 +20372,7 @@ type StaffNotificationRecipientUpdate @doc(category: "Users") {
}
"""
-Delete staff notification recipient.
+Deletes staff notification recipient.
Requires one of the following permissions: MANAGE_SETTINGS.
"""
@@ -22456,7 +22456,7 @@ type DigitalContentDelete @doc(category: "Products") {
}
"""
-Update digital content.
+Updates digital content.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -22694,7 +22694,7 @@ type BulkProductError @doc(category: "Products") {
}
"""
-Update multiple product variants.
+Updates multiple product variants.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -22855,7 +22855,7 @@ type BulkStockError @doc(category: "Products") {
}
"""
-Delete stocks from product variant.
+Deletes stocks from product variant.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -22889,7 +22889,7 @@ enum StockErrorCode @doc(category: "Products") {
}
"""
-Update stocks for product variant.
+Updates stocks for product variant.
Requires one of the following permissions: MANAGE_PRODUCTS.
"""
@@ -22982,7 +22982,7 @@ input NameTranslationInput {
}
"""
-Creates/updates translations for products variants.
+Creates/updates translations for product variants.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
@@ -23239,7 +23239,7 @@ input MoneyInput {
}
"""
-Create transaction for checkout or order.
+Creates transaction for checkout or order.
Requires one of the following permissions: HANDLE_PAYMENTS.
"""
@@ -24088,7 +24088,7 @@ input PageTranslationInput {
}
"""
-Create a new page type.
+Creates a new page type.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -24110,7 +24110,7 @@ input PageTypeCreateInput @doc(category: "Pages") {
}
"""
-Update page type.
+Updates page type.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -24135,7 +24135,7 @@ input PageTypeUpdateInput @doc(category: "Pages") {
}
"""
-Delete a page type.
+Deletes a page type.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -24146,7 +24146,7 @@ type PageTypeDelete @doc(category: "Pages") {
}
"""
-Delete page types.
+Deletes page types.
Requires one of the following permissions: MANAGE_PAGE_TYPES_AND_ATTRIBUTES.
"""
@@ -24943,7 +24943,7 @@ input OrderGrantRefundUpdateLineAddInput @doc(category: "Orders") {
}
"""
-Create order lines for an order.
+Creates order lines for an order.
Requires one of the following permissions: MANAGE_ORDERS.
"""
@@ -26232,7 +26232,7 @@ input PriceInput {
}
"""
-Delete gift card.
+Deletes gift card.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26360,7 +26360,7 @@ input GiftCardAddNoteInput @doc(category: "Gift cards") {
}
"""
-Create gift cards.
+Creates gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -26395,7 +26395,7 @@ input GiftCardBulkCreateInput @doc(category: "Gift cards") {
}
"""
-Delete gift cards.
+Deletes gift cards.
Requires one of the following permissions: MANAGE_GIFT_CARD.
@@ -27804,7 +27804,7 @@ enum CheckoutErrorCode @doc(category: "Checkout") {
}
"""
-Update billing address in the existing checkout.
+Updates billing address in the existing checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
@@ -27981,7 +27981,7 @@ input CheckoutValidationRules @doc(category: "Checkout") {
billingAddress: CheckoutAddressValidationRules
}
-"""Create new checkout from existing order."""
+"""Creates a new checkout from existing order."""
type CheckoutCreateFromOrder @doc(category: "Checkout") {
"""Variants that were not attached to the checkout."""
unavailableVariants: [CheckoutCreateFromOrderUnavailableVariant!]
@@ -28184,7 +28184,7 @@ type CheckoutRemovePromoCode @doc(category: "Checkout") @webhookEventsInfo(async
errors: [CheckoutError!]!
}
-"""Create a new payment for given checkout."""
+"""Creates a new payment for given checkout."""
type CheckoutPaymentCreate @doc(category: "Checkout") {
"""Related checkout object."""
checkout: Checkout
@@ -28242,7 +28242,7 @@ enum StorePaymentMethodEnum @doc(category: "Payments") {
}
"""
-Update shipping address in the existing checkout.
+Updates shipping address in the existing checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
@@ -28282,7 +28282,7 @@ type CheckoutDeliveryMethodUpdate @doc(category: "Checkout") @webhookEventsInfo(
}
"""
-Update language code in the existing checkout.
+Updates language code in the existing checkout.
Triggers the following webhook events:
- CHECKOUT_UPDATED (async): A checkout was updated.
@@ -28352,7 +28352,7 @@ enum OrderCreateFromCheckoutErrorCode @doc(category: "Orders") {
}
"""
-Creates new channel.
+Creates a new channel.
Requires one of the following permissions: MANAGE_CHANNELS.
@@ -28633,7 +28633,7 @@ input ChannelUpdateInput @doc(category: "Channels") {
}
"""
-Delete a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed.
+Deletes a channel. Orders associated with the deleted channel will be moved to the target channel. Checkouts, product availability, and pricing will be removed.
Requires one of the following permissions: MANAGE_CHANNELS.
@@ -29179,7 +29179,7 @@ type AttributeValueUpdate @doc(category: "Attributes") @webhookEventsInfo(asyncE
}
"""
-Creates/updates translations for attributes values.
+Creates/updates translations for attribute values.
Requires one of the following permissions: MANAGE_TRANSLATIONS.
"""
@@ -29444,7 +29444,7 @@ type AppRetryInstall @doc(category: "Apps") @webhookEventsInfo(asyncEvents: [APP
}
"""
-Delete failed installation.
+Deletes failed installation.
Requires one of the following permissions: MANAGE_APPS.
"""
@@ -29969,7 +29969,7 @@ type AccountAddressUpdate @doc(category: "Users") @webhookEventsInfo(asyncEvents
}
"""
-Delete an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.
+Deletes an address of the logged-in user. Requires one of the following permissions: MANAGE_USERS, IS_OWNER.
Triggers the following webhook events:
- ADDRESS_DELETED (async): An address was deleted.
diff --git a/saleor/graphql/shop/mutations/staff_notification_recipient_delete.py b/saleor/graphql/shop/mutations/staff_notification_recipient_delete.py
index c54529035f..4c8d0c20e1 100644
--- a/saleor/graphql/shop/mutations/staff_notification_recipient_delete.py
+++ b/saleor/graphql/shop/mutations/staff_notification_recipient_delete.py
@@ -14,7 +14,7 @@ class StaffNotificationRecipientDelete(ModelDeleteMutation):
)
class Meta:
- description = "Delete staff notification recipient."
+ description = "Deletes staff notification recipient."
model = account_models.StaffNotificationRecipient
object_type = StaffNotificationRecipient
permissions = (SitePermissions.MANAGE_SETTINGS,)
diff --git a/saleor/graphql/tax/mutations/tax_class_create.py b/saleor/graphql/tax/mutations/tax_class_create.py
index c2ebb7a801..d7bd2c4b5a 100644
--- a/saleor/graphql/tax/mutations/tax_class_create.py
+++ b/saleor/graphql/tax/mutations/tax_class_create.py
@@ -58,7 +58,7 @@ class TaxClassCreate(DeprecatedModelMutation):
)
class Meta:
- description = "Create a tax class."
+ description = "Creates 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 9b20f82b68..5f3c1afbaa 100644
--- a/saleor/graphql/tax/mutations/tax_class_delete.py
+++ b/saleor/graphql/tax/mutations/tax_class_delete.py
@@ -24,7 +24,7 @@ class TaxClassDelete(ModelDeleteMutation):
class Meta:
description = (
- "Delete a tax class. After deleting the tax class any products, "
+ "Deletes 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."
)
diff --git a/saleor/graphql/tax/mutations/tax_class_update.py b/saleor/graphql/tax/mutations/tax_class_update.py
index dbb9718773..a77b89d101 100644
--- a/saleor/graphql/tax/mutations/tax_class_update.py
+++ b/saleor/graphql/tax/mutations/tax_class_update.py
@@ -71,7 +71,7 @@ class TaxClassUpdate(DeprecatedModelMutation):
)
class Meta:
- description = "Update a tax class."
+ description = "Updates 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 f48a470b39..3cc2fd460a 100644
--- a/saleor/graphql/tax/mutations/tax_configuration_update.py
+++ b/saleor/graphql/tax/mutations/tax_configuration_update.py
@@ -146,7 +146,7 @@ class TaxConfigurationUpdate(DeprecatedModelMutation):
)
class Meta:
- description = "Update tax configuration for a channel."
+ description = "Updates 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_update.py b/saleor/graphql/tax/mutations/tax_country_configuration_update.py
index a7b8f786ad..5222962eee 100644
--- a/saleor/graphql/tax/mutations/tax_country_configuration_update.py
+++ b/saleor/graphql/tax/mutations/tax_country_configuration_update.py
@@ -66,7 +66,7 @@ class TaxCountryConfigurationUpdate(BaseMutation):
)
class Meta:
- description = "Update tax class rates for a specific country."
+ description = "Updates 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/translations/mutations/attribute_value_bulk_translate.py b/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py
index 5d17afdfbe..515c168303 100644
--- a/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py
+++ b/saleor/graphql/translations/mutations/attribute_value_bulk_translate.py
@@ -76,7 +76,7 @@ class AttributeValueBulkTranslate(BaseBulkTranslateMutation):
)
class Meta:
- description = "Creates/updates translations for attributes values."
+ description = "Creates/updates translations for attribute values."
base_model = models.AttributeValue
translation_model = models.AttributeValueTranslation
translation_fields = ["name", "rich_text", "plain_text"]
diff --git a/saleor/graphql/translations/mutations/product_variant_bulk_translate.py b/saleor/graphql/translations/mutations/product_variant_bulk_translate.py
index fe3f1214ee..1af3d24d49 100644
--- a/saleor/graphql/translations/mutations/product_variant_bulk_translate.py
+++ b/saleor/graphql/translations/mutations/product_variant_bulk_translate.py
@@ -69,11 +69,11 @@ class ProductVariantBulkTranslate(BaseBulkTranslateMutation):
translations = NonNullList(
ProductVariantBulkTranslateInput,
required=True,
- description="List of products variants translations.",
+ description="List of product variant translations.",
)
class Meta:
- description = "Creates/updates translations for products variants."
+ description = "Creates/updates translations for product variants."
base_model = models.ProductVariant
translation_model = models.ProductVariantTranslation
translation_fields = ["name"]
diff --git a/saleor/graphql/warehouse/mutations/warehouse_create.py b/saleor/graphql/warehouse/mutations/warehouse_create.py
index 2089d863b9..7cbb672d7c 100644
--- a/saleor/graphql/warehouse/mutations/warehouse_create.py
+++ b/saleor/graphql/warehouse/mutations/warehouse_create.py
@@ -19,7 +19,7 @@ class WarehouseCreate(
)
class Meta:
- description = "Creates new warehouse."
+ description = "Creates a new warehouse."
model = models.Warehouse
object_type = Warehouse
permissions = (ProductPermissions.MANAGE_PRODUCTS,)
diff --git a/saleor/graphql/webhook/mutations/webhook_delete.py b/saleor/graphql/webhook/mutations/webhook_delete.py
index d6d10141a6..8a3da535a9 100644
--- a/saleor/graphql/webhook/mutations/webhook_delete.py
+++ b/saleor/graphql/webhook/mutations/webhook_delete.py
@@ -21,7 +21,7 @@ class WebhookDelete(ModelDeleteMutation):
class Meta:
description = (
- "Delete a webhook. Before the deletion, the webhook is deactivated to "
+ "Deletes a webhook. Before the deletion, the webhook is deactivated to "
"pause any deliveries that are already scheduled. The deletion might fail "
"if delivery is in progress. In such a case, the webhook is not deleted "
"but remains deactivated."