/* Options: Date: 2026-01-25 20:48:43 SwiftVersion: 6.0 Version: 8.90 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://taxfiling.staging.pwc.de //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True //MakePropertiesOptional: True IncludeTypes: HoleFinanzamtLandNummernAsync.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * An asynchronous service to get the list of tax office numbers for a specified federal state. */ // @Route("/HoleFinanzamtLandNummernAsync", "GET") // @Api(Description="An asynchronous service to get the list of tax office numbers for a specified federal state.") public class HoleFinanzamtLandNummernAsync : HoleFinanzamtLandNummernBase, IReturn { public typealias Return = HoleFinanzamtLandNummernResponse required public init(){ super.init() } required public init(from decoder: Decoder) throws { try super.init(from: decoder) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) } } /** * Represents a type that encapsulates the return values of the ERiC API function, which retrieves all tax office numbers. */ // @Api(Description="Represents a type that encapsulates the return values of the ERiC API function, which retrieves all tax office numbers.") public class HoleFinanzamtLandNummernResponse : EricFehlerCodeResponse { /** * The list of all tax office numbers. */ // @ApiMember(Description="The list of all tax office numbers.") public var rueckgabe:EricHoleFinanzamtLandNummern? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case rueckgabe } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) rueckgabe = try container.decodeIfPresent(EricHoleFinanzamtLandNummern.self, forKey: .rueckgabe) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if rueckgabe != nil { try container.encode(rueckgabe, forKey: .rueckgabe) } } } /** * A base service to get the list of tax office numbers for a specified federal state. */ // @Api(Description="A base service to get the list of tax office numbers for a specified federal state.") public class HoleFinanzamtLandNummernBase : IGet, Codable { required public init(){} } /** * Represents a structure that encapsulates a list of state details of German tax offices. */ // @Api(Description="Represents a structure that encapsulates a list of state details of German tax offices.") public class EricHoleFinanzamtLandNummern : Codable { /** * The list of state details of German tax offices. */ // @ApiMember(Description="The list of state details of German tax offices.", Name="FinanzamtLaender") public var finanzamtLaender:[FinanzamtLand] = [] required public init(){} } /** * Represents the state details of a German tax office. */ // @Api(Description="Represents the state details of a German tax office.") public class FinanzamtLand : Codable { /** * The identification number of the state. */ // @ApiMember(Description="The identification number of the state.", Name="FinanzamtLandNummer") public var finanzamtLandNummer:String? /** * The name of the state. */ // @ApiMember(Description="The name of the state.", Name="Name") public var name:String? required public init(){} } /** * Represent a base response that encapsulate any ERiC API function return value. */ // @Api(Description="Represent a base response that encapsulate any ERiC API function return value.") public class EricFehlerCodeResponse : ServiceReponseBase { /** * The status code that the ERiC API function returns. */ // @ApiMember(Description="The status code that the ERiC API function returns.") public var statusCode:EricFehlerCode? /** * The status message that the ERiC API function returns. */ // @ApiMember(Description="The status message that the ERiC API function returns.") public var statusText:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case statusCode case statusText } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) statusCode = try container.decodeIfPresent(EricFehlerCode.self, forKey: .statusCode) statusText = try container.decodeIfPresent(String.self, forKey: .statusText) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if statusCode != nil { try container.encode(statusCode, forKey: .statusCode) } if statusText != nil { try container.encode(statusText, forKey: .statusText) } } }