Saleor Core: the high performance, composable, headless commerce API.
Python cartcheckoutcommercecomposablee-commerceecommercegraphqlheadlessheadless-commercemultichannelomsorder-managementpaymentspimpythonshopshopping-cartstore
Use lowercase for object names in descriptions
Marcin Gębalaaedcb2bcaa6f
diff --git a/saleor/graphql/checkout/mutations.py b/saleor/graphql/checkout/mutations.pyindex 00c8ca3bf6..161cc8ea87 100644--- a/saleor/graphql/checkout/mutations.py+++ b/saleor/graphql/checkout/mutations.py@@ -127,7 +127,7 @@ def check_lines_quantity(variants, quantities):class CheckoutLineInput(graphene.InputObjectType):quantity = graphene.Int(required=True, description="The number of items purchased.")- variant_id = graphene.ID(required=True, description="ID of the ProductVariant.")+ variant_id = graphene.ID(required=True, description="ID of the product variant.")class CheckoutCreateInput(graphene.InputObjectType):@@ -298,10 +298,10 @@ class CheckoutCreate(ModelMutation, I18nMixin):class CheckoutLinesAdd(BaseMutation):- checkout = graphene.Field(Checkout, description="An updated Checkout.")+ checkout = graphene.Field(Checkout, description="An updated checkout.")class Arguments:- checkout_id = graphene.ID(description="The ID of the Checkout.", required=True)+ checkout_id = graphene.ID(description="The ID of the checkout.", required=True)lines = graphene.List(CheckoutLineInput,required=True,@@ -346,10 +346,10 @@ class CheckoutLinesAdd(BaseMutation):class CheckoutLinesUpdate(CheckoutLinesAdd):- checkout = graphene.Field(Checkout, description="An updated Checkout.")+ checkout = graphene.Field(Checkout, description="An updated checkout.")class Meta:- description = "Updates CheckoutLine in the existing Checkout."+ description = "Updates checkout line in the existing checkout."error_type_class = CheckoutErrorerror_type_field = "checkout_errors"@@ -362,8 +362,8 @@ class CheckoutLineDelete(BaseMutation):checkout = graphene.Field(Checkout, description="An updated checkout.")class Arguments:- checkout_id = graphene.ID(description="The ID of the Checkout.", required=True)- line_id = graphene.ID(description="ID of the CheckoutLine to delete.")+ checkout_id = graphene.ID(description="The ID of the checkout.", required=True)+ line_id = graphene.ID(description="ID of the checkout line to delete.")class Meta:description = "Deletes a CheckoutLine."@@ -392,11 +392,11 @@ class CheckoutCustomerAttach(BaseMutation):checkout = graphene.Field(Checkout, description="An updated checkout.")class Arguments:- checkout_id = graphene.ID(required=True, description="ID of the Checkout.")+ checkout_id = graphene.ID(required=True, description="ID of the checkout.")customer_id = graphene.ID(required=True, description="The ID of the customer.")class Meta:- description = "Sets the customer as the owner of the Checkout."+ description = "Sets the customer as the owner of the checkout."error_type_class = CheckoutErrorerror_type_field = "checkout_errors"@@ -438,14 +438,14 @@ class CheckoutShippingAddressUpdate(BaseMutation, I18nMixin):checkout = graphene.Field(Checkout, description="An updated checkout.")class Arguments:- checkout_id = graphene.ID(required=True, description="ID of the Checkout.")+ checkout_id = graphene.ID(required=True, description="ID of the checkout.")shipping_address = AddressInput(required=True,description="The mailing address to where the checkout will be shipped.",)class Meta:- description = "Update shipping address in the existing Checkout."+ description = "Update shipping address in the existing checkout."error_type_class = CheckoutErrorerror_type_field = "checkout_errors"@@ -495,13 +495,13 @@ class CheckoutBillingAddressUpdate(CheckoutShippingAddressUpdate):checkout = graphene.Field(Checkout, description="An updated checkout.")class Arguments:- checkout_id = graphene.ID(required=True, description="ID of the Checkout.")+ checkout_id = graphene.ID(required=True, description="ID of the checkout.")billing_address = AddressInput(required=True, description="The billing address of the checkout.")class Meta:- description = "Update billing address in the existing Checkout."+ description = "Update billing address in the existing checkout."error_type_class = CheckoutErrorerror_type_field = "checkout_errors"@@ -528,7 +528,7 @@ class CheckoutEmailUpdate(BaseMutation):email = graphene.String(required=True, description="email.")class Meta:- description = "Updates email address in the existing Checkout object."+ description = "Updates email address in the existing checkout object."error_type_class = CheckoutErrorerror_type_field = "checkout_errors"@@ -810,7 +810,7 @@ class CheckoutRemovePromoCode(BaseMutation):class CheckoutUpdateMeta(UpdateMetaBaseMutation):class Meta:- description = "Updates metadata for Checkout."+ description = "Updates metadata for checkout."permissions = ("order.manage_orders",)model = models.Checkoutpublic = True@@ -820,7 +820,7 @@ class CheckoutUpdateMeta(UpdateMetaBaseMutation):class CheckoutUpdatePrivateMeta(UpdateMetaBaseMutation):class Meta:- description = "Updates private metadata for Checkout."+ description = "Updates private metadata for checkout."permissions = ("order.manage_orders",)model = models.Checkoutpublic = Falsediff --git a/saleor/graphql/product/mutations/attributes.py b/saleor/graphql/product/mutations/attributes.pyindex b03313f6ab..a09095978f 100644--- a/saleor/graphql/product/mutations/attributes.py+++ b/saleor/graphql/product/mutations/attributes.py@@ -518,7 +518,7 @@ class AttributeDelete(ModelDeleteMutation):class AttributeUpdateMeta(UpdateMetaBaseMutation):class Meta:model = models.Attribute- description = "Update public metadata for Attribute."+ description = "Update public metadata for attribute."permissions = ("product.manage_products",)public = Trueerror_type_class = ProductError@@ -527,7 +527,7 @@ class AttributeUpdateMeta(UpdateMetaBaseMutation):class AttributeClearMeta(ClearMetaBaseMutation):class Meta:- description = "Clears public metadata item for Attribute."+ description = "Clears public metadata item for attribute."model = models.Attributepermissions = ("product.manage_products",)public = True@@ -537,7 +537,7 @@ class AttributeClearMeta(ClearMetaBaseMutation):class AttributeUpdatePrivateMeta(UpdateMetaBaseMutation):class Meta:- description = "Update public metadata for Attribute."+ description = "Update public metadata for attribute."model = models.Attributepermissions = ("product.manage_products",)public = False@@ -547,7 +547,7 @@ class AttributeUpdatePrivateMeta(UpdateMetaBaseMutation):class AttributeClearPrivateMeta(ClearMetaBaseMutation):class Meta:- description = "Clears public metadata item for Attribute."+ description = "Clears public metadata item for attribute."model = models.Attributepermissions = ("product.manage_products",)public = Falsediff --git a/saleor/graphql/product/mutations/products.py b/saleor/graphql/product/mutations/products.pyindex 71e30b4ba6..86362de7f1 100644--- a/saleor/graphql/product/mutations/products.py+++ b/saleor/graphql/product/mutations/products.py@@ -371,7 +371,7 @@ class CollectionRemoveProducts(BaseMutation):class CollectionUpdateMeta(UpdateMetaBaseMutation):class Meta:model = models.Collection- description = "Update public metadata for Collection."+ description = "Update public metadata for collection."permissions = ("product.manage_products",)public = Trueerror_type_class = ProductError@@ -381,7 +381,7 @@ class CollectionUpdateMeta(UpdateMetaBaseMutation):class CollectionClearMeta(ClearMetaBaseMutation):class Meta:model = models.Collection- description = "Clears public metadata for Collection."+ description = "Clears public metadata for collection."permissions = ("product.manage_products",)public = Trueerror_type_class = ProductError@@ -391,7 +391,7 @@ class CollectionClearMeta(ClearMetaBaseMutation):class CollectionUpdatePrivateMeta(UpdateMetaBaseMutation):class Meta:model = models.Collection- description = "Update private metadata for Collection."+ description = "Update private metadata for collection."permissions = ("product.manage_products",)public = Falseerror_type_class = ProductError@@ -401,7 +401,7 @@ class CollectionUpdatePrivateMeta(UpdateMetaBaseMutation):class CollectionClearPrivateMeta(ClearMetaBaseMutation):class Meta:model = models.Collection- description = "Clears private metadata item for Collection."+ description = "Clears private metadata item for collection."permissions = ("product.manage_products",)public = Falseerror_type_class = ProductErrordiff --git a/saleor/graphql/shipping/types.py b/saleor/graphql/shipping/types.pyindex c35adfd5e2..745bea6b65 100644--- a/saleor/graphql/shipping/types.py+++ b/saleor/graphql/shipping/types.py@@ -21,7 +21,7 @@ class ShippingMethod(CountableDjangoObjectType):required=True,),description=(- "Returns translated Shipping Method fields " "for the given language code."+ "Returns translated shipping method fields " "for the given language code."),resolver=resolve_translation,)diff --git a/saleor/graphql/shop/mutations.py b/saleor/graphql/shop/mutations.pyindex a81abed2c0..bf47aa2c41 100644--- a/saleor/graphql/shop/mutations.py+++ b/saleor/graphql/shop/mutations.py@@ -44,7 +44,7 @@ class SiteDomainInput(graphene.InputObjectType):class ShopSettingsUpdate(BaseMutation):- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Arguments:input = ShopSettingsInput(@@ -71,7 +71,7 @@ class ShopSettingsUpdate(BaseMutation):class ShopAddressUpdate(BaseMutation, I18nMixin):- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Arguments:input = AddressInput(description="Fields required to update shop address.")@@ -99,7 +99,7 @@ class ShopAddressUpdate(BaseMutation, I18nMixin):class ShopDomainUpdate(BaseMutation):- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Arguments:input = SiteDomainInput(description="Fields required to update site.")@@ -126,7 +126,7 @@ class ShopDomainUpdate(BaseMutation):class ShopFetchTaxRates(BaseMutation):- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Meta:description = "Fetch tax rates."@@ -147,7 +147,7 @@ class ShopFetchTaxRates(BaseMutation):class HomepageCollectionUpdate(BaseMutation):- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Arguments:collection = graphene.ID(description="Collection displayed on homepage.")@@ -181,7 +181,7 @@ class AuthorizationKeyAdd(BaseMutation):authorization_key = graphene.Field(AuthorizationKey, description="Newly added authorization key.")- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Meta:description = "Adds an authorization key."@@ -222,7 +222,7 @@ class AuthorizationKeyDelete(BaseMutation):authorization_key = graphene.Field(AuthorizationKey, description="Authorization key that was deleted.")- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Arguments:key_type = AuthorizationKeyType(diff --git a/saleor/graphql/translations/mutations.py b/saleor/graphql/translations/mutations.pyindex 17a391443e..de77213886 100644--- a/saleor/graphql/translations/mutations.py+++ b/saleor/graphql/translations/mutations.py@@ -80,7 +80,7 @@ class CollectionTranslate(BaseTranslateMutation):input = TranslationInput(required=True)class Meta:- description = "Creates/Updates translations for Collection."+ description = "Creates/Updates translations for collection."model = product_models.Collection@@ -106,7 +106,7 @@ class AttributeTranslate(BaseTranslateMutation):input = NameTranslationInput(required=True)class Meta:- description = "Creates/Updates translations for Attribute."+ description = "Creates/Updates translations for attribute."model = product_models.Attribute@@ -119,7 +119,7 @@ class AttributeValueTranslate(BaseTranslateMutation):input = NameTranslationInput(required=True)class Meta:- description = "Creates/Updates translations for Attribute Value."+ description = "Creates/Updates translations for attribute value."model = product_models.AttributeValue@@ -151,14 +151,14 @@ class VoucherTranslate(BaseTranslateMutation):class ShippingPriceTranslate(BaseTranslateMutation):class Arguments:- id = graphene.ID(required=True, description="Shipping Method ID.")+ id = graphene.ID(required=True, description="Shipping method ID.")language_code = graphene.Argument(LanguageCodeEnum, required=True, description="Translation language code.")input = NameTranslationInput(required=True)class Meta:- description = "Creates/Updates translations for Shipping Method."+ description = "Creates/Updates translations for shipping method."model = shipping_models.ShippingMethod@@ -200,7 +200,7 @@ class ShopSettingsTranslationInput(graphene.InputObjectType):class ShopSettingsTranslate(BaseMutation):- shop = graphene.Field(Shop, description="Updated Shop.")+ shop = graphene.Field(Shop, description="Updated shop.")class Arguments:language_code = graphene.Argument(diff --git a/saleor/graphql/translations/schema.py b/saleor/graphql/translations/schema.pyindex adac5234b7..37c49a85cb 100644--- a/saleor/graphql/translations/schema.py+++ b/saleor/graphql/translations/schema.py@@ -44,14 +44,14 @@ class TranslatableItemConnection(CountableConnection):class TranslatableKinds(graphene.Enum):ATTRIBUTE = "Attribute"- ATTRIBUTE_VALUE = "Attribute Value"+ ATTRIBUTE_VALUE = "Attribute value"CATEGORY = "Category"COLLECTION = "Collection"- MENU_ITEM = "Menu Item"+ MENU_ITEM = "Menu item"PAGE = "Page"PRODUCT = "Product"SALE = "Sale"- SHIPPING_METHOD = "Shipping Method"+ SHIPPING_METHOD = "Shipping method"VARIANT = "Variant"VOUCHER = "Voucher"