fixes after rebase

This commit is contained in:
Richard Kubíček
2025-02-28 18:00:49 +01:00
parent 84f5cd8642
commit ff7ab2ba9a
5 changed files with 105 additions and 25 deletions

View File

@@ -1,6 +1,32 @@
"""
Data Format Enumeration.
This module provides an enumeration of data formats that can be used in the SuperFaktura API.
Classes:
- DataFormat: Enumeration of data formats.
Usage:
from superfaktura.enumerations.data_format import DataFormat
data_format = DataFormat.JSON
"""
import enum
class DataFormat(enum.Enum):
"""
Data Format Enumeration.
This enumeration represents the different data formats that can be used in the SuperFaktura API.
Values:
- JSON: JSON format
- PDF: PDF format
Usage:
data_format = DataFormat.JSON
"""
JSON = enum.auto()
PDF = enum.auto()

View File

@@ -1,4 +1,43 @@
"""
Language Enumeration.
This module provides an enumeration of languages that can be used in the SuperFaktura API.
Classes:
- Language: Enumeration of languages.
Usage:
from superfaktura.enumerations.language import Language
language = Language.Czech
"""
class Language:
"""
Language Enumeration.
This enumeration represents the different languages that can be used in the SuperFaktura API.
Values:
- Czech: Czech
- German: German
- English: English
- Croatian: Croatian
- Hungarian: Hungarian
- Italian: Italian
- Dutch: Dutch
- Polish: Polish
- Romanian: Romanian
- Russian: Russian
- Slovak: Slovak
- Slovene: Slovene
- Spanish: Spanish
- Ukrainian: Ukrainian
Usage:
language = Language.Czech
"""
Czech = "cze"
German = "deu"
English = "eng"