# coding: utf-8

"""
    BeeL Public API

    Public invoicing API for self-employed professionals in Spain with full VeriFactu support.  **Authentication:** This API uses **API Keys** for authentication. Endpoints are designed for external integrations, automation, and programmatic access.  For browser-based authentication, use the Private API (with Session Cookies).  **Key Features:** - VeriFactu regulatory compliance - Complete invoice management (standard, corrective, simplified) - Customer management - Tax and invoice series configuration - PDF generation - Email sending - Duplicate prevention (idempotency)  **Idempotency:** Creation endpoints (POST) support the `Idempotency-Key` header to prevent duplicates in case of retries.  **Identifiers:** - All resources use UUIDs for technical identification - Invoice numbers are human-readable and searchable 

    The version of the OpenAPI document: 1.0.0
    Contact: it@beel.es
    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 VatPercentage(int, Enum):
    """
    VAT percentage in integer format. Allowed values: 0 (exempt), 4 (super-reduced), 10 (reduced), 21 (standard). Valid values are validated according to the configured tax regime. 
    """

    """
    allowed enum values
    """
    NUMBER_0 = 0
    NUMBER_4 = 4
    NUMBER_10 = 10
    NUMBER_21 = 21

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


