Skip to main content

SaleTranslatableContent

Represents sale's original translatable fields and related translations.

DEPRECATED: this type will be removed in Saleor 4.0. Use PromotionTranslatableContent instead.

type SaleTranslatableContent implements Node {
id: ID!
saleId: ID!
name: String!
translation(languageCode: LanguageCodeEnum!): SaleTranslation
sale: Sale @deprecated
}

Fields

SaleTranslatableContent.id ● ID! non-null scalar miscellaneous

The ID of the sale translatable content.

SaleTranslatableContent.saleId ● ID! non-null scalar miscellaneous

The ID of the sale to translate.

Added in Saleor 3.14

SaleTranslatableContent.name ● String! non-null scalar miscellaneous

Name of the sale to translate.

SaleTranslatableContent.translation ● SaleTranslation object discounts

Returns translated sale fields for the given language code.

SaleTranslatableContent.translation.languageCode ● LanguageCodeEnum! non-null enum miscellaneous

A language code to return the translation for sale.

SaleTranslatableContent.sale ● Sale deprecated object discounts

DEPRECATED

This field will be removed in Saleor 4.0. Get model fields from the root level queries.

Sales allow creating discounts for categories, collections or products and are visible to all the customers.

Requires MANAGE_DISCOUNTSpermission.

Interfaces

Node interface miscellaneous

An object with an ID

Member Of

SaleTranslation object

Implemented By

TranslatableItem union