# coding: utf-8

"""
    Accounting service API

    No description provided (generated by Openapi Generator https://github.com/openapitools/openapi-generator)

    The version of the OpenAPI document: v0
    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 ApiErrorCode(str, Enum):
    """
    ApiErrorCode
    """

    """
    allowed enum values
    """
    UNKNOWN_ERROR = 'UNKNOWN_ERROR'
    UNEXPECTED_ERROR = 'UNEXPECTED_ERROR'
    ACCESS_DENIED = 'ACCESS_DENIED'
    INVALID_REQUEST = 'INVALID_REQUEST'
    NOT_UNIQUE_VALUE = 'NOT_UNIQUE_VALUE'
    INVALID_USER_INFORMATION = 'INVALID_USER_INFORMATION'
    ENTITY_NOT_FOUND = 'ENTITY_NOT_FOUND'
    ACCOUNTS_RECEIVABLE_LEDGER_FEATURE_DISABLED = 'ACCOUNTS_RECEIVABLE_LEDGER_FEATURE_DISABLED'
    BOOKING_NOT_FOUND = 'BOOKING_NOT_FOUND'
    ACCOUNTS_RECEIVABLE_LEDGER_NOT_FOUND = 'ACCOUNTS_RECEIVABLE_LEDGER_NOT_FOUND'
    ACCOUNTS_RECEIVABLE_LEDGER_STATUS_ERROR = 'ACCOUNTS_RECEIVABLE_LEDGER_STATUS_ERROR'
    BOOKING_STATUS_ERROR = 'BOOKING_STATUS_ERROR'

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


