""" Options: Date: 2024-04-28 22:03:31 Version: 8.12 Tip: To override a DTO option, remove "#" prefix before updating BaseUrl: https://taxfiling.pwc.de #GlobalNamespace: #AddServiceStackTypes: True #AddResponseStatus: False #AddImplicitVersion: #AddDescriptionAsComments: True IncludeTypes: BatchCheckElster.* #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 # @Api(Description="Represents a structure that encapsulates a tax declaration.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class TaxData: """ Represents a structure that encapsulates a tax declaration. """ # @ApiMember(Description="The unique identifier of the tax data.", IsRequired=true) id: Optional[str] = None """ The unique identifier of the tax data. """ # @ApiMember(Description="The XML-based tax declaration.", IsRequired=true) content: Optional[str] = None """ The XML-based tax declaration. """ # @Api(Description="A base service to perform basic checks on a batch of tax data.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BatchCheckElsterBase(IReturn[List[ElsterCheckResponse]], IPost): """ A base service to perform basic checks on a batch of tax data. """ # @ApiMember(Description="The batch of ELSTER tax data to check.", Name="Data") data: Optional[List[TaxData]] = None """ The batch of ELSTER tax data to check. """ @staticmethod def response_type(): return List[ElsterCheckResponse] # @Route("/BatchCheckElster", "POST") # @Api(Description="A synchronous service to perform basic checks on a batch of tax data.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class BatchCheckElster(BatchCheckElsterBase, IReturn[List[ElsterCheckResponse]]): """ A synchronous service to perform basic checks on a batch of tax data. """ # @ApiMember(Description="The batch of ELSTER tax data to check.", Name="Data") data: Optional[List[TaxData]] = None """ The batch of ELSTER tax data to check. """