/* Options: Date: 2026-01-25 12:52:07 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: SubmitZm2026Async.* //ExcludeTypes: //ExcludeGenericBaseTypes: False //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True //InitializeCollections: False //TreatTypesAsStrings: //DefaultImports: Foundation,ServiceStack */ import Foundation import ServiceStack /** * An asynchronous service to submit content that represents a recapitulative tax declaration for 2026. */ // @Route("/SubmitZm2026Async", "POST") // @Api(Description="An asynchronous service to submit content that represents a recapitulative tax declaration for 2026.") public class SubmitZm2026Async : SubmitZm2026Base, IReturn { public typealias Return = BearbeiteVorgangResponse 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) } } /** * 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] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case rueckgabe case serverantwort case transferProtocols } 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) ?? [] } 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) } } } /** * 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 { /** * The file name of the certificate. */ // @ApiMember(Description="The file name of the certificate.") // @StringLength(128) public var name:String? /** * 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] = [] required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case name case pin case Description case tags } required public init(from decoder: Decoder) throws { try super.init(from: decoder) let container = try decoder.container(keyedBy: CodingKeys.self) name = try container.decodeIfPresent(String.self, forKey: .name) pin = try container.decodeIfPresent(String.self, forKey: .pin) Description = try container.decodeIfPresent(String.self, forKey: .Description) tags = try container.decodeIfPresent([String].self, forKey: .tags) ?? [] } public override func encode(to encoder: Encoder) throws { try super.encode(to: encoder) var container = encoder.container(keyedBy: CodingKeys.self) if name != nil { try container.encode(name, forKey: .name) } 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) } } } /** * Uniform abbreviations for the federal states or alternative recipients */ 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 } public protocol IDruckRequest { var duplexDruck:Bool? { get set } var protocolPrefix:String? { get set } var fussText:String? { get set } } public protocol IVeschlueselungsRequest { var zertifikat:PortalCertificate? { get set } } /** * Angaben zum Unternehmen */ // @Api(Description="Angaben zum Unternehmen") public class Anschrift : Codable { /** * Der Name des Unternehmers. */ // @ApiMember(Description="Der Name des Unternehmers.", IsRequired=true) public var name:String? /** * Der Adresszusatz des Unternehmers. */ // @ApiMember(Description="Der Adresszusatz des Unternehmers.") public var adresszusatz:String? /** * Der Straßenname des Unternehmers. */ // @ApiMember(Description="Der Straßenname des Unternehmers.", IsRequired=true) public var strasse:String? /** * Die Hausnummer des Unternehmers. */ // @ApiMember(Description="Die Hausnummer des Unternehmers.") public var hausnr:String? /** * Der Hausnummerzusatz des Unternehmers. */ // @ApiMember(Description="Der Hausnummerzusatz des Unternehmers.") public var hausnrzusatz:String? /** * Der Ort des Unternehmers. */ // @ApiMember(Description="Der Ort des Unternehmers.", IsRequired=true) public var ort:String? /** * Die Postleitzahl des Unternehmers. */ // @ApiMember(Description="Die Postleitzahl des Unternehmers.") public var plz:String? /** * Übermittlung des ISO-3166-Alpha-2-Codes des Staates von Unternehmer. */ // @ApiMember(Description="Übermittlung des ISO-3166-Alpha-2-Codes des Staates von Unternehmer.", IsRequired=true) public var staat:String? /** * Die Telefonummer des Unternehmers. */ // @ApiMember(Description="Die Telefonummer des Unternehmers.") public var telefon:String? required public init(){} } /** * Allgemeine Daten */ // @Api(Description="Allgemeine Daten") public class ZmZeilen : Codable { /** * Währung */ // @ApiMember(Description="Währung", IsRequired=true) public var waehrung:Waehrung? /** * Berichtigte Meldung */ // @ApiMember(Description="Berichtigte Meldung", IsRequired=true) public var meldeart:Meldeart? /** * Die in § 18a Absatz 1 Satz 2 UStG enthaltene Regelung nehme ich nicht in Anspruch. Ich gebe die Zusammenfassende Meldung künftig monatlich ab. Diese Anzeige bindet mich bis zum Zeitpunkt des Widerrufs, mindestens aber für die Dauer von 12 Kalendermonaten. */ // @ApiMember(Description="Die in § 18a Absatz 1 Satz 2 UStG enthaltene Regelung nehme ich nicht in Anspruch. Ich gebe die Zusammenfassende Meldung künftig monatlich ab. Diese Anzeige bindet mich bis zum Zeitpunkt des Widerrufs, mindestens aber für die Dauer von 12 Kalendermonaten.", IsRequired=true) public var anzeige:Bool? /** * Widerruf meiner Anzeige nach § 18a Absatz 1 UStG */ // @ApiMember(Description="Widerruf meiner Anzeige nach § 18a Absatz 1 UStG", IsRequired=true) public var widerruf:Bool? /** * Meldungszeitraum */ // @ApiMember(Description="Meldungszeitraum", IsRequired=true) public var mzr:Mzr? /** * Meldungen der Warenlieferungen */ // @ApiMember(Description="Meldungen der Warenlieferungen", IsRequired=true) public var zeilen:[Zeile] = [] required public init(){} } /** * A base base service request to submit content that represents a recapitulative tax declaration for 2026. */ // @Api(Description="A base base service request to submit content that represents a recapitulative tax declaration for 2026.") public class SubmitZm2026Base : IPost, IDruckRequest, IVeschlueselungsRequest, Codable { /** * Inländische Umsatzsteuer-Identifikationsnummer des Meldenden bestehend aus dem Länderkürzel 'DE' gefolgt von exakt 9 Ziffern. */ // @ApiMember(Description="Inländische Umsatzsteuer-Identifikationsnummer des Meldenden bestehend aus dem Länderkürzel 'DE' gefolgt von exakt 9 Ziffern.", IsRequired=true) public var knri:String? /** * Angaben zum Unternehmer */ // @ApiMember(Description="Angaben zum Unternehmer", IsRequired=true) public var anschrift:Anschrift? /** * Allgemeine Daten */ // @ApiMember(Description="Allgemeine Daten", IsRequired=true) public var zmZeilen:ZmZeilen? /** * The details of the provider that submits the tax data. */ // @ApiMember(Description="The details of the provider that submits the tax data.", IsRequired=true) public var datenLieferant:String? /** * 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).") public var fussText:String? /** * The authentification certificate. */ // @ApiMember(Description="The authentification certificate.", IsRequired=true) public var zertifikat:PortalCertificate? required public init(){} } /** * 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 generic file that contains raw data content in bytes */ // @Api(Description="Represents a generic file that contains raw data content in bytes") public class BinaryFile : FileBase { /** * The attributes of the file. */ // @ApiMember(Description="The attributes of the file.") 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.") public var name:String? required public init(){ super.init() } private enum CodingKeys : String, CodingKey { case metadata case name } 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) } 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) } } } /** * 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 in bytes. */ // @ApiMember(Description="The raw data content of the file in bytes.", Name="Content") public var content:[UInt8]? required public init(){} } public protocol ISecuredCertificate { var pin:String? { get set } } /** * Die Art der Währung */ public enum Waehrung : String, Codable { case UNGUELTIG case EUR } /** * Art der Meldung */ public enum Meldeart : Int, Codable { case Nein = 10 case Ja = 11 } /** * Meldungszeitraum */ // @Api(Description="Meldungszeitraum") public class Mzr : Codable { /** * Quartal */ // @ApiMember(Description="Quartal", IsRequired=true) public var quart:Quart? /** * Die 4-stellige Jahreszahl, welche die Veranlagungszeitraum darstellt. */ // @ApiMember(Description="Die 4-stellige Jahreszahl, welche die Veranlagungszeitraum darstellt.", IsRequired=true) public var jahr:Int? required public init(){} } /** * Meldung der Warenlieferungen */ // @Api(Description="Meldung der Warenlieferungen") public class Zeile : Codable { /** * Umsatzart */ // @ApiMember(Description="Umsatzart", IsRequired=true) public var umsatzart:Umsatzart? /** * Umsatzsteuer-Identifikationsnummer des Erwerbers / Unternehmers in einem anderen Mitgliedstaat */ // @ApiMember(Description="Umsatzsteuer-Identifikationsnummer des Erwerbers / Unternehmers in einem anderen Mitgliedstaat", IsRequired=true) public var knre:String? /** * Summe (Euro) */ // @ApiMember(Description="Summe (Euro)", IsRequired=true) public var betrag:GeldBetragOhneCent11EN? 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.") public var name:String? /** * The full path of the directory or file. */ // @ApiMember(Description="The full path of the directory or file.") 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.") public var lastAccessTime:Date? /** * The name of the file. */ // @ApiMember(Description="The name of the file.") 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.") 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.") public var lastWriteTimeUtc:Date? /** * The size, in bytes, of the current file. */ // @ApiMember(Description="The size, in bytes, of the current file.") public var length:Int? /** * The size, in bytes, of the current file. */ // @ApiMember(Description="The size, in bytes, of the current file.") public var userId:Int? /** * The file group id. */ // @ApiMember(Description="The file group id.") 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.") 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.") 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.") 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.") 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.") 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.") 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.") 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.") 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.") public var othersCanWrite:Bool? /** * Extensions to the file attributes. */ // @ApiMember(Description="Extensions to the file attributes.") public var extensions:[String:String] = [:] required public init(){} } /** * Specifies an amount of money without cents with limits and a specialized string representation */ // @Api(Description="Specifies an amount of money without cents with limits and a specialized string representation") public class GrossGeldBetragOhneCent : Codable { /** * The intrinsic currency value. */ // @ApiMember(Description="The intrinsic currency value.") public var wert:Int? required public init(){} } /** * Die Art des Quartals */ public enum Quart : Int, Codable { case Q1 = 1 case Q2 = 2 case Q3 = 3 case Q4 = 4 case JM = 5 case M11 = 11 case M12 = 12 case M13 = 13 case M14 = 14 case M21 = 21 case M22 = 22 case M23 = 23 case M24 = 24 case M25 = 25 case M26 = 26 case M27 = 27 case M28 = 28 case M29 = 29 case M30 = 30 case M31 = 31 case M32 = 32 } /** * Die Art des Umsatzes. */ public enum Umsatzart : String, Codable { case D case L case S } /** * Represents an amount of money without cents whose value has a maximum length of 11 digits. That is, 1 to 11 digits. Minus sign allowed. */ // @Api(Description="Represents an amount of money without cents whose value has a maximum length of 11 digits. That is, 1 to 11 digits. Minus sign allowed.") public class GeldBetragOhneCent11EN : GrossGeldBetragOhneCent { 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 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(){} } /** * Enumeration of valid procedures */ 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 } /** * Enumeration of all valid data types. */ public enum Datenart : String, Codable { case AbrufcodeAntrag case AbrufcodeStorno case AbrufvollmachtAnlage case AbrufvollmachtUpdate case AenderungAdresse case AenderungBankverbindung case Anlage34a case AnpassungVorauszahlung case AntraegeRechteLoeschen case AntraegeUndRechte case AntrAnsaessigkeitBesch case AntragUStVerguetung4a case AStGHZB case Aufzeichnung146a case BauleistungStAbAnmeldung case BauleistungStAbErstattung case Belegnachreichung case BetPG case Bilanz case BSBMitteilung case BZSt2 case C19Mitteilung case DIVADatenBZSt case DivaErgebnisliste case DivaEinwilligungAnlageBRM case DivaEinwilligungFreisch case DivaEinwilligungUpdateBRM case DivaWiderrufBRM case DUeAbmelden case DUeAnmelden case DUeUmmelden case Einspruch case EinspruchNachtrag case EinspruchRuecknahme case ELeVAntragELStAM case ELeVErmaessigung case ELeVGetrenntlebend case ELeVSteuerklassenwechsel case ELeVWiederaufnahmeEhe case ElsterDIVADaten case ElsterDIVDaten case ElsterEPBescheidDaten case ElsterEPMitteilungDaten case ElsterErklaerungDaten case ElsterKMVDaten case ElsterLohnDaten case ElsterLohn2Daten case ElsterVaStDaten case ElsterVollmachtDaten case EPAntwort case EPBescheid case EPKurzmitteilung case EPMitteilung case EPStBescheidAbholung case EPStMitteilungAbholung case Erbschaftsteuer case ESt case EStbeschraenkt case EUER case EUn case FEIN case FLHMitteilung case FZLMitteilung case ForschungZulAntrag case FreistellungKapitalertraegeBV case Fristverlaengerung case FsEVerein case GDBMitteilung case Gewerbemeldung case Gewinnermittlung13aEStG case GewSt case GewStZ case GrundsteuerAendAZ case GrundsteuerAendAZBW case GrundsteuerAendAZBY case GrundsteuerAendAZHE case GrundsteuerAendAZHH case GrundsteuerAendAZNI case GrundsteuerBW case GrundsteuerBY case GrundsteuerHE case GrundsteuerHH case GrundsteuerNI case Grundsteuerwert case IBANMeldung case InvStG51Feststellung case InvStG56Abs5 case KapG case KapGAus case KapEStA case KapEStInvStG case KKVMitteilung case Kontoabfrage case Kontoinformation case KSt case KStAntragEinlagenrueck case KStAntragOptionPersG case KStZ case KStZerlegungVZ case KTTAnmeldungHH case KTTAnzeigeHH case Lohnersatzleistung case LohnersatzMitteilung case LStA case LStB case LStHVDivaAdresseBRM case LStHVVMAnlage case LStHVVMUpdate case LSTMitteilung case MindestStUnternehmenEU case MitteilungAbholung case MVOMitteilung case MVZMitteilung case NEKMitteilung case OGHMitteilung case PersG case PostfachAnfrage case PostfachBestaetigung case PostfachStatus case ProtokollAnforderung case RabeExtDatenhaltungCheck case RabeExtDatenhaltungPflege case Registrierung case Schenkungsteuer case SonstigeNachrichten case SpezRechtAntrag case SpezRechtFreischaltung case SpezRechtListe case SpezRechtStorno case SpezRechtTeilnahme case StAbS50a case Statusabfrage case StundungAntrag case UENSTAnmeldungBE case UENSTAnzeigeBE case UnentgeltlicheDepotuebertragung case USt case UStAKfzEinzel case UStDV case UStSV case UStVA case VAGMitteilung case VermoegenswirksameLeistung case VGNAnmeldungBE case VGNAnmeldungHB case VGNAnmeldungHH case VGNAnzeigeBE case VGNAnzeigeHH case VMErgebnisListeVNSicht case VMoVMVFreischaltung case VMoVMVStBAnlage case VMoVMVStBUpdate case VMWiderruf case VNoVMVLoeschung case VNoVMVRegistrierung case VNoVMVUpdate case VollfAAnlage case VollfAUpdate case VollmachtDetails case WTBAnmeldungHB case ZMDO case Zuwendungsbestaetigung } /** * Main information whether the data was authenticated (send-Auth) or not (send-NoSig) */ public enum Vorgang : String, Codable { case Send_Auth case Send_Auth_Part case Send_NoSig } /** * Marking of the data delivery whether it is a test case, applies to the entire data delivery. A real case does not contain this element. A test case must be marked with a test marker so that it is not processed like a real case. If the data was only sent for testing the frontend, it does not need to be processed further. */ 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 { /** * The content of the data. Currently supported: Raw XML (text), XElement or IXmlSerializable */ // @ApiMember(Description="The content of the data. Currently supported: Raw XML (text), XElement or IXmlSerializable") public var inhalt:String? 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.", IsRequired=true) public var id:String? /** * The destination of the receiver. */ // @ApiMember(Description="The destination of the receiver.", IsRequired=true) 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 } } /** * Encryption protocol. Different encryption types may be used, a distinction is necessary here to control the correct decryption tool. With which encryption type were the contents of the elements 'DatenLieferant' and possibly 'SigUser' in the TransferHeader and the element 'DatenTeil' encrypted */ 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 } /** * With which compression the contents of the elements 'DatenLieferant' and possibly 'SigUser' in the TransferHeader and the element DatenTeil were compressed. */ 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 { /** * The content of the tax data. This varies by tax declaration. Currently supported formats: Raw XML (text), XElement, and IXmlSerializable */ // @ApiMember(Description="The content of the tax data. This varies by tax declaration. Currently supported formats: Raw XML (text), XElement, and IXmlSerializable", IsRequired=true) public var inhalt:String? required public init(){} } /** * [Documentation unavailable] */ // @Api(Description="[Documentation unavailable]") public class EricTyp : Codable { /** * The content of the data. Currently supported: Raw XML (text), XmlElement, XElement or IXmlSerializable */ // @ApiMember(Description="The content of the data. Currently supported: Raw XML (text), XmlElement, XElement or IXmlSerializable") public var inhalt:String? 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 } /** * 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) } } }