/* Options: Date: 2024-11-23 09:45:04 SwiftVersion: 5.0 Version: 8.12 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://taxfiling.pwc.de //BaseClass: //AddModelExtensions: True //AddServiceStackTypes: True IncludeTypes: SubmitUStDv2024AsEntrepreneurAsync.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * An asynchronous service to submit an VAT long-term extension (Umsatzsteuer-Dauerfristverlängerung) declaration as an Entrepreneur for 2024. */ // @Route("/SubmitUStDv2024AsEntrepreneurAsync", "POST") // @Api(Description="An asynchronous service to submit an VAT long-term extension (Umsatzsteuer-Dauerfristverlängerung) declaration as an Entrepreneur for 2024.") public class SubmitUStDv2024AsEntrepreneurAsync : SubmitUStDv2024AsEntrepreneurBase, IReturn { public typealias Return = BearbeiteVorgangResponse /** * The VAT long-term extension. */ // @ApiMember(Description="The VAT long-term extension.", IsRequired=true, Name="Dauerfristverlaengerung") public var dauerfristverlaengerung:Dauerfristverlaengerung2024 /** * Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data). */ // @ApiMember(Description="Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data).", IsRequired=true, Name="DatenLieferant") public var datenLieferant:DatenLieferant /** * Der natürliche oder jüritische Person, der den Steuerfall bearbeitet und abgibt (The natural or legal person who processes and submits the tax case). */ // @ApiMember(Description="Der natürliche oder jüritische Person, der den Steuerfall bearbeitet und abgibt (The natural or legal person who processes and submits the tax case).", Name="Unternehmer") public var unternehmer:Unternehmer /** * Das Datum der Erstellung (Date of creation). */ // @ApiMember(Description="Das Datum der Erstellung (Date of creation).", IsRequired=true, Name="Erstellungsdatum") public var erstellungsdatum:Date? /** * Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office). */ // @ApiMember(Description="Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office).", IsRequired=true, Name="Bundesfinanzamtsnummer") public var bundesfinanzamtsnummer:String /** * Die Anbindung zum ELSTER Online Portal (EOP). */ // @ApiMember(Description="Die Anbindung zum ELSTER Online Portal (EOP).", Name="EOP") public var eop:EOP /** * Should the PDF file be prepared for a double-sided printout with a margin for punching?. True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page. */ // @ApiMember(Description="Should the PDF file be prepared for a double-sided printout with a margin for punching?. True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page.", Name="DuplexDruck") public var duplexDruck:Bool? /** * Name prefix of the generated transfer protocol file. */ // @ApiMember(Description="Name prefix of the generated transfer protocol file.", IsRequired=true, Name="ProtocolPrefix") public var protocolPrefix:String /** * Footer text to be used on the printout (optional). */ // @ApiMember(Description="Footer text to be used on the printout (optional).", Name="FussText") public var fussText:String /** * The authentification certificate. */ // @ApiMember(Description="The authentification certificate.", IsRequired=true, Name="Zertifikat") public var zertifikat:PortalCertificate /** * Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by '-'. Example: 'K6FG5 - RS32P'. */ // @ApiMember(Description="Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by '-'. Example: 'K6FG5 - RS32P'.", Name="AbrufCode") public var abrufCode:String required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case dauerfristverlaengerung case datenLieferant case unternehmer case erstellungsdatum case bundesfinanzamtsnummer case eop case duplexDruck case protocolPrefix case fussText case zertifikat case abrufCode } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) dauerfristverlaengerung = try container.decodeIfPresent(Dauerfristverlaengerung2024.self, forKey: .dauerfristverlaengerung) datenLieferant = try container.decodeIfPresent(DatenLieferant.self, forKey: .datenLieferant) unternehmer = try container.decodeIfPresent(Unternehmer.self, forKey: .unternehmer) erstellungsdatum = try container.decodeIfPresent(Date.self, forKey: .erstellungsdatum) bundesfinanzamtsnummer = try container.decodeIfPresent(String.self, forKey: .bundesfinanzamtsnummer) eop = try container.decodeIfPresent(EOP.self, forKey: .eop) duplexDruck = try container.decodeIfPresent(Bool.self, forKey: .duplexDruck) protocolPrefix = try container.decodeIfPresent(String.self, forKey: .protocolPrefix) fussText = try container.decodeIfPresent(String.self, forKey: .fussText) zertifikat = try container.decodeIfPresent(PortalCertificate.self, forKey: .zertifikat) abrufCode = try container.decodeIfPresent(String.self, forKey: .abrufCode) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if dauerfristverlaengerung != nil { try container.encode(dauerfristverlaengerung, forKey: .dauerfristverlaengerung) } if datenLieferant != nil { try container.encode(datenLieferant, forKey: .datenLieferant) } if unternehmer != nil { try container.encode(unternehmer, forKey: .unternehmer) } if erstellungsdatum != nil { try container.encode(erstellungsdatum, forKey: .erstellungsdatum) } if bundesfinanzamtsnummer != nil { try container.encode(bundesfinanzamtsnummer, forKey: .bundesfinanzamtsnummer) } if eop != nil { try container.encode(eop, forKey: .eop) } if duplexDruck != nil { try container.encode(duplexDruck, forKey: .duplexDruck) } if protocolPrefix != nil { try container.encode(protocolPrefix, forKey: .protocolPrefix) } if fussText != nil { try container.encode(fussText, forKey: .fussText) } if zertifikat != nil { try container.encode(zertifikat, forKey: .zertifikat) } if abrufCode != nil { try container.encode(abrufCode, forKey: .abrufCode) } } } /** * A type that encapsulates the return values from the ERiC API function that processes tax data. */ // @Api(Description="A type that encapsulates the return values from the ERiC API function that processes tax data.") public class BearbeiteVorgangResponse : EricFehlerCodeResponse { /** * The return value of the process. */ // @ApiMember(Description="The return value of the process.") public var rueckgabe:EricBearbeiteVorgang /** * The server response of the process. */ // @ApiMember(Description="The server response of the process.") public var serverantwort:Elster /** * If available, the PDF-based files to represent generated transfer prototocols. */ // @ApiMember(Description="If available, the PDF-based files to represent generated transfer prototocols.") public var transferProtocols:[BinaryFile] = [] /** * The status code that the ERiC API function returns. */ // @ApiMember(Description="The status code that the ERiC API function returns.", Name="StatusCode") public var statusCode:EricFehlerCode /** * The status message that the ERiC API function returns. */ // @ApiMember(Description="The status message that the ERiC API function returns.", Name="StatusText") public var statusText:String /** * The unique identifier of the response. */ // @ApiMember(Description="The unique identifier of the response.", Name="Id") public var id:String /** * The position of the response element in an indexed collection. */ // @ApiMember(Description="The position of the response element in an indexed collection.", Name="Index") public var index:Int /** * Metadata that contains structured error information on the service response. */ // @ApiMember(Description="Metadata that contains structured error information on the service response.", Name="ResponseStatus") public var responseStatus:ResponseStatus required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case rueckgabe case serverantwort case transferProtocols case statusCode case statusText case id case index case responseStatus } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) rueckgabe = try container.decodeIfPresent(EricBearbeiteVorgang.self, forKey: .rueckgabe) serverantwort = try container.decodeIfPresent(Elster.self, forKey: .serverantwort) transferProtocols = try container.decodeIfPresent([BinaryFile].self, forKey: .transferProtocols) ?? [] statusCode = try container.decodeIfPresent(EricFehlerCode.self, forKey: .statusCode) statusText = try container.decodeIfPresent(String.self, forKey: .statusText) id = try container.decodeIfPresent(String.self, forKey: .id) index = try container.decodeIfPresent(Int.self, forKey: .index) responseStatus = try container.decodeIfPresent(ResponseStatus.self, forKey: .responseStatus) } 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) } if serverantwort != nil { try container.encode(serverantwort, forKey: .serverantwort) } if transferProtocols.count > 0 { try container.encode(transferProtocols, forKey: .transferProtocols) } if statusCode != nil { try container.encode(statusCode, forKey: .statusCode) } if statusText != nil { try container.encode(statusText, forKey: .statusText) } if id != nil { try container.encode(id, forKey: .id) } if index != nil { try container.encode(index, forKey: .index) } if responseStatus != nil { try container.encode(responseStatus, forKey: .responseStatus) } } } public protocol IDruckRequest { var duplexDruck:Bool? { get set } var protocolPrefix:String { get set } var fussText:String { get set } } /** * Represents a portal certificate that is protected by a password. */ // @Api(Description="Represents a portal certificate that is protected by a password.") public class PortalCertificate : FileBase, ISecuredCertificate, IHasIndex { /** * The unique identifier of the certificate. */ // @ApiMember(Description="The unique identifier of the certificate.") public var id:String /** * The position of the certificate element in an indexed collection of certificates. */ // @ApiMember(Description="The position of the certificate element in an indexed collection of certificates.") public var index:Int /** * The password to protect the certificate from unauthorized access. */ // @StringLength(255) // @ApiMember(Description="The password to protect the certificate from unauthorized access.") public var pin:String /** * The description of the certificate. */ // @StringLength(Int32.max) // @ApiMember(Description="The description of the certificate.") public var Description:String /** * Tags that can be used to label or identify the certificate. */ // @ApiMember(Description="Tags that can be used to label or identify the certificate.") public var tags:[String] = [] /** * Gets or sets the file name of the certificate. */ // @ApiMember(Description="Gets or sets the file name of the certificate.") public var name:String /** * The raw data content of the file. */ // @ApiMember(Description="The raw data content of the file.", Name="Content") public var content:[UInt8] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case id case index case pin case Description case tags case name case content } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) id = try container.decodeIfPresent(String.self, forKey: .id) index = try container.decodeIfPresent(Int.self, forKey: .index) pin = try container.decodeIfPresent(String.self, forKey: .pin) Description = try container.decodeIfPresent(String.self, forKey: .Description) tags = try container.decodeIfPresent([String].self, forKey: .tags) ?? [] name = try container.decodeIfPresent(String.self, forKey: .name) content = try container.decodeIfPresent([UInt8].self, forKey: .content) ?? [] } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if id != nil { try container.encode(id, forKey: .id) } if index != nil { try container.encode(index, forKey: .index) } if pin != nil { try container.encode(pin, forKey: .pin) } if Description != nil { try container.encode(Description, forKey: .Description) } if tags.count > 0 { try container.encode(tags, forKey: .tags) } if name != nil { try container.encode(name, forKey: .name) } if content.count > 0 { try container.encode(content, forKey: .content) } } } public protocol IVeschlueselungsRequest { var zertifikat:PortalCertificate { get set } } /** * Beim DatenLieferanten handelt es sich um diejenige natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird,um die Daten zu übersenden (auf den Sendeknopf drückt - NICHT jedoch ein etwaiger Erfüllungsgehilfe). */ // @Api(Description="Beim DatenLieferanten handelt es sich um diejenige natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird,um die Daten zu übersenden (auf den Sendeknopf drückt - NICHT jedoch ein etwaiger Erfüllungsgehilfe).") public class DatenLieferant : Codable { /** * Der Name des Datenlieferants. */ // @ApiMember(Description="Der Name des Datenlieferants.", IsRequired=true, Name="Name") public var name:String /** * Der Straßenname des Datenlieferants. */ // @ApiMember(Description="Der Straßenname des Datenlieferants.", IsRequired=true, Name="Strasse") public var strasse:String /** * Die Postleitzahl des Datenlieferants. */ // @ApiMember(Description="Die Postleitzahl des Datenlieferants.", IsRequired=true, Name="PLZ") public var plz:String /** * Der Ort des Datenlieferants. */ // @ApiMember(Description="Der Ort des Datenlieferants.", IsRequired=true, Name="Ort") public var ort:String /** * Die Telefonnummer (optional) des Datenlieferants. */ // @ApiMember(Description="Die Telefonnummer (optional) des Datenlieferants.", Name="Telefon") public var telefon:String /** * Die Email-Adresse (optional) des Datenlieferant. */ // @ApiMember(Description="Die Email-Adresse (optional) des Datenlieferant.", Name="Email") public var email:String required public init(){} } /** * Stellt einen Unternehmer dar. */ // @Api(Description="Stellt einen Unternehmer dar.") public class Unternehmer : Codable { /** * Der Bezeichnung (optional) des Unternehmers (normalerweise der Name des Unternehmers Unternehmen). */ // @ApiMember(Description="Der Bezeichnung (optional) des Unternehmers (normalerweise der Name des Unternehmers Unternehmen).", Name="Bezeichnung") public var bezeichnung:String /** * Der Name (optional) des Unternehmers. */ // @ApiMember(Description="Der Name (optional) des Unternehmers.", Name="Name") public var name:String /** * Der Vorname (optional) des Unternehmers. */ // @ApiMember(Description="Der Vorname (optional) des Unternehmers.", Name="Vorname") public var vorname:String /** * Der Namenvorsatz (optional) des Unternehmers. */ // @ApiMember(Description="Der Namenvorsatz (optional) des Unternehmers.", Name="Namensvorsatz") public var namensvorsatz:String /** * Der Namenzusatz (optional) des Unternehmers. */ // @ApiMember(Description="Der Namenzusatz (optional) des Unternehmers.", Name="Namenszusatz") public var namenszusatz:String /** * Der Straßenname (optional) des Unternehmers. */ // @ApiMember(Description="Der Straßenname (optional) des Unternehmers.", Name="Str") public var str:String /** * Die Hausnummer (optional) des Unternehmers. */ // @ApiMember(Description="Die Hausnummer (optional) des Unternehmers.", Name="Hausnummer") public var hausnummer:String /** * Der Hausnummernzusatz (optional) des Unternehmers. */ // @ApiMember(Description="Der Hausnummernzusatz (optional) des Unternehmers.", Name="HNrZusatz") public var hNrZusatz:String /** * Der Anschriftenzusatz (optional) des Unternehmers. */ // @ApiMember(Description="Der Anschriftenzusatz (optional) des Unternehmers.", Name="AnschriftenZusatz") public var anschriftenZusatz:String /** * Der Ort (optional) des Unternehmers. */ // @ApiMember(Description="Der Ort (optional) des Unternehmers.", Name="Ort") public var ort:String /** * Die Postleitzahl (optional) des Unternehmers. */ // @ApiMember(Description="Die Postleitzahl (optional) des Unternehmers.", Name="PLZ") public var plz:String /** * Die Auslandspostleitzahl (optional) des Unternehmers. */ // @ApiMember(Description="Die Auslandspostleitzahl (optional) des Unternehmers.", Name="AuslandsPLZ") public var auslandsPLZ:String /** * Der Ländername (falls Anschrift im Ausland) des Unternehmers - optional. Der Ländername des Unternehmers kann mit 1-20 alphanumerischen Zeichen geliefert werden. */ // @ApiMember(Description="Der Ländername (falls Anschrift im Ausland) des Unternehmers - optional. \nDer Ländername des Unternehmers kann mit 1-20 alphanumerischen Zeichen geliefert werden.", Name="Land") public var land:String /** * Der Ort des Postfaches (optional) des Unternehmers. */ // @ApiMember(Description="Der Ort des Postfaches (optional) des Unternehmers.", Name="PostfachOrt") public var postfachOrt:String /** * Das Postfach (optional) des Unternehmers. */ // @ApiMember(Description="Das Postfach (optional) des Unternehmers.", Name="Postfach") public var postfach:String /** * Die Postleitzahl (optional) des Unternehmers. */ // @ApiMember(Description="Die Postleitzahl (optional) des Unternehmers.", Name="PostfachPLZ") public var postfachPLZ:String /** * Die Großkundenpostleitzahl (optional) des Unternehmers. */ // @ApiMember(Description="Die Großkundenpostleitzahl (optional) des Unternehmers.", Name="GKPLZ") public var gkplz:String /** * Die Telefonnummer (optional) des Unternehmers. */ // @ApiMember(Description="Die Telefonnummer (optional) des Unternehmers.", Name="Telefon") public var telefon:String /** * Die Emailadresse (optional) des Unternehmers. */ // @ApiMember(Description="Die Emailadresse (optional) des Unternehmers.", Name="Email") public var email:String required public init(){} } /** * Stellt eine Anbindung zum ELSTER Online Portal (EOP) dar. */ // @Api(Description="Stellt eine Anbindung zum ELSTER Online Portal (EOP) dar.") public class EOP : Codable { public var transferausgabe:String required public init(){} } /** * Antrag auf Dauerfristverlängerung der Umsatzsetueranmeldung für 2024 (Application for a long-term extension of the VAT registration period for 2024). */ // @Api(Description="Antrag auf Dauerfristverlängerung der Umsatzsetueranmeldung für 2024 (Application for a long-term extension of the VAT registration period for 2024).") public class Dauerfristverlaengerung2024 : Codable { /** * Das Jahr der Veranlagung. */ // @ApiMember(Description="Das Jahr der Veranlagung.", IsRequired=true, Name="Jahr") public var jahr:Int /** * Steuernummer. */ // @ApiMember(Description="Steuernummer.", IsRequired=true, Name="Steuernummer") public var steuernummer:String /** * Fünfstellige HerstellerID (Pflichtangabe wenn der zugehörige Kontext angegeben wird). */ // @ApiMember(Description="Fünfstellige HerstellerID (Pflichtangabe wenn der zugehörige Kontext angegeben wird).", IsRequired=true, Name="Kz09") public var kz09:Kz09 /** * Über die Angaben in der Steueranmeldung hinaus sind weitere oder abweichende Angaben oder Sachverhalte zu berücksichtigen. */ // @ApiMember(Description="Über die Angaben in der Steueranmeldung hinaus sind weitere oder abweichende Angaben oder Sachverhalte zu berücksichtigen.", Name="Kz23") public var kz23:Ganzzahl1EN /** * Ergänzende Angaben zur Steueranmeldung */ // @ApiMember(Description="Ergänzende Angaben zur Steueranmeldung", Name="Kz23_Begruendung") public var kz23_Begruendung:String required public init(){} } /** * Submits the VAT long-term extension (Umsatzsteuer-Dauerfristverlängerung) as an Entrepreneur for 2024. */ // @Api(Description="Submits the VAT long-term extension (Umsatzsteuer-Dauerfristverlängerung) as an Entrepreneur for 2024.") public class SubmitUStDv2024AsEntrepreneurBase : SubmitUmsatzsteueranmeldung2024AsEntrepreneurBase { /** * The VAT long-term extension. */ // @ApiMember(Description="The VAT long-term extension.", IsRequired=true, Name="Dauerfristverlaengerung") public var dauerfristverlaengerung:Dauerfristverlaengerung2024 /** * Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data). */ // @ApiMember(Description="Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data).", IsRequired=true, Name="DatenLieferant") public var datenLieferant:DatenLieferant /** * Der natürliche oder jüritische Person, der den Steuerfall bearbeitet und abgibt (The natural or legal person who processes and submits the tax case). */ // @ApiMember(Description="Der natürliche oder jüritische Person, der den Steuerfall bearbeitet und abgibt (The natural or legal person who processes and submits the tax case).", Name="Unternehmer") public var unternehmer:Unternehmer /** * Das Datum der Erstellung (Date of creation). */ // @ApiMember(Description="Das Datum der Erstellung (Date of creation).", IsRequired=true, Name="Erstellungsdatum") public var erstellungsdatum:Date? /** * Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office). */ // @ApiMember(Description="Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office).", IsRequired=true, Name="Bundesfinanzamtsnummer") public var bundesfinanzamtsnummer:String /** * Die Anbindung zum ELSTER Online Portal (EOP). */ // @ApiMember(Description="Die Anbindung zum ELSTER Online Portal (EOP).", Name="EOP") public var eop:EOP /** * Should the PDF file be prepared for a double-sided printout with a margin for punching?. True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page. */ // @ApiMember(Description="Should the PDF file be prepared for a double-sided printout with a margin for punching?. True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page.", Name="DuplexDruck") public var duplexDruck:Bool? /** * Name prefix of the generated transfer protocol file. */ // @ApiMember(Description="Name prefix of the generated transfer protocol file.", IsRequired=true, Name="ProtocolPrefix") public var protocolPrefix:String /** * Footer text to be used on the printout (optional). */ // @ApiMember(Description="Footer text to be used on the printout (optional).", Name="FussText") public var fussText:String /** * The authentification certificate. */ // @ApiMember(Description="The authentification certificate.", IsRequired=true, Name="Zertifikat") public var zertifikat:PortalCertificate /** * Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by '-'. Example: 'K6FG5 - RS32P'. */ // @ApiMember(Description="Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by '-'. Example: 'K6FG5 - RS32P'.", Name="AbrufCode") public var abrufCode:String required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case dauerfristverlaengerung case datenLieferant case unternehmer case erstellungsdatum case bundesfinanzamtsnummer case eop case duplexDruck case protocolPrefix case fussText case zertifikat case abrufCode } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) dauerfristverlaengerung = try container.decodeIfPresent(Dauerfristverlaengerung2024.self, forKey: .dauerfristverlaengerung) datenLieferant = try container.decodeIfPresent(DatenLieferant.self, forKey: .datenLieferant) unternehmer = try container.decodeIfPresent(Unternehmer.self, forKey: .unternehmer) erstellungsdatum = try container.decodeIfPresent(Date.self, forKey: .erstellungsdatum) bundesfinanzamtsnummer = try container.decodeIfPresent(String.self, forKey: .bundesfinanzamtsnummer) eop = try container.decodeIfPresent(EOP.self, forKey: .eop) duplexDruck = try container.decodeIfPresent(Bool.self, forKey: .duplexDruck) protocolPrefix = try container.decodeIfPresent(String.self, forKey: .protocolPrefix) fussText = try container.decodeIfPresent(String.self, forKey: .fussText) zertifikat = try container.decodeIfPresent(PortalCertificate.self, forKey: .zertifikat) abrufCode = try container.decodeIfPresent(String.self, forKey: .abrufCode) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if dauerfristverlaengerung != nil { try container.encode(dauerfristverlaengerung, forKey: .dauerfristverlaengerung) } if datenLieferant != nil { try container.encode(datenLieferant, forKey: .datenLieferant) } if unternehmer != nil { try container.encode(unternehmer, forKey: .unternehmer) } if erstellungsdatum != nil { try container.encode(erstellungsdatum, forKey: .erstellungsdatum) } if bundesfinanzamtsnummer != nil { try container.encode(bundesfinanzamtsnummer, forKey: .bundesfinanzamtsnummer) } if eop != nil { try container.encode(eop, forKey: .eop) } if duplexDruck != nil { try container.encode(duplexDruck, forKey: .duplexDruck) } if protocolPrefix != nil { try container.encode(protocolPrefix, forKey: .protocolPrefix) } if fussText != nil { try container.encode(fussText, forKey: .fussText) } if zertifikat != nil { try container.encode(zertifikat, forKey: .zertifikat) } if abrufCode != nil { try container.encode(abrufCode, forKey: .abrufCode) } } } /** * Auflistung aller gültigen Datenarten. */ public enum Datenart : String, Codable { case Anlage34a case AnpassungVorauszahlung case AntragUStVerguetung4a case AbrufcodeAntrag case AenderungAdresse case AbrufcodeStorno case AbrufvollmachtAnlage case AbrufvollmachtUpdate case AenderungBankverbindung case AntraegeRechteLoeschen case AntraegeUndRechte case Aufzeichnung146a case BetPG case Bilanz case Belegnachreichung case BSBMitteilung case BZSt2 case C19Mitteilung case DUeAbmelden case DUeAnmelden case DUeUmmelden case Einspruch case EinspruchNachtrag case EinspruchRuecknahme case ELeVAntragELStAM case ELeVErmaessigung case ELeVGetrenntlebend case ELeVSteuerklassenwechsel case ELeVWiederaufnahmeEhe case EPAntwort case EPBescheid case EPMitteilung case EPKurzmitteilung case ElsterErklaerungDaten case ElsterKMVDaten case ElsterLohn2Daten case ElsterLohnDaten case ElsterVaStDaten case ElsterDIVADaten case ElsterDIVDaten case ElsterEPBescheidDaten case ElsterEPMitteilungDaten case EPStBescheidAbholung case EPStMitteilungAbholung case Erbschaftsteuer case ESt case EStbeschraenkt case EUER case EUn case FEIN case ForschungZulAntrag case KStAntragOptionPersG case FLHMitteilung case FreistellungKapitalertraegeBV case Fristverlaengerung case FsEVerein case Gewerbemeldung case GDBMitteilung case Gewinnermittlung13aEStG case GewSt case GewStZ case GrundsteuerBW case GrundsteuerBY case GrundsteuerHE case GrundsteuerHH case GrundsteuerNI case Grundsteuerwert case InvStG56Abs5 case InvStG51Feststellung case KapEStA case KapEStInvStG case KapG case KapGAus case KKVMitteilung case Kontoabfrage case Kontoinformation case KSt case KStZ case KTTAnmeldungHH case KTTAnzeigeHH case Lohnersatzleistung case LohnersatzMitteilung case LStA case LStB case LStHVVMAnlage case LStHVVMUpdate case OGHMitteilung case VermoegenswirksameLeistung case VMWiderruf case VollmachtDetails case VNoVMVRegistrierung case VNoVMVUpdate case VNoVMVLoeschung case VollfAAnlage case VollfAUpdate case VMoVMVStBAnlage case VMoVMVStBUpdate case VMoVMVFreischaltung case VAGMitteilung case DIVADatenBZSt case DivaEinwilligungAnlageBRM case DivaEinwilligungFreisch case DivaEinwilligungUpdateBRM case DivaWiderrufBRM case DivaErgebnisliste case LStHVDivaAdresseBRM case VMErgebnisListeVNSicht case PersG case PostfachAnfrage case PostfachStatus case ProtokollAnforderung case Registrierung case Schenkungsteuer case SonstigeNachrichten case SpezRechtAntrag case SpezRechtFreischaltung case SpezRechtListe case SpezRechtStorno case SpezRechtTeilnahme case StAb50a case Statusabfrage case UnentgeltlicheDepotuebertragung case UENSTAnmeldungBE case UENSTAnzeigeBE case USt case UStVA case UStDV case UStSV case VGNAnmeldungHB case VGNAnmeldungBE case VGNAnmeldungHH case VGNAnzeigeHH case WTBAnmeldungHB case ZMDO case ElsterVollmachtDaten case MitteilungAbholung } /** * Enumeration of ERiC API error codes. */ public enum EricFehlerCode : Int, Codable { case ERIC_OK = 0 case ERIC_GLOBAL_UNKNOWN = 610001001 case ERIC_GLOBAL_PRUEF_FEHLER = 610001002 case ERIC_GLOBAL_HINWEISE = 610001003 case ERIC_GLOBAL_FEHLERMELDUNG_NICHT_VORHANDEN = 610001007 case ERIC_GLOBAL_KEINE_DATEN_VORHANDEN = 610001008 case ERIC_GLOBAL_NICHT_GENUEGEND_ARBEITSSPEICHER = 610001013 case ERIC_GLOBAL_DATEI_NICHT_GEFUNDEN = 610001014 case ERIC_GLOBAL_HERSTELLER_ID_NICHT_ERLAUBT = 610001016 case ERIC_GLOBAL_ILLEGAL_STATE = 610001017 case ERIC_GLOBAL_FUNKTION_NICHT_ERLAUBT = 610001018 case ERIC_GLOBAL_ECHTFALL_NICHT_ERLAUBT = 610001019 case ERIC_GLOBAL_NO_VERSAND_IN_BETA_VERSION = 610001020 case ERIC_GLOBAL_TESTMERKER_UNGUELTIG = 610001025 case ERIC_GLOBAL_DATENSATZ_ZU_GROSS = 610001026 case ERIC_GLOBAL_VERSCHLUESSELUNGS_PARAMETER_NICHT_ERLAUBT = 610001027 case ERIC_GLOBAL_NUR_PORTALZERTIFIKAT_ERLAUBT = 610001028 case ERIC_GLOBAL_ABRUFCODE_NICHT_ERLAUBT = 610001029 case ERIC_GLOBAL_ERROR_XML_CREATE = 610001030 case ERIC_GLOBAL_TEXTPUFFERGROESSE_FIX = 610001031 case ERIC_GLOBAL_INTERNER_FEHLER = 610001032 case ERIC_GLOBAL_ARITHMETIKFEHLER = 610001033 case ERIC_GLOBAL_STEUERNUMMER_UNGUELTIG = 610001034 case ERIC_GLOBAL_STEUERNUMMER_FALSCHE_LAENGE = 610001035 case ERIC_GLOBAL_STEUERNUMMER_NICHT_NUMERISCH = 610001036 case ERIC_GLOBAL_LANDESNUMMER_UNBEKANNT = 610001037 case ERIC_GLOBAL_BUFANR_UNBEKANNT = 610001038 case ERIC_GLOBAL_LANDESNUMMER_BUFANR = 610001039 case ERIC_GLOBAL_PUFFER_ZUGRIFFSKONFLIKT = 610001040 case ERIC_GLOBAL_PUFFER_UEBERLAUF = 610001041 case ERIC_GLOBAL_DATENARTVERSION_UNBEKANNT = 610001042 case ERIC_GLOBAL_DATENARTVERSION_XML_INKONSISTENT = 610001044 case ERIC_GLOBAL_COMMONDATA_NICHT_VERFUEGBAR = 610001045 case ERIC_GLOBAL_LOG_EXCEPTION = 610001046 case ERIC_GLOBAL_TRANSPORTSCHLUESSEL_NICHT_ERLAUBT = 610001047 case ERIC_GLOBAL_OEFFENTLICHER_SCHLUESSEL_UNGUELTIG = 610001048 case ERIC_GLOBAL_TRANSPORTSCHLUESSEL_TYP_FALSCH = 610001049 case ERIC_GLOBAL_PUFFER_UNGLEICHER_INSTANZ = 610001050 case ERIC_GLOBAL_VORSATZ_UNGUELTIG = 610001051 case ERIC_GLOBAL_DATEIZUGRIFF_VERWEIGERT = 610001053 case ERIC_GLOBAL_UNGUELTIGE_INSTANZ = 610001080 case ERIC_GLOBAL_NICHT_INITIALISIERT = 610001081 case ERIC_GLOBAL_MEHRFACHE_INITIALISIERUNG = 610001082 case ERIC_GLOBAL_FEHLER_INITIALISIERUNG = 610001083 case ERIC_GLOBAL_UNKNOWN_PARAMETER_ERROR = 610001102 case ERIC_GLOBAL_CHECK_CORRUPTED_NDS = 610001108 case ERIC_GLOBAL_VERSCHLUESSELUNGS_PARAMETER_NICHT_ANGEGEBEN = 610001206 case ERIC_GLOBAL_SEND_FLAG_MEHR_ALS_EINES = 610001209 case ERIC_GLOBAL_UNGUELTIGE_FLAG_KOMBINATION = 610001218 case ERIC_GLOBAL_ERSTE_SEITE_DRUCK_NICHT_UNTERSTUETZT = 610001220 case ERIC_GLOBAL_UNGUELTIGER_PARAMETER = 610001222 case ERIC_GLOBAL_DRUCK_FUER_VERFAHREN_NICHT_ERLAUBT = 610001224 case ERIC_GLOBAL_VERSAND_ART_NICHT_UNTERSTUETZT = 610001225 case ERIC_GLOBAL_UNGUELTIGE_PARAMETER_VERSION = 610001226 case ERIC_GLOBAL_TRANSFERHANDLE = 610001227 case ERIC_GLOBAL_PLUGININITIALISIERUNG = 610001228 case ERIC_GLOBAL_INKOMPATIBLE_VERSIONEN = 610001229 case ERIC_GLOBAL_VERSCHLUESSELUNGSVERFAHREN_NICHT_UNTERSTUETZT = 610001230 case ERIC_GLOBAL_MEHRFACHAUFRUFE_NICHT_UNTERSTUETZT = 610001231 case ERIC_GLOBAL_UTI_COUNTRY_NOT_SUPPORTED = 610001404 case ERIC_GLOBAL_IBAN_FORMALER_FEHLER = 610001501 case ERIC_GLOBAL_IBAN_LAENDERCODE_FEHLER = 610001502 case ERIC_GLOBAL_IBAN_LANDESFORMAT_FEHLER = 610001503 case ERIC_GLOBAL_IBAN_PRUEFZIFFER_FEHLER = 610001504 case ERIC_GLOBAL_BIC_FORMALER_FEHLER = 610001510 case ERIC_GLOBAL_BIC_LAENDERCODE_FEHLER = 610001511 case ERIC_GLOBAL_ZULASSUNGSNUMMER_ZU_LANG = 610001519 case ERIC_GLOBAL_IDNUMMER_UNGUELTIG = 610001525 case ERIC_GLOBAL_NULL_PARAMETER = 610001526 case ERIC_GLOBAL_EWAZ_UNGUELTIG = 610001527 case ERIC_GLOBAL_EWAZ_LANDESKUERZEL_UNBEKANNT = 610001528 case ERIC_GLOBAL_UPDATE_NECESSARY = 610001851 case ERIC_GLOBAL_EINSTELLUNG_NAME_UNGUELTIG = 610001860 case ERIC_GLOBAL_EINSTELLUNG_WERT_UNGUELTIG = 610001861 case ERIC_GLOBAL_ERR_DEKODIEREN = 610001862 case ERIC_GLOBAL_FUNKTION_NICHT_UNTERSTUETZT = 610001863 case ERIC_GLOBAL_NUTZDATENTICKETS_NICHT_EINDEUTIG = 610001865 case ERIC_GLOBAL_NUTZDATENHEADERVERSIONEN_UNEINHEITLICH = 610001866 case ERIC_GLOBAL_BUNDESLAENDER_UNEINHEITLICH = 610001867 case ERIC_GLOBAL_ZEITRAEUME_UNEINHEITLICH = 610001868 case ERIC_GLOBAL_NUTZDATENHEADER_EMPFAENGER_NICHT_KORREKT = 610001869 case ERIC_TRANSFER_COM_ERROR = 610101200 case ERIC_TRANSFER_VORGANG_NICHT_UNTERSTUETZT = 610101201 case ERIC_TRANSFER_ERR_XML_THEADER = 610101210 case ERIC_TRANSFER_ERR_PARAM = 610101251 case ERIC_TRANSFER_ERR_DATENTEILENDNOTFOUND = 610101253 case ERIC_TRANSFER_ERR_BEGINDATENLIEFERANT = 610101255 case ERIC_TRANSFER_ERR_ENDDATENLIEFERANT = 610101256 case ERIC_TRANSFER_ERR_BEGINTRANSPORTSCHLUESSEL = 610101257 case ERIC_TRANSFER_ERR_ENDTRANSPORTSCHLUESSEL = 610101258 case ERIC_TRANSFER_ERR_BEGINDATENGROESSE = 610101259 case ERIC_TRANSFER_ERR_ENDDATENGROESSE = 610101260 case ERIC_TRANSFER_ERR_SEND = 610101271 case ERIC_TRANSFER_ERR_NOTENCRYPTED = 610101274 case ERIC_TRANSFER_ERR_PROXYCONNECT = 610101276 case ERIC_TRANSFER_ERR_CONNECTSERVER = 610101278 case ERIC_TRANSFER_ERR_NORESPONSE = 610101279 case ERIC_TRANSFER_ERR_PROXYAUTH = 610101280 case ERIC_TRANSFER_ERR_SEND_INIT = 610101282 case ERIC_TRANSFER_ERR_TIMEOUT = 610101283 case ERIC_TRANSFER_ERR_PROXYPORT_INVALID = 610101284 case ERIC_TRANSFER_ERR_OTHER = 610101291 case ERIC_TRANSFER_ERR_XML_NHEADER = 610101292 case ERIC_TRANSFER_ERR_XML_ENCODING = 610101293 case ERIC_TRANSFER_ERR_ENDSIGUSER = 610101294 case ERIC_TRANSFER_ERR_XMLTAG_NICHT_GEFUNDEN = 610101295 case ERIC_TRANSFER_ERR_DATENTEILFEHLER = 610101297 case ERIC_TRANSFER_EID_ZERTIFIKATFEHLER = 610101500 case ERIC_TRANSFER_EID_KEINKONTO = 610101510 case ERIC_TRANSFER_EID_IDNRNICHTEINDEUTIG = 610101511 case ERIC_TRANSFER_EID_SERVERFEHLER = 610101512 case ERIC_TRANSFER_EID_KEINCLIENT = 610101520 case ERIC_TRANSFER_EID_CLIENTFEHLER = 610101521 case ERIC_TRANSFER_EID_FEHLENDEFELDER = 610101522 case ERIC_TRANSFER_EID_IDENTIFIKATIONABGEBROCHEN = 610101523 case ERIC_TRANSFER_EID_NPABLOCKIERT = 610101524 case ERIC_CRYPT_ERROR_CREATE_KEY = 610201016 case ERIC_CRYPT_E_INVALID_HANDLE = 610201101 case ERIC_CRYPT_E_MAX_SESSION = 610201102 case ERIC_CRYPT_E_BUSY = 610201103 case ERIC_CRYPT_E_OUT_OF_MEM = 610201104 case ERIC_CRYPT_E_PSE_PATH = 610201105 case ERIC_CRYPT_E_PIN_WRONG = 610201106 case ERIC_CRYPT_E_PIN_LOCKED = 610201107 case ERIC_CRYPT_E_P7_READ = 610201108 case ERIC_CRYPT_E_P7_DECODE = 610201109 case ERIC_CRYPT_E_P7_RECIPIENT = 610201110 case ERIC_CRYPT_E_P12_READ = 610201111 case ERIC_CRYPT_E_P12_DECODE = 610201112 case ERIC_CRYPT_E_P12_SIG_KEY = 610201113 case ERIC_CRYPT_E_P12_ENC_KEY = 610201114 case ERIC_CRYPT_E_P11_SIG_KEY = 610201115 case ERIC_CRYPT_E_P11_ENC_KEY = 610201116 case ERIC_CRYPT_E_XML_PARSE = 610201117 case ERIC_CRYPT_E_XML_SIG_ADD = 610201118 case ERIC_CRYPT_E_XML_SIG_TAG = 610201119 case ERIC_CRYPT_E_XML_SIG_SIGN = 610201120 case ERIC_CRYPT_E_ENCODE_UNKNOWN = 610201121 case ERIC_CRYPT_E_ENCODE_ERROR = 610201122 case ERIC_CRYPT_E_XML_INIT = 610201123 case ERIC_CRYPT_E_ENCRYPT = 610201124 case ERIC_CRYPT_E_DECRYPT = 610201125 case ERIC_CRYPT_E_P11_SLOT_EMPTY = 610201126 case ERIC_CRYPT_E_NO_SIG_ENC_KEY = 610201127 case ERIC_CRYPT_E_LOAD_DLL = 610201128 case ERIC_CRYPT_E_NO_SERVICE = 610201129 case ERIC_CRYPT_E_ESICL_EXCEPTION = 610201130 case ERIC_CRYPT_E_TOKEN_TYPE_MISMATCH = 610201144 case ERIC_CRYPT_E_P12_CREATE = 610201146 case ERIC_CRYPT_E_VERIFY_CERT_CHAIN = 610201147 case ERIC_CRYPT_E_P11_ENGINE_LOADED = 610201148 case ERIC_CRYPT_E_USER_CANCEL = 610201149 case ERIC_CRYPT_ZERTIFIKAT = 610201200 case ERIC_CRYPT_SIGNATUR = 610201201 case ERIC_CRYPT_NICHT_UNTERSTUETZTES_PSE_FORMAT = 610201203 case ERIC_CRYPT_PIN_BENOETIGT = 610201205 case ERIC_CRYPT_PIN_STAERKE_NICHT_AUSREICHEND = 610201206 case ERIC_CRYPT_E_INTERN = 610201208 case ERIC_CRYPT_ZERTIFIKATSPFAD_KEIN_VERZEICHNIS = 610201209 case ERIC_CRYPT_ZERTIFIKATSDATEI_EXISTIERT_BEREITS = 610201210 case ERIC_CRYPT_PIN_ENTHAELT_UNGUELTIGE_ZEICHEN = 610201211 case ERIC_CRYPT_E_INVALID_PARAM_ABC = 610201212 case ERIC_CRYPT_CORRUPTED = 610201213 case ERIC_CRYPT_EIDKARTE_NICHT_UNTERSTUETZT = 610201214 case ERIC_CRYPT_E_SC_SLOT_EMPTY = 610201215 case ERIC_CRYPT_E_SC_NO_APPLET = 610201216 case ERIC_CRYPT_E_SC_SESSION = 610201217 case ERIC_CRYPT_E_P11_NO_SIG_CERT = 610201218 case ERIC_CRYPT_E_P11_INIT_FAILED = 610201219 case ERIC_CRYPT_E_P11_NO_ENC_CERT = 610201220 case ERIC_CRYPT_E_P12_NO_SIG_CERT = 610201221 case ERIC_CRYPT_E_P12_NO_ENC_CERT = 610201222 case ERIC_CRYPT_E_SC_ENC_KEY = 610201223 case ERIC_CRYPT_E_SC_NO_SIG_CERT = 610201224 case ERIC_CRYPT_E_SC_NO_ENC_CERT = 610201225 case ERIC_CRYPT_E_SC_INIT_FAILED = 610201226 case ERIC_CRYPT_E_SC_SIG_KEY = 610201227 case ERIC_IO_FEHLER = 610301001 case ERIC_IO_DATEI_INKORREKT = 610301005 case ERIC_IO_PARSE_FEHLER = 610301006 case ERIC_IO_NDS_GENERIERUNG_FEHLGESCHLAGEN = 610301007 case ERIC_IO_MASTERDATENSERVICE_NICHT_VERFUEGBAR = 610301010 case ERIC_IO_STEUERZEICHEN_IM_NDS = 610301014 case ERIC_IO_VERSIONSINFORMATIONEN_NICHT_GEFUNDEN = 610301031 case ERIC_IO_FALSCHES_VERFAHREN = 610301104 case ERIC_IO_READER_MEHRFACHE_STEUERFAELLE = 610301105 case ERIC_IO_READER_UNERWARTETE_ELEMENTE = 610301106 case ERIC_IO_READER_FORMALE_FEHLER = 610301107 case ERIC_IO_READER_FALSCHES_ENCODING = 610301108 case ERIC_IO_READER_MEHRFACHE_NUTZDATEN_ELEMENTE = 610301109 case ERIC_IO_READER_MEHRFACHE_NUTZDATENBLOCK_ELEMENTE = 610301110 case ERIC_IO_UNBEKANNTE_DATENART = 610301111 case ERIC_IO_READER_UNTERSACHBEREICH_UNGUELTIG = 610301114 case ERIC_IO_READER_ZU_VIELE_NUTZDATENBLOCK_ELEMENTE = 610301115 case ERIC_IO_READER_STEUERZEICHEN_IM_TRANSFERHEADER = 610301150 case ERIC_IO_READER_STEUERZEICHEN_IM_NUTZDATENHEADER = 610301151 case ERIC_IO_READER_STEUERZEICHEN_IN_DEN_NUTZDATEN = 610301152 case ERIC_IO_READER_ZU_VIELE_ANHAENGE = 610301190 case ERIC_IO_READER_ANHANG_ZU_GROSS = 610301191 case ERIC_IO_READER_ANHAENGE_ZU_GROSS = 610301192 case ERIC_IO_READER_SCHEMA_VALIDIERUNGSFEHLER = 610301200 case ERIC_IO_READER_UNBEKANNTE_XML_ENTITY = 610301201 case ERIC_IO_DATENTEILNOTFOUND = 610301252 case ERIC_IO_DATENTEILENDNOTFOUND = 610301253 case ERIC_IO_UEBERGABEPARAMETER_FEHLERHAFT = 610301300 case ERIC_IO_UNGUELTIGE_UTF8_SEQUENZ = 610301400 case ERIC_IO_UNGUELTIGE_ZEICHEN_IN_PARAMETER = 610301401 case ERIC_PRINT_INTERNER_FEHLER = 610501001 case ERIC_PRINT_DRUCKVORLAGE_NICHT_GEFUNDEN = 610501002 case ERIC_PRINT_UNGUELTIGER_DATEI_PFAD = 610501004 case ERIC_PRINT_INITIALISIERUNG_FEHLERHAFT = 610501007 case ERIC_PRINT_AUSGABEZIEL_UNBEKANNT = 610501008 case ERIC_PRINT_ABBRUCH_DRUCKVORBEREITUNG = 610501009 case ERIC_PRINT_ABBRUCH_GENERIERUNG = 610501010 case ERIC_PRINT_STEUERFALL_NICHT_UNTERSTUETZT = 610501011 case ERIC_PRINT_FUSSTEXT_ZU_LANG = 610501012 } /** * 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.", Name="StatusCode") public var statusCode:EricFehlerCode /** * The status message that the ERiC API function returns. */ // @ApiMember(Description="The status message that the ERiC API function returns.", Name="StatusText") public var statusText:String /** * The unique identifier of the response. */ // @ApiMember(Description="The unique identifier of the response.", Name="Id") public var id:String /** * The position of the response element in an indexed collection. */ // @ApiMember(Description="The position of the response element in an indexed collection.", Name="Index") public var index:Int /** * Metadata that contains structured error information on the service response. */ // @ApiMember(Description="Metadata that contains structured error information on the service response.", Name="ResponseStatus") public var responseStatus:ResponseStatus required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case statusCode case statusText case id case index case responseStatus } 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) id = try container.decodeIfPresent(String.self, forKey: .id) index = try container.decodeIfPresent(Int.self, forKey: .index) responseStatus = try container.decodeIfPresent(ResponseStatus.self, forKey: .responseStatus) } 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) } if id != nil { try container.encode(id, forKey: .id) } if index != nil { try container.encode(index, forKey: .index) } if responseStatus != nil { try container.encode(responseStatus, forKey: .responseStatus) } } } public protocol IHasIndex { var index:Int { get set } } /** * Represents a structure that contains the first output of the ERiC tax data submission process. */ // @Api(Description="Represents a structure that contains the first output of the ERiC tax data submission process.") public class EricBearbeiteVorgang : Codable { /** * Information from the successful processing a tax declaration. */ // @ApiMember(Description="Information from the successful processing a tax declaration.") public var erfolg:Erfolg /** * Gets or sets information on all data deliveries, including deliveries that have not been confirmed by the server. */ // @ApiMember(Description="Gets or sets information on all data deliveries, including deliveries that have not been confirmed by the server.") public var transfers:Transfers /** * Error rules that result from the processing of a tax declaration. */ // @ApiMember(Description="Error rules that result from the processing of a tax declaration.") public var fehlerRegelpruefungen:[FehlerRegelpruefung] = [] /** * Hints that result the processing of a tax declaration. */ // @ApiMember(Description="Hints that result the processing of a tax declaration.") public var hinweise:[Hinweis] = [] required public init(){} } /** * Represents an ELSTER document. */ // @Api(Description="Represents an ELSTER document.") public class Elster : Codable { /** * The transfer header part of the ELSTER document. */ // @ApiMember(Description="The transfer header part of the ELSTER document.", IsRequired=true) public var transferHeader:TransferHeader /** * The data (facts) part of the ELSTER document. */ // @ApiMember(Description="The data (facts) part of the ELSTER document.") public var datenTeil:DatenTeil required public init(){} } /** * Represents a file that contains raw data content in bytes */ // @Api(Description="Represents a file that contains raw data content in bytes") public class BinaryFile : FileBase { /** * The attributes of the file. */ // @ApiMember(Description="The attributes of the file.", Name="Metadata") public var metadata:FileMetadata /** * The name of the file without information on its directory path. */ // @ApiMember(Description="The name of the file without information on its directory path.", Name="Name") public var name:String /** * The raw data content of the file. */ // @ApiMember(Description="The raw data content of the file.", Name="Content") public var content:[UInt8] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case metadata case name case content } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) metadata = try container.decodeIfPresent(FileMetadata.self, forKey: .metadata) name = try container.decodeIfPresent(String.self, forKey: .name) content = try container.decodeIfPresent([UInt8].self, forKey: .content) ?? [] } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if metadata != nil { try container.encode(metadata, forKey: .metadata) } if name != nil { try container.encode(name, forKey: .name) } if content.count > 0 { try container.encode(content, forKey: .content) } } } /** * Specifies a service response from an ERiC service operation. */ // @Api(Description="Specifies a service response from an ERiC service operation.") public class ServiceReponseBase : IHasIndex, Codable { /** * The unique identifier of the response. */ // @ApiMember(Description="The unique identifier of the response.", Name="Id") public var id:String /** * The position of the response element in an indexed collection. */ // @ApiMember(Description="The position of the response element in an indexed collection.", Name="Index") public var index:Int /** * Metadata that contains structured error information on the service response. */ // @ApiMember(Description="Metadata that contains structured error information on the service response.", Name="ResponseStatus") public var responseStatus:ResponseStatus required public init(){} } /** * Represents a base class for a file with raw data. */ // @Api(Description="Represents a base class for a file with raw data.") public class FileBase : Codable { /** * The raw data content of the file. */ // @ApiMember(Description="The raw data content of the file.", Name="Content") public var content:[UInt8] = [] required public init(){} } public protocol ISecuredCertificate { var pin:String { get set } } /** * Stellt den Pflichtkennzahl Kz09 dar, welche die Angabe diverser Informationen ermöglicht. Beispiele: 74931 74931*Name Berater*Berufsbezeichnung*** 74931*****Name Mandant 74931***Tel.Nr:Berater/Vorwahl*Tel.Nr:Berater/Anschluss*Name Mandant */ // @Api(Description="Stellt den Pflichtkennzahl Kz09 dar, welche die Angabe diverser Informationen ermöglicht. Beispiele: 74931 74931*Name Berater*Berufsbezeichnung*** 74931*****Name Mandant 74931***Tel.Nr:Berater/Vorwahl*Tel.Nr:Berater/Anschluss*Name Mandant") public class Kz09 : Codable { /** * Die Bezeichnung des Softwareherstellers (Pflicht), über dessen Software die Steuererklärung oder (Vor)anmeldung abgegeben wird. Die Bezeichnung muss 5-stellig sein. */ // @ApiMember(Description="Die Bezeichnung des Softwareherstellers (Pflicht), über dessen Software die Steuererklärung oder (Vor)anmeldung abgegeben wird. Die Bezeichnung muss 5-stellig sein.", IsRequired=true, Name="HerstellerId") public var herstellerId:Int /** * Der Name des Beraters, welcher die Steuererklärung oder (Vor)anmeldung abgegeben wird. Das Name des Beraters kann von 0- bis 85-stellig sein. */ // @ApiMember(Description="Der Name des Beraters, welcher die Steuererklärung oder (Vor)anmeldung abgegeben wird. Das Name des Beraters kann von 0- bis 85-stellig sein.", Name="BeraterName") public var beraterName:String /** * Die Berufbezeichnung des Beraters. Die Berufbezeichnung des Beraterskann von 0- bis 85-stellig sein. */ // @ApiMember(Description="Die Berufbezeichnung des Beraters. Die Berufbezeichnung des Beraterskann von 0- bis 85-stellig sein.", Name="Berufsbezeichnung") public var berufsbezeichnung:String /** * Die Telefonnummervorwahl des Beraters. Die Telefonnummervorwahl des Beraters kann von 0- bis 85-stellig sein. */ // @ApiMember(Description="Die Telefonnummervorwahl des Beraters. Die Telefonnummervorwahl des Beraters kann von 0- bis 85-stellig sein.", Name="Berufsbezeichnung") public var beraterTelNrVorwahl:String /** * Der Telefonnummeranschluss des Beraters. Der Telefonnummeranschluss des Beraters kann von 0- bis 85-stellig sein. */ // @ApiMember(Description="Der Telefonnummeranschluss des Beraters. Der Telefonnummeranschluss des Beraters kann von 0- bis 85-stellig sein.", Name="BeraterTelNrAnschluss") public var beraterTelNrAnschluss:String /** * Der Name des Mandanten. Der Name des Mandanten kann von 0- bis 85-stellig sein. */ // @ApiMember(Description="Der Name des Mandanten. Der Name des Mandanten kann von 0- bis 85-stellig sein.", Name="MandantName") public var mandantName:String required public init(){} } /** * Represents an integer data type whose value has a maximum length of 1 digit. Minus sign allowed. */ // @Api(Description="Represents an integer data type whose value has a maximum length of 1 digit. Minus sign allowed.") public class Ganzzahl1EN : Ganzzahl { /** * The intrinsic integer value. */ // @ApiMember(Description="The intrinsic integer value.") public var wert:Int required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case wert } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) wert = try container.decodeIfPresent(Int.self, forKey: .wert) } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if wert != nil { try container.encode(wert, forKey: .wert) } } } /** * Submits a VAT registration (Umsatzsteueranmeldung) for 2024 and files in the XML content as an Entrepreneur */ // @Api(Description="Submits a VAT registration (Umsatzsteueranmeldung) for 2024 and files in the XML content as an Entrepreneur") public class SubmitUmsatzsteueranmeldung2024AsEntrepreneurBase : IPost, IDruckRequest, IVeschlueselungsRequest, Codable { /** * Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data). */ // @ApiMember(Description="Natürliche Person, welche die Software bedient, bzw. in deren Namen die Software bedient wird, um die Daten zu übersenden (Natural person who operates the software or under whose name the software is operated in order to transmit the data).", IsRequired=true, Name="DatenLieferant") public var datenLieferant:DatenLieferant /** * Der natürliche oder jüritische Person, der den Steuerfall bearbeitet und abgibt (The natural or legal person who processes and submits the tax case). */ // @ApiMember(Description="Der natürliche oder jüritische Person, der den Steuerfall bearbeitet und abgibt (The natural or legal person who processes and submits the tax case).", Name="Unternehmer") public var unternehmer:Unternehmer /** * Das Datum der Erstellung (Date of creation). */ // @ApiMember(Description="Das Datum der Erstellung (Date of creation).", IsRequired=true, Name="Erstellungsdatum") public var erstellungsdatum:Date? /** * Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office). */ // @ApiMember(Description="Die vierstellige Bundesfinanzamtsnummer des empfangenden Finanzamtes (The four-digit federal tax office number of the receiving tax office).", IsRequired=true, Name="Bundesfinanzamtsnummer") public var bundesfinanzamtsnummer:String /** * Die Anbindung zum ELSTER Online Portal (EOP). */ // @ApiMember(Description="Die Anbindung zum ELSTER Online Portal (EOP).", Name="EOP") public var eop:EOP /** * Should the PDF file be prepared for a double-sided printout with a margin for punching?. True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page. */ // @ApiMember(Description="Should the PDF file be prepared for a double-sided printout with a margin for punching?. True: The straight sides are indented to the left for a stitching margin for punching. False: There is no indentation of the straight sides. The created PDF is only intended for printing pages page by page.", Name="DuplexDruck") public var duplexDruck:Bool? /** * Name prefix of the generated transfer protocol file. */ // @ApiMember(Description="Name prefix of the generated transfer protocol file.", IsRequired=true, Name="ProtocolPrefix") public var protocolPrefix:String /** * Footer text to be used on the printout (optional). */ // @ApiMember(Description="Footer text to be used on the printout (optional).", Name="FussText") public var fussText:String /** * The authentification certificate. */ // @ApiMember(Description="The authentification certificate.", IsRequired=true, Name="Zertifikat") public var zertifikat:PortalCertificate /** * Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by '-'. Example: 'K6FG5 - RS32P'. */ // @ApiMember(Description="Gets or sets the retrieval code. This value MUST be given for the tax operation ElsterDatenabholung and tax data type ElsterVaStDaten, for which a SoftPSE certificate is used to sign.In other cases a null value should be given. It consists of 2 x 5 characters, which are joined by '-'. Example: 'K6FG5 - RS32P'.", Name="AbrufCode") public var abrufCode:String required public init(){} } /** * Represents information returned from a successful tax declaration process. */ // @Api(Description="Represents information returned from a successful tax declaration process.") public class Erfolg : Codable { /** * The generated tele-number for the successful tax declaration process. */ // @ApiMember(Description="The generated tele-number for the successful tax declaration process.") public var telenummer:[String] = [] /** * The classification key for the successful tax declaration process. */ // @ApiMember(Description="The classification key for the successful tax declaration process.") public var ordnungsbegriffe:[String] = [] required public init(){} } /** * Represents information on all data deliveries, including deliveries that have not been confirmed by the server. For more information, see the ERiC developer manual in the 'TransferTicket' section. */ // @Api(Description="Represents information on all data deliveries, including deliveries that have not been confirmed by the server. For more information, see the ERiC developer manual in the 'TransferTicket' section.") public class Transfers : Codable { /** * Contains information on all data deliveries, including deliveries that have not been confirmed by the server. */ // @ApiMember(Description="Contains information on all data deliveries, including deliveries that have not been confirmed by the server.") public var transferList:[Transfer] = [] required public init(){} } /** * Represents information on an ERiC reference. */ // @Api(Description="Represents information on an ERiC reference.") public class FehlerRegelpruefung : Codable { /** * The user data ticket of the reference. */ // @ApiMember(Description="The user data ticket of the reference.") public var nutzdatenticket:String /** * The field identifier of the reference. */ // @ApiMember(Description="The field identifier of the reference.") public var feldidentifikator:String /** * The multi-line index of the reference. */ // @ApiMember(Description="The multi-line index of the reference.") public var mehrfachzeilenindex:String /** * The delivery number form of the reference. */ // @ApiMember(Description="The delivery number form of the reference.") public var lfdNrVordruck:String /** * Indicates the line number of the error field mentioned in the form. */ // @ApiMember(Description="Indicates the line number of the error field mentioned in the form.") public var vordruckZeilennummer:String /** * Specifies the value of one or more index fields that identify the context of error messages. */ // @ApiMember(Description="Specifies the value of one or more index fields that identify the context of error messages.") public var semantischeIndexes:[SemantischerIndex] = [] /** * The sub-subject-area of the reference. */ // @ApiMember(Description="The sub-subject-area of the reference.") public var untersachbereich:String /** * The private identification number of the reference. */ // @ApiMember(Description="The private identification number of the reference.") public var privateKennnummer:String /** * The name of the rule that applies to the reference. */ // @ApiMember(Description="The name of the rule that applies to the reference.") public var regelName:String /** * The technical error identifier of the reference. */ // @ApiMember(Description="The technical error identifier of the reference.") public var fachlicheFehlerId:String /** * The textual details of the reference. */ // @ApiMember(Description="The textual details of the reference.") public var text:String required public init(){} } public class Hinweis : Codable { /** * The user data ticket of the reference. */ // @ApiMember(Description="The user data ticket of the reference.") public var nutzdatenticket:String /** * The field identifier of the reference. */ // @ApiMember(Description="The field identifier of the reference.") public var feldidentifikator:String /** * The multi-line index of the reference. */ // @ApiMember(Description="The multi-line index of the reference.") public var mehrfachzeilenindex:String /** * The delivery number form of the reference. */ // @ApiMember(Description="The delivery number form of the reference.") public var lfdNrVordruck:String /** * Indicates the line number of the error field mentioned in the form. */ // @ApiMember(Description="Indicates the line number of the error field mentioned in the form.") public var vordruckZeilennummer:String /** * Specifies the value of one or more index fields that identify the context of error messages. */ // @ApiMember(Description="Specifies the value of one or more index fields that identify the context of error messages.") public var semantischeIndexes:[SemantischerIndex] = [] /** * The sub-subject-area of the reference. */ // @ApiMember(Description="The sub-subject-area of the reference.") public var untersachbereich:String /** * The private identification number of the reference. */ // @ApiMember(Description="The private identification number of the reference.") public var privateKennnummer:String /** * The name of the rule that applies to the reference. */ // @ApiMember(Description="The name of the rule that applies to the reference.") public var regelName:String /** * The technical note identifier of the reference. */ // @ApiMember(Description="The technical note identifier of the reference.") public var fachlicheHinweisId:String /** * The textual details of the reference. */ // @ApiMember(Description="The textual details of the reference.") public var text:String required public init(){} } /** * Represents the transfer header part of an ELSTER document. */ // @Api(Description="Represents the transfer header part of an ELSTER document.") public class TransferHeader : Codable { /** * The version of the transfer header. */ // @ApiMember(Description="The version of the transfer header.", IsRequired=true) public var version:String /** * The tax operation used in the ELSTER process. */ // @ApiMember(Description="The tax operation used in the ELSTER process.", IsRequired=true) public var verfahren:Verfahren /** * The tax data type of the ELSTER process. */ // @ApiMember(Description="The tax data type of the ELSTER process.", IsRequired=true) public var datenArt:Datenart /** * The authentification procedure of the ELSTER process. */ // @ApiMember(Description="The authentification procedure of the ELSTER process.", IsRequired=true) public var vorgang:Vorgang /** * The ticket identifier after a successful ELSTER process. */ // @ApiMember(Description="The ticket identifier after a successful ELSTER process.") public var transferTicket:String /** * The flag that indicates whether the tax declaration or filing is a test case. For production purposes, this value should not be set. */ // @ApiMember(Description="The flag that indicates whether the tax declaration or filing is a test case. For production purposes, this value should not be set.") public var testmerker:Testmerker? /** * The signature and associated information on the compressed, encrypted, base64-encoded content of the the data part of a tax declaration / statement. */ // @ApiMember(Description="The signature and associated information on the compressed, encrypted, base64-encoded content of the the data part of a tax declaration / statement.") public var sigUser:SigUser /** * The receiving ELSTER server. */ // @ApiMember(Description="The receiving ELSTER server.") public var empfaenger:Empfaenger /** * The identifier of the software manufacturer, through whose software the tax declaration is filed. */ // @ApiMember(Description="The identifier of the software manufacturer, through whose software the tax declaration is filed.", IsRequired=true) public var herstellerID:String /** * The details of the provider that submits tax data. */ // @ApiMember(Description="The details of the provider that submits tax data.", IsRequired=true) public var datenLieferant:String /** * The date of receipt of the tax data. */ // @ApiMember(Description="The date of receipt of the tax data.") public var eingangsDatum:Date? /** * The encryption data required for authenticated transmission of tax data. */ // @ApiMember(Description="The encryption data required for authenticated transmission of tax data.") public var datei:Datei /** * The return code of the transfer header and is included in the response XML of the ELSTER server. The value should never be set by the data provider. */ // @ApiMember(Description="The return code of the transfer header and is included in the response XML of the ELSTER server. The value should never be set by the data provider.") public var rc:RC /** * The details of the software that submits the tax data. */ // @ApiMember(Description="The details of the software that submits the tax data.") public var versionClient:String /** * Data extensions to the transfer header. */ // @ApiMember(Description="Data extensions to the transfer header.") public var zusatz:Zusatz required public init(){} } /** * Represents the data part of an ELSTER document. */ // @Api(Description="Represents the data part of an ELSTER document.") public class DatenTeil : Codable { /** * The blocks of tax data of the ELSTER document. */ // @ApiMember(Description="The blocks of tax data of the ELSTER document.", IsRequired=true) public var nutzdatenbloecke:[Nutzdatenblock] = [] required public init(){} } /** * Represents information about a file or directory. */ // @Api(Description="Represents information about a file or directory.") public class FileMetadata : IFileMetadata, Codable { /** * The name of the file.For files, gets the name of the file.For directories, gets the name of the last directory in the hierarchy if a hierarchy exists; otherwise, the name of the directory. */ // @ApiMember(Description="The name of the file.\nFor files, gets the name of the file.\nFor directories, gets the name of the last directory in the hierarchy if a hierarchy exists; otherwise, the name of the directory.", Name="Name") public var name:String /** * The full path of the directory or file. */ // @ApiMember(Description="The full path of the directory or file.", Name="FullName") public var fullName:String /** * The time the current file or directory was last accessed. */ // @ApiMember(Description="The time the current file or directory was last accessed.", Name="LastAccessTime") public var lastAccessTime:Date /** * The name of the file. */ // @ApiMember(Description="The name of the file.", Name="LastAccessTimeUtc") public var lastAccessTimeUtc:Date /** * The time when the current file or directory was last written to. */ // @ApiMember(Description="The time when the current file or directory was last written to.", Name="LastAccessTime") public var lastWriteTime:Date /** * The time, in coordinated universal time (UTC), when the current file or directory was last written to. */ // @ApiMember(Description="The time, in coordinated universal time (UTC), when the current file or directory was last written to.", Name="LastWriteTimeUtc") public var lastWriteTimeUtc:Date /** * The size, in bytes, of the current file. */ // @ApiMember(Description="The size, in bytes, of the current file.", Name="Length") public var length:Int /** * The size, in bytes, of the current file. */ // @ApiMember(Description="The size, in bytes, of the current file.", Name="UserId") public var userId:Int /** * The file group id. */ // @ApiMember(Description="The file group id.", Name="GroupId") public var groupId:Int /** * A value that indicates whether the others can read from this file. */ // @ApiMember(Description="A value that indicates whether the others can read from this file.", Name="OthersCanRead") public var othersCanRead:Bool /** * A value that indicates whether the group members can execute this file. */ // @ApiMember(Description="A value that indicates whether the group members can execute this file.", Name="GroupCanExecute") public var groupCanExecute:Bool /** * A value that indicates whether the group members can write into this file. */ // @ApiMember(Description="A value that indicates whether the group members can write into this file.", Name="GroupCanWrite") public var groupCanWrite:Bool /** * A value that indicates whether the group members can read from this file. */ // @ApiMember(Description="A value that indicates whether the group members can read from this file.", Name="GroupCanRead") public var groupCanRead:Bool /** * A value that indicates whether the owner can execute this file. */ // @ApiMember(Description="A value that indicates whether the owner can execute this file.", Name="OwnerCanExecute") public var ownerCanExecute:Bool /** * A value that indicates whether the owner can write into this file. */ // @ApiMember(Description="A value that indicates whether the owner can write into this file.", Name="OwnerCanWrite") public var ownerCanWrite:Bool /** * A value that indicates whether the owner can read from this file. */ // @ApiMember(Description="A value that indicates whether the owner can read from this file.", Name="OthersCanRead") public var ownerCanRead:Bool /** * A value that indicates whether others can read from this file. */ // @ApiMember(Description="A value that indicates whether others can read from this file.", Name="OthersCanExecute") public var othersCanExecute:Bool /** * A value that indicates whether others can write into this file. */ // @ApiMember(Description="A value that indicates whether others can write into this file.", Name="OthersCanWrite") public var othersCanWrite:Bool /** * Extensions to the file attributes. */ // @ApiMember(Description="Extensions to the file attributes.", Name="Extensions") public var extensions:[String:String] = [:] required public init(){} } /** * Einheitliche Abkürzungen fuer die Bundesländer bzw. alternative Empfänger */ public enum Bundesland : String, Codable { case BW case BY case BE case BB case HB case HH case HE case MV case NI case NW case RP case SL case SN case ST case SH case TH case EC case BF case CS case CD case CM case CN case DS case OP case TK case ZF } /** * Specifies an integer data type with limits and a specialized string representation */ // @Api(Description="Specifies an integer data type with limits and a specialized string representation") public class Ganzzahl : Codable { /** * The intrinsic integer value. */ // @ApiMember(Description="The intrinsic integer value.") public var wert:Int required public init(){} } /** * Represents information on the delivery. */ // @Api(Description="Represents information on the delivery.") public class Transfer : Codable { /** * The ticket of the transfer. */ // @ApiMember(Description="The ticket of the transfer.") public var transferTicket:String required public init(){} } /** * Represents value of an index field, which identfies the context about an error message. */ // @Api(Description="Represents value of an index field, which identfies the context about an error message.") public class SemantischerIndex : Codable { /** * The name of the index field. */ // @ApiMember(Description="The name of the index field.") public var name:String /** * The value of the index field. */ // @ApiMember(Description="The value of the index field.") public var value:String required public init(){} } /** * Auflistung der gültigen Verfahren */ public enum Verfahren : String, Codable { case ElsterAnmeldung case ElsterBereitstellung case ElsterBilanz case ElsterBRM case ElsterBRMOrg case ElsterDatenabholung case ElsterErklaerung case ElsterExtern case ElsterFSE case ElsterKapESt case ElsterKMV case ElsterKontoabfrage case ElsterLavendel case ElsterLohn case ElsterLohn2 case ElsterNachricht case ElsterSignatur case ElsterVollmachtDB } /** * Hauptinformation ob die Daten authentifiziert wurden (send-Auth) oder nicht (send-NoSig) */ public enum Vorgang : String, Codable { case Send_Auth case Send_Auth_Part case Send_NoSig case Send_NoSig_Part } /** * Kennzeichnung der Datenlieferung ob es sich um einen Testfall handelt, gilt fuer die gesamte Datenlieferung. Ein Echtfall enthält dieses Element nicht. Ein Testfall muss mit einem Testmerker versehen werden, damit er nicht wie ein Echtfall verarbeitet wird. Handelt es sich um Daten, die nur zum Testen des Frontends versendet wurden, müssen sie nicht mehr weiter verarbeitet werden. */ public enum Testmerker : Int, Codable { case TM010000001 = 10000001 case TM080000001 = 80000001 case TM160000001 = 160000001 case TM160000002 = 160000002 case TM220000000 = 220000000 case TM220002000 = 220002000 case TM230000001 = 230000001 case TM240000000 = 240000000 case TM370000001 = 370000001 case TM520000000 = 520000000 case TM700000001 = 700000001 case TM700000004 = 700000004 } /** * Represents the signature and associated information of the compressed, encrypted, base64-encoded content of the data part of the tax declaration/statement. */ // @Api(Description="Represents the signature and associated information of the compressed, encrypted, base64-encoded content of the data part of the tax declaration/statement.") public class SigUser : Codable { //inhalt:Object ignored. Type could not be extended in Swift required public init(){} } /** * Represents a receiver of tax data. */ // @Api(Description="Represents a receiver of tax data.") public class Empfaenger : Codable { /** * The identifier of the receiver. */ // @ApiMember(Description="The identifier of the receiver.") public var id:String /** * The destination of the receiver. */ // @ApiMember(Description="The destination of the receiver.") public var ziel:Bundesland? required public init(){} } /** * Represents information on the encryption of tax data. */ // @Api(Description="Represents information on the encryption of tax data.") public class Datei : Codable { /** * The type of data encryption used. */ // @ApiMember(Description="The type of data encryption used.") public var verschluesselung:Verschluesselungsart /** * The type of data compression used. */ // @ApiMember(Description="The type of data compression used.") public var kompression:Kompression /** * The transport key used in the encryption. */ // @ApiMember(Description="The transport key used in the encryption.") public var transportSchluessel:String /** * [Documentation unavailable] */ // @ApiMember(Description="[Documentation unavailable]") public var erstellung:Erstellung required public init(){} } /** * Represents an ERiC return code. */ // @Api(Description="Represents an ERiC return code.") public class RC : Codable { /** * The return value of the return code. */ // @ApiMember(Description="The return value of the return code.") public var rueckgabe:Rueckgabe /** * The internal value of the return code. */ // @ApiMember(Description="The internal value of the return code.") public var stack:Stack required public init(){} } /** * Represents an ERiC extension. */ // @Api(Description="Represents an ERiC extension.") public class Zusatz : Codable { /** * The user-customizable items for the extension. Data providers can use these items for their own extensions/information. */ // @ApiMember(Description="The user-customizable items for the extension. Data providers can use these items for their own extensions/information.") public var infos:[String] = [] /** * The ELSTER items for the extension. They can be included in the response XML from the ELSTER server, if special information must be returned to the user after data submission. For example, for authenticated submission, information about impending certificate expiration etc. It must not be supplied by the data provider (even when empty). */ // @ApiMember(Description="The ELSTER items for the extension. They can be included in the response XML from the ELSTER server, if special information must be returned to the user after data submission. For example, for authenticated submission, information about impending certificate expiration etc. It must not be supplied by the data provider (even when empty).") public var elsterInfos:[String] = [] required public init(){} } /** * Represents a block of tax data. */ // @Api(Description="Represents a block of tax data.") public class Nutzdatenblock : Codable { /** * The header part of the block. */ // @ApiMember(Description="The header part of the block.", IsRequired=true) public var nutzdatenHeader:NutzdatenHeader /** * The data part of the block. */ // @ApiMember(Description="The data part of the block.", IsRequired=true) public var nutzdaten:Nutzdaten required public init(){} } public protocol IFileMetadata { var name:String { get set } var fullName:String { get set } var lastAccessTime:Date { get set } var lastAccessTimeUtc:Date { get set } var lastWriteTime:Date { get set } var lastWriteTimeUtc:Date { get set } var length:Int { get set } var userId:Int { get set } var groupId:Int { get set } var groupCanExecute:Bool { get set } var groupCanWrite:Bool { get set } var groupCanRead:Bool { get set } var ownerCanRead:Bool { get set } var ownerCanExecute:Bool { get set } var ownerCanWrite:Bool { get set } var othersCanRead:Bool { get set } var othersCanExecute:Bool { get set } var othersCanWrite:Bool { get set } var extensions:[String:String] { get set } } /** * Protokoll der Verschluesselung. Es kann vorkommen, dass verschieden Verschluesselungsarten eingesetzt werden, eine Unterscheidung ist hier nötig, um das richtige Entschluesselungstool anzusteuern. Mit welcher Verschluesselungsart wurden die Inhalte von den Elementen 'DatenLieferant' und ggf. 'SigUser' im TransferHeader und dem Element 'DatenTeil' verschluesselt */ public enum Verschluesselungsart : String, Codable { case PKCS_7v1_5 case PKCS_7v1_5enveloped case NO_BASE64 case CMSEncryptedData case CMSEnvelopedData case EnvelopedData__RSA_OAEP__AES_128__GZip__B64 } /** * Mit welcher Kompression wurden die Inhalte von den Elementen DatenLieferant und ggf. SigUser im TransferHeader und dem Element DatenTeil komprimiert. */ public enum Kompression : String, Codable { case GZIP case NO_BASE64 } /** * [Documentation unavailable] */ // @Api(Description="[Documentation unavailable]") public class Erstellung : Codable { /** * [Documentation unavailable] */ // @ApiMember(Description="[Documentation unavailable]") public var eric:EricTyp required public init(){} } /** * Represents an external error stack. */ // @Api(Description="Represents an external error stack.") public class Rueckgabe : Codable { /** * The external error code. Either a zero (0) if no external errors occurred; otherwise an error number. */ // @ApiMember(Description="The external error code. Either a zero (0) if no external errors occurred; otherwise an error number.") public var code:String /** * The external error message. */ // @ApiMember(Description="The external error message.") public var text:String required public init(){} } /** * Represents an internal error stack. */ // @Api(Description="Represents an internal error stack.") public class Stack : Codable { /** * The internal error code. Either a zero (0) if no internal errors occurred; otherwise an error number. */ // @ApiMember(Description="The internal error code. Either a zero (0) if no internal errors occurred; otherwise an error number.") public var code:String /** * The external error message. */ // @ApiMember(Description="The external error message.") public var text:String required public init(){} } /** * Represents the header of a tax data. */ // @Api(Description="Represents the header of a tax data.") public class NutzdatenHeader : Codable { /** * The version of the header. */ // @ApiMember(Description="The version of the header.", IsRequired=true) public var version:String /** * The ticket identifier of the header. */ // @ApiMember(Description="The ticket identifier of the header.", IsRequired=true) public var nutzdatenTicket:String /** * The receiver of the header. */ // @ApiMember(Description="The receiver of the header.", IsRequired=true) public var empfaenger:NDHEmpfaenger /** * The software manufacturer, through whose software the tax declaration or filing is submitted. */ // @ApiMember(Description="The software manufacturer, through whose software the tax declaration or filing is submitted.", IsRequired=true) public var hersteller:Hersteller /** * The details of the data provider (e.g. taxpayer, tax consulant or firm), who produced the tax data and it must not necessarily be the same person declared in the TransferHeader section. */ // @ApiMember(Description="The details of the data provider (e.g. taxpayer, tax consulant or firm), who produced the tax data and it must not necessarily be the same person declared in the TransferHeader section.") public var datenLieferant:String /** * The return code of the header. */ // @ApiMember(Description="The return code of the header.") public var rc:RC /** * The data extensions of the header. */ // @ApiMember(Description="The data extensions of the header.") public var zusatz:Zusatz required public init(){} } /** * Represents an encapsulation of tax data content. */ // @Api(Description="Represents an encapsulation of tax data content.") public class Nutzdaten : Codable { //inhalt:Object ignored. Type could not be extended in Swift required public init(){} } /** * [Documentation unavailable] */ // @Api(Description="[Documentation unavailable]") public class EricTyp : Codable { //inhalt:Object ignored. Type could not be extended in Swift required public init(){} } /** * Represents a receiver of tax data. */ // @Api(Description="Represents a receiver of tax data.") public class NDHEmpfaenger : Codable { /** * The identifier of the receiver. */ // @ApiMember(Description="The identifier of the receiver.") public var id:EmpfaengerID /** * The value of the receiver. */ // @ApiMember(Description="The value of the receiver.") public var value:String required public init(){} } /** * Represents a manufacturer/vendor of tax software. */ // @Api(Description="Represents a manufacturer/vendor of tax software.") public class Hersteller : Codable { /** * The product name of the tax software produced by the manufacturer. */ // @ApiMember(Description="The product name of the tax software produced by the manufacturer.") public var produktName:String /** * The product version of the tax software produced by the manufacturer. */ // @ApiMember(Description="The product version of the tax software produced by the manufacturer.") public var produktVersion:String required public init(){} } /** * Represents a receriver ID */ public enum EmpfaengerID : String, Codable { case L case F }