# coding: utf-8

"""
    Voucherify API

    Voucherify promotion engine REST API. Please see https://docs.voucherify.io/docs for more details.

    The version of the OpenAPI document: v2018-08-01
    Contact: support@voucherify.io
    Generated by OpenAPI Generator (https://openapi-generator.tech)

    Do not edit the class manually.
"""  # noqa: E501


from __future__ import annotations
import json
from enum import Enum
from typing_extensions import Self


class ApplicableToEffect(str, Enum):
    """
    ApplicableToEffect
    """

    """
    allowed enum values
    """
    APPLY_TO_EVERY = 'APPLY_TO_EVERY'
    APPLY_TO_CHEAPEST = 'APPLY_TO_CHEAPEST'
    APPLY_FROM_CHEAPEST = 'APPLY_FROM_CHEAPEST'
    APPLY_TO_MOST_EXPENSIVE = 'APPLY_TO_MOST_EXPENSIVE'
    APPLY_FROM_MOST_EXPENSIVE = 'APPLY_FROM_MOST_EXPENSIVE'

    @classmethod
    def from_json(cls, json_str: str) -> Self:
        """Create an instance of ApplicableToEffect from a JSON string"""
        return cls(json.loads(json_str))


