# 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 ExportOrderFields(str, Enum):
    """
    ExportOrderFields
    """

    """
    allowed enum values
    """
    ID = 'id'
    SOURCE_ID = 'source_id'
    CREATED_AT = 'created_at'
    UPDATED_AT = 'updated_at'
    STATUS = 'status'
    AMOUNT = 'amount'
    DISCOUNT_AMOUNT = 'discount_amount'
    ITEMS_DISCOUNT_AMOUNT = 'items_discount_amount'
    TOTAL_DISCOUNT_AMOUNT = 'total_discount_amount'
    TOTAL_AMOUNT = 'total_amount'
    CUSTOMER_ID = 'customer_id'
    REFERRER_ID = 'referrer_id'
    METADATA = 'metadata'

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


