Skip to main content

VoucherTranslatableContent

Represents voucher's original translatable fields and related translations.

type VoucherTranslatableContent implements Node {
id: ID!
voucherId: ID!
name: String
translation(languageCode: LanguageCodeEnum!): VoucherTranslation
voucher: Voucher @deprecated
}

Fields

VoucherTranslatableContent.id ● ID! non-null scalar miscellaneous

The ID of the voucher translatable content.

VoucherTranslatableContent.voucherId ● ID! non-null scalar miscellaneous

The ID of the voucher to translate.

Added in Saleor 3.14

VoucherTranslatableContent.name ● String scalar miscellaneous

Voucher name to translate.

VoucherTranslatableContent.translation ● VoucherTranslation object discounts

Returns translated voucher fields for the given language code.

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

A language code to return the translation for voucher.

VoucherTranslatableContent.voucher ● Voucher deprecated object discounts

DEPRECATED

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

Vouchers allow giving discounts to particular customers on categories, collections or specific products. They can be used during checkout by providing valid voucher codes.

Requires MANAGE_DISCOUNTSpermission.

Interfaces

Node interface miscellaneous

An object with an ID

Member Of

VoucherTranslation object

Implemented By

TranslatableItem union