""" Options: Date: 2026-01-24 21:50:09 Version: 8.90 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://taxfiling.staging.pwc.de #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: DekodiereDatenAsync.* #ExcludeTypes: #DefaultImports: datetime,decimal,marshmallow.fields:*,servicestack:*,typing:*,dataclasses:dataclass/field,dataclasses_json:dataclass_json/LetterCase/Undefined/config,enum:Enum/IntEnum #DataClass: #DataClassJson: """ import datetime import decimal from marshmallow.fields import * from servicestack import * from typing import * from dataclasses import dataclass, field from dataclasses_json import dataclass_json, LetterCase, Undefined, config from enum import Enum, IntEnum Object = TypeVar('Object') # @Api(Description="Represents a base class for a file with raw data.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class FileBase: """ Represents a base class for a file with raw data. """ # @ApiMember(Description="The raw data content of the file in bytes.", Name="Content") content: Optional[bytes] = None """ The raw data content of the file in bytes. """ # @Api(Description="Represents a portal certificate that is protected by a password.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class PortalCertificate(FileBase, ISecuredCertificate): """ Represents a portal certificate that is protected by a password. """ # @ApiMember(Description="The file name of the certificate.") # @StringLength(128) name: Optional[str] = None """ The file name of the certificate. """ # @StringLength(255) # @ApiMember(Description="The password to protect the certificate from unauthorized access.") pin: Optional[str] = None """ The password to protect the certificate from unauthorized access. """ # @StringLength(2147483647) # @ApiMember(Description="The description of the certificate.") description: Optional[str] = None """ The description of the certificate. """ # @ApiMember(Description="Tags that can be used to label or identify the certificate.") tags: List[str] = field(default_factory=list) """ Tags that can be used to label or identify the certificate. """ @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class Base64EingabeData(IHasIndex): id: Optional[str] = None base64_eingabe: Optional[str] = None index: int = 0 # @Api(Description="A base service to decrypt data using a specified portal certificate.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DekodiereDatenBase(IReturn[DekodiereDatenResponse], IPost): """ A base service to decrypt data using a specified portal certificate. """ # @ApiMember(Description="The authentification certificate.") zertifikat: Optional[PortalCertificate] = None """ The authentification certificate. """ # @ApiMember(Description="The base-64-encrypted data that is retrieved with the 'ElsterDatenabholung' operation.It is usually located under the element /Elster/DatenTeil/Nutzdatenblock/Nutzdaten/Datenabholung/Abholung/Datenpaket of the ELSTER document.") data: Optional[Base64EingabeData] = None """ The base-64-encrypted data that is retrieved with the 'ElsterDatenabholung' operation.It is usually located under the element /Elster/DatenTeil/Nutzdatenblock/Nutzdaten/Datenabholung/Abholung/Datenpaket of the ELSTER document. """ @staticmethod def response_type(): return DekodiereDatenResponse class IHasIndex: index: int = 0 class ISecuredCertificate: pin: Optional[str] = None # @Api(Description="Represent a base response that encapsulate any ERiC API function return value.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class EricFehlerCodeResponse(ServiceReponseBase): """ Represent a base response that encapsulate any ERiC API function return value. """ # @ApiMember(Description="The status code that the ERiC API function returns.") status_code: Optional[EricFehlerCode] = None """ The status code that the ERiC API function returns. """ # @ApiMember(Description="The status message that the ERiC API function returns.") status_text: Optional[str] = None """ The status message that the ERiC API function returns. """ # @Api(Description="Represents a type that encapsulates a decoded value.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DekodiereDatenResponse(EricFehlerCodeResponse): """ Represents a type that encapsulates a decoded value. """ # @ApiMember(Description="The decoded value.") rueckgabe: Optional[str] = None """ The decoded value. """ # @Route("/DekodiereDatenAsync", "POST") # @Api(Description="An asynchronous service to decrypt a batch of data using a specified portal certificate.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class DekodiereDatenAsync(DekodiereDatenBase, IReturn[DekodiereDatenResponse]): """ An asynchronous service to decrypt a batch of data using a specified portal certificate. """ pass