""" Options: Date: 2024-04-28 23:11:25 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: GetDefinitionKeysAsync.* #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 class VatType(str, Enum): U_ST_V_A = 'UStVA' U_ST_D_V = 'UStDV' U_ST_S_V = 'UStSV' U_ST = 'USt' ZM = 'ZM' # @Api(Description="Create a VAT return from a Return Builder definition.\n Use the retrieved values as keys for the dictionary of properties that Return Builder provides.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetDefinitionKeysBase(IReturn[List[DefinitionKey]], IGet): """ Create a VAT return from a Return Builder definition. Use the retrieved values as keys for the dictionary of properties that Return Builder provides. """ # @ApiMember(Description="The year of the assessment (Veranlagungsjahr).") year: int = 0 """ The year of the assessment (Veranlagungsjahr). """ # @ApiMember(Description="The type of VAT return.") vat_type: Optional[VatType] = None """ The type of VAT return. """ @staticmethod def response_type(): return List[DefinitionKey] # @Route("/GetDefinitionKeysAsync", "GET") # @Api(Description="An asynchronous service to retrieve keys for the identification of VAT properties.") @dataclass_json(letter_case=LetterCase.CAMEL, undefined=Undefined.EXCLUDE) @dataclass class GetDefinitionKeysAsync(GetDefinitionKeysBase, IReturn[List[DefinitionKey]]): """ An asynchronous service to retrieve keys for the identification of VAT properties. """ # @ApiMember(Description="The year of the assessment (Veranlagungsjahr).") year: int = 0 """ The year of the assessment (Veranlagungsjahr). """ # @ApiMember(Description="The type of VAT return.") vat_type: Optional[VatType] = None """ The type of VAT return. """