Source code for shuup.notify.enums

from django.utils.translation import gettext_lazy as _
from enumfields.enums import Enum

UNILINGUAL_TEMPLATE_LANGUAGE = "default"


[docs] class TemplateUse(Enum): NONE = 0 UNILINGUAL = 1 MULTILINGUAL = 2 class Labels: NONE = _("none") UNILINGUAL = _("unilingual") MULTILINGUAL = _("multilingual")
[docs] class ConstantUse(Enum): VARIABLE_ONLY = 1 CONSTANT_ONLY = 2 VARIABLE_OR_CONSTANT = 3 class Labels: VARIABLE_ONLY = _("variable only") CONSTANT_ONLY = _("constant only") VARIABLE_OR_CONSTANT = _("variable or constant")
[docs] class StepNext(Enum): CONTINUE = "continue" STOP = "stop" class Labels: CONTINUE = _("continue to the next step") STOP = _("stop processing")
[docs] class StepConditionOperator(Enum): ALL = "all" ANY = "any" NONE = "none" class Labels: ALL = _("all") ANY = _("any") NONE = _("none")
[docs] class RecipientType(Enum): ADMINS = 1 SPECIFIC_USER = 2 class Labels: ADMINS = _("any shop administrator") SPECIFIC_USER = _("a specific user")
[docs] class Priority(Enum): LOW = 1 NORMAL = 2 HIGH = 3 CRITICAL = 4 class Labels: LOW = _("low") NORMAL = _("normal") HIGH = _("high") CRITICAL = _("critical")