Skip to main content

PromotionRuleTranslatableContent

Represents promotion rule's original translatable fields and related translations.

Added in Saleor 3.17
type PromotionRuleTranslatableContent implements Node {
id: ID!
promotionRuleId: ID!
name: String
description: JSONString
translation(languageCode: LanguageCodeEnum!): PromotionRuleTranslation
}

Fields

PromotionRuleTranslatableContent.id ● ID! non-null scalar miscellaneous

ID of the promotion rule translatable content.

PromotionRuleTranslatableContent.promotionRuleId ● ID! non-null scalar miscellaneous

ID of the promotion rule to translate.

Added in Saleor 3.14

PromotionRuleTranslatableContent.name ● String scalar miscellaneous

Name of the promotion rule.

PromotionRuleTranslatableContent.description ● JSONString scalar miscellaneous

Description of the promotion rule.

Rich text format. For reference see https://editorjs.io/

PromotionRuleTranslatableContent.translation ● PromotionRuleTranslation object discounts

Returns translated promotion rule fields for the given language code.

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

A language code to return the translation for promotion rule.

Interfaces

Node interface miscellaneous

An object with an ID

Member Of

PromotionRuleTranslation object

Implemented By

TranslatableItem union