POST | /async/elma/dac6/protocols/retrieve |
---|
import 'package:servicestack/servicestack.dart';
import 'dart:typed_data';
enum Verfahren
{
CC,
CS,
DC,
FC,
FS,
FA,
KM,
}
/**
* Represent parameters to search or filter on submissions.
*/
// @Api(Description="Represent parameters to search or filter on submissions. ")
class SearchCriteria implements IConvertible
{
/**
* Full or partial name of the item (report or protocol) to search.
*/
// @ApiMember(Description="Full or partial name of the item (report or protocol) to search.", Name="Name")
String? name;
/**
* TThe ELMA product designation.
*/
// @ApiMember(Description="TThe ELMA product designation.", Name="Designation")
Verfahren? designation;
SearchCriteria({this.name,this.designation});
SearchCriteria.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
designation = JsonConverters.fromJson(json['designation'],'Verfahren',context!);
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'designation': JsonConverters.toJson(designation,'Verfahren',context!)
};
getTypeName() => "SearchCriteria";
TypeContext? context = _ctx;
}
/**
* Represents a PEM-encoded certificate.
*/
// @Api(Description="Represents a PEM-encoded certificate.")
class PemCertificate implements IConvertible
{
/**
* The unique identifier (e.g. the file name) of the certificate.
*/
// @ApiMember(Description="The unique identifier (e.g. the file name) of the certificate.", IsRequired=true, Name="Id")
String? id;
/**
* The PEM-encoded content of the certificate.
*/
// @ApiMember(Description="The PEM-encoded content of the certificate.", IsRequired=true, Name="Content")
String? content;
/**
* The description of the certificate.
*/
// @ApiMember(Description="The description of the certificate.", Name="Description")
String? description;
/**
* Tags to label or identify the certificate.
*/
// @ApiMember(Description="Tags to label or identify the certificate.", Name="Tags")
List<String>? tags;
PemCertificate({this.id,this.content,this.description,this.tags});
PemCertificate.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
content = json['content'];
description = json['description'];
tags = JsonConverters.fromJson(json['tags'],'List<String>',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'content': content,
'description': description,
'tags': JsonConverters.toJson(tags,'List<String>',context!)
};
getTypeName() => "PemCertificate";
TypeContext? context = _ctx;
}
/**
* Represents the credentials of a user to authenticate the access of an ELMA server.
*/
// @Api(Description="Represents the credentials of a user to authenticate the access of an ELMA server.")
class ElmaCredential implements IElmaCredential, IConvertible
{
/**
* The unique identifier of this instance. This identifer is only relevant in the context of data storage and retrieval.
*/
// @ApiMember(Description="The unique identifier of this instance. This identifer is only relevant in the context of data storage and retrieval.", IsRequired=true, Name="Id")
String? id;
/**
* The security certificate to authenticate the user and grant access to the ELMA server. This certificate is generated from the BZSt-issued *.pfx BOP certificate. More details on BOP (BZSt-Online Portal - https://www.elster.de/bportal/start)
*/
// @ApiMember(Description="The security certificate to authenticate the user and grant access to the ELMA server. This certificate is generated from the BZSt-issued *.pfx BOP certificate. More details on BOP (BZSt-Online Portal - https://www.elster.de/bportal/start)", IsRequired=true, Name="Certificate")
// @required()
// @StringLength(2147483647)
PemCertificate? certificate;
/**
* The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under "My BOP" under the "Registration Information"
*/
// @ApiMember(Description="The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under \"My BOP\" under the \"Registration Information\"", IsRequired=true, Name="AuthSteuernummer")
// @required()
// @StringLength(11)
String? authSteuernummer;
/**
* The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).
*/
// @ApiMember(Description="The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).", IsRequired=true, Name="AccountId")
// @required()
// @StringLength(10)
String? accountId;
/**
* The password to protect the certificate from unauthorized access.
*/
// @ApiMember(Description="The password to protect the certificate from unauthorized access.", IsRequired=true, Name="Password")
String? password;
ElmaCredential({this.id,this.certificate,this.authSteuernummer,this.accountId,this.password});
ElmaCredential.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
certificate = JsonConverters.fromJson(json['certificate'],'PemCertificate',context!);
authSteuernummer = json['authSteuernummer'];
accountId = json['accountId'];
password = json['password'];
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'certificate': JsonConverters.toJson(certificate,'PemCertificate',context!),
'authSteuernummer': authSteuernummer,
'accountId': accountId,
'password': password
};
getTypeName() => "ElmaCredential";
TypeContext? context = _ctx;
}
/**
* Specifies a request to retrieve DAC6 protocols.
*/
// @Api(Description="Specifies a request to retrieve DAC6 protocols.")
abstract class RetrieveDac6ProtocolsBase implements IPost, IAuthenticateRequest, IStageableRequest, ISearchRequest
{
/**
* The parameters to search for protocols.
*/
// @ApiMember(Description="The parameters to search for protocols.", IsRequired=true, Name="SearchCriteria")
SearchCriteria? searchCriteria;
/**
* The credential to gain access on the ELMA server.
*/
// @ApiMember(Description="The credential to gain access on the ELMA server.", IsRequired=true, Name="Credential")
ElmaCredential? credential;
/**
* Should operations be staged on the ELMA server? true: operations are executed on the Test ELMA server. false: operations are executed on the Live (Production) ELMA server.
*/
// @ApiMember(Description="Should operations be staged on the ELMA server? true: operations are executed on the Test ELMA server. false: operations are executed on the Live (Production) ELMA server.", Name="StagingEnabled")
bool? stagingEnabled;
RetrieveDac6ProtocolsBase({this.searchCriteria,this.credential,this.stagingEnabled});
RetrieveDac6ProtocolsBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
searchCriteria = JsonConverters.fromJson(json['searchCriteria'],'SearchCriteria',context!);
credential = JsonConverters.fromJson(json['credential'],'ElmaCredential',context!);
stagingEnabled = json['stagingEnabled'];
return this;
}
Map<String, dynamic> toJson() => {
'searchCriteria': JsonConverters.toJson(searchCriteria,'SearchCriteria',context!),
'credential': JsonConverters.toJson(credential,'ElmaCredential',context!),
'stagingEnabled': stagingEnabled
};
getTypeName() => "RetrieveDac6ProtocolsBase";
TypeContext? context = _ctx;
}
enum DatenArt
{
ELMA_CC,
ELMA_CCRM,
ELMA_CRS,
ELMA_CRSRM,
ELMA_DC,
ELMA_DCRM,
ELMA_FC,
ELMA_FCRM,
}
enum Verarbeitungslauf
{
PRODUKTIONSLAUF,
TESTLAUF,
}
/**
* Represents the header of an ELMA communication section.
*/
// @Api(Description="Represents the header of an ELMA communication section.")
class ElmaHeader implements IConvertible
{
/**
* The process-specific report type of an ELMA document.It distinguishes by the type of input.
*/
// @ApiMember(Description="The process-specific report type of an ELMA document.It distinguishes by the type of input.", IsRequired=true, Name="DatenArt")
DatenArt? datenArt;
/**
* The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under "My BOP" under the "Registration Information"
*/
// @ApiMember(Description="The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under \"My BOP\" under the \"Registration Information\"", IsRequired=true, Name="AuthSteuernummer")
String? authSteuernummer;
/**
* The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).
*/
// @ApiMember(Description="The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).", IsRequired=true, Name="AccountId")
String? accountId;
/**
* The time of creation.Corresponds to the time, at which the user created a file.
*/
// @ApiMember(Description="The time of creation.Corresponds to the time, at which the user created a file.", Name="ErstellungsDatum")
DateTime? erstellungsDatum;
/**
* User custom ID.This field can be filled with internal reference information of the user.
*/
// @ApiMember(Description="User custom ID.This field can be filled with internal reference information of the user.", Name="KundeneigeneId")
String? kundeneigeneId;
/**
* Data transfer identifier.Hexadecimal formatted number. Example: 550e8400-e29b-11d4-a716-446655440000
*/
// @ApiMember(Description="Data transfer identifier.Hexadecimal formatted number. Example: 550e8400-e29b-11d4-a716-446655440000", Name="UUID")
String? uuid;
/**
* Distinguishes between test and live data transfer.
*/
// @ApiMember(Description="Distinguishes between test and live data transfer.", Name="Verarbeitungslauf")
Verarbeitungslauf? verarbeitungslauf;
ElmaHeader({this.datenArt,this.authSteuernummer,this.accountId,this.erstellungsDatum,this.kundeneigeneId,this.uuid,this.verarbeitungslauf});
ElmaHeader.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
datenArt = JsonConverters.fromJson(json['datenArt'],'DatenArt',context!);
authSteuernummer = json['authSteuernummer'];
accountId = json['accountId'];
erstellungsDatum = JsonConverters.fromJson(json['erstellungsDatum'],'DateTime',context!);
kundeneigeneId = json['kundeneigeneId'];
uuid = json['uuid'];
verarbeitungslauf = JsonConverters.fromJson(json['verarbeitungslauf'],'Verarbeitungslauf',context!);
return this;
}
Map<String, dynamic> toJson() => {
'datenArt': JsonConverters.toJson(datenArt,'DatenArt',context!),
'authSteuernummer': authSteuernummer,
'accountId': accountId,
'erstellungsDatum': JsonConverters.toJson(erstellungsDatum,'DateTime',context!),
'kundeneigeneId': kundeneigeneId,
'uuid': uuid,
'verarbeitungslauf': JsonConverters.toJson(verarbeitungslauf,'Verarbeitungslauf',context!)
};
getTypeName() => "ElmaHeader";
TypeContext? context = _ctx;
}
class ElmaVerfahren implements IConvertible
{
/**
* The content of process-specific definition.
*/
// @ApiMember(Description="The content of process-specific definition.", Name="Inhalt")
dynamic? inhalt;
ElmaVerfahren({this.inhalt});
ElmaVerfahren.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
inhalt = JsonConverters.fromJson(json['inhalt'],'dynamic',context!);
return this;
}
Map<String, dynamic> toJson() => {
'inhalt': JsonConverters.toJson(inhalt,'dynamic',context!)
};
getTypeName() => "ElmaVerfahren";
TypeContext? context = _ctx;
}
/**
* Represents the communication section of an ELMA report document.
*/
// @Api(Description="Represents the communication section of an ELMA report document.")
class ElmaKom implements IConvertible
{
/**
* The version number of the ELMAKOM definition.
*/
// @ApiMember(Description="The version number of the ELMAKOM definition.", IsRequired=true, Name="ElmakomVersion")
String? elmakomVersion;
/**
* The header part of the ELMAKOM definition.
*/
// @ApiMember(Description="The header part of the ELMAKOM definition.", IsRequired=true, Name="ElmaHeader")
ElmaHeader? elmaHeader;
/**
* The process part of the ELMAKOM definition.
*/
// @ApiMember(Description="The process part of the ELMAKOM definition.", IsRequired=true, Name="ElmaVerfahren")
ElmaVerfahren? elmaVerfahren;
ElmaKom({this.elmakomVersion,this.elmaHeader,this.elmaVerfahren});
ElmaKom.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
elmakomVersion = json['elmakomVersion'];
elmaHeader = JsonConverters.fromJson(json['elmaHeader'],'ElmaHeader',context!);
elmaVerfahren = JsonConverters.fromJson(json['elmaVerfahren'],'ElmaVerfahren',context!);
return this;
}
Map<String, dynamic> toJson() => {
'elmakomVersion': elmakomVersion,
'elmaHeader': JsonConverters.toJson(elmaHeader,'ElmaHeader',context!),
'elmaVerfahren': JsonConverters.toJson(elmaVerfahren,'ElmaVerfahren',context!)
};
getTypeName() => "ElmaKom";
TypeContext? context = _ctx;
}
enum Status
{
ELMA_GLOBAL_UNBEKANNT,
ELMA_OK,
ELMA_PARSER_FEHLER,
ELMA_UNGUELTIGE_KODIERUNG,
ELMA_UNGUELTIGE_DATEINAME,
ELMA_FALSCHE_BZSTNR_ODER_ACCOUNTID,
ELMA_SIGNATUR_DATEI_FEHLT,
ELMA_SIGNATUR_PRUEFUNG_FEHLERHAFT,
ELMA_NOTWENDIGE_FACHLICHE_BERECHTIGUNGEN_FEHLEN,
ELMA_FREISCHALTUNG_FEHLT,
ELMA_SPERRE_VORHANDEN,
ELMA_DATEINAME_BEREITS_VERWENDET,
ELMA_DATEIINHALT_IDENTISCH,
ELMA_BZSTNR_ODER_ACCOUNTID_STIMMT_NICHT_UBEREIN,
ELMA_TESTDATEN,
}
/**
* Represents an ELMA protocol report, which the ELMA servers return after a formal verification of a submitted ELMA report.
*/
// @Api(Description="Represents an ELMA protocol report, which the ELMA servers return after a formal verification of a submitted ELMA report.")
class ElmaProtokoll implements IConvertible
{
/**
* File name of the processed input ELMA report.
*/
// @ApiMember(Description="File name of the processed input ELMA report.", Name="Dateiname")
String? dateiname;
/**
* The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under "My BOP" under the "Registration Information"
*/
// @ApiMember(Description="The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under \"My BOP\" under the \"Registration Information\"", IsRequired=true, Name="AuthSteuernummer")
String? authSteuernummer;
/**
* The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).
*/
// @ApiMember(Description="The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).", IsRequired=true, Name="AccountId")
String? accountId;
/**
* Date on which the request was processed by ELAN (ELMA receiving server at BZSt).
*/
// @ApiMember(Description="Date on which the request was processed by ELAN (ELMA receiving server at BZSt).", Name="VerarbeitungsDatum")
DateTime? verarbeitungsDatum;
/**
* Time of processing by ELAN (ELMA receiving server at BZSt).
*/
// @ApiMember(Description="Time of processing by ELAN (ELMA receiving server at BZSt).", Name="VerarbeitungsZeit")
DateTime? verarbeitungsZeit;
/**
* The status code of the ELMA process.
*/
// @ApiMember(Description="The status code of the ELMA process.", Name="Status")
Status? status;
/**
* A brief description of the status.
*/
// @ApiMember(Description="A brief description of the status.", Name="StatusText")
String? statusText;
/**
* A detailed information on the status.
*/
// @ApiMember(Description="A detailed information on the status.", Name="StatusDetail")
String? statusDetail;
/**
* User custom ID.This field can be filled with internal reference information of the user.
*/
// @ApiMember(Description="User custom ID.This field can be filled with internal reference information of the user.", Name="KundeneigeneId")
String? kundeneigeneId;
/**
* Data transfer identifier.Hexadecimal formatted number. Example: 550e8400-e29b-11d4-a716-446655440000
*/
// @ApiMember(Description="Data transfer identifier.Hexadecimal formatted number. Example: 550e8400-e29b-11d4-a716-446655440000", Name="UUID")
String? uuid;
ElmaProtokoll({this.dateiname,this.authSteuernummer,this.accountId,this.verarbeitungsDatum,this.verarbeitungsZeit,this.status,this.statusText,this.statusDetail,this.kundeneigeneId,this.uuid});
ElmaProtokoll.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
dateiname = json['dateiname'];
authSteuernummer = json['authSteuernummer'];
accountId = json['accountId'];
verarbeitungsDatum = JsonConverters.fromJson(json['verarbeitungsDatum'],'DateTime',context!);
verarbeitungsZeit = JsonConverters.fromJson(json['verarbeitungsZeit'],'DateTime',context!);
status = JsonConverters.fromJson(json['status'],'Status',context!);
statusText = json['statusText'];
statusDetail = json['statusDetail'];
kundeneigeneId = json['kundeneigeneId'];
uuid = json['uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'dateiname': dateiname,
'authSteuernummer': authSteuernummer,
'accountId': accountId,
'verarbeitungsDatum': JsonConverters.toJson(verarbeitungsDatum,'DateTime',context!),
'verarbeitungsZeit': JsonConverters.toJson(verarbeitungsZeit,'DateTime',context!),
'status': JsonConverters.toJson(status,'Status',context!),
'statusText': statusText,
'statusDetail': statusDetail,
'kundeneigeneId': kundeneigeneId,
'uuid': uuid
};
getTypeName() => "ElmaProtokoll";
TypeContext? context = _ctx;
}
/**
* Represents an ELMA protocol report, which the ELMA servers return after a formal verification of a submitted ELMA report.
*/
// @Api(Description="Represents an ELMA protocol report, which the ELMA servers return after a formal verification of a submitted ELMA report.")
class ElmaFehler implements IConvertible
{
/**
* File name of the processed input ELMA report.
*/
// @ApiMember(Description="File name of the processed input ELMA report.", Name="Dateiname")
String? dateiname;
/**
* The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under "My BOP" under the "Registration Information"
*/
// @ApiMember(Description="The BZSt (Bundeszentralamt für Steuern) - tax number of the user. 11-character text field that may only consist of two capital letters and 9 digits (0-9). The fiscal authority BZSt provides this number during registration at the BOP (BZSt-Online Portal - https://www.elster.de/bportal/start). The number is available in the private area of the BOP user account under \"My BOP\" under the \"Registration Information\"", IsRequired=true, Name="AuthSteuernummer")
String? authSteuernummer;
/**
* The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).
*/
// @ApiMember(Description="The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).", IsRequired=true, Name="AccountId")
String? accountId;
/**
* Date on which the request was processed by ELAN (ELMA receiving server at BZSt).
*/
// @ApiMember(Description="Date on which the request was processed by ELAN (ELMA receiving server at BZSt).", Name="VerarbeitungsDatum")
DateTime? verarbeitungsDatum;
/**
* Time of processing by ELAN (ELMA receiving server at BZSt).
*/
// @ApiMember(Description="Time of processing by ELAN (ELMA receiving server at BZSt).", Name="VerarbeitungsZeit")
DateTime? verarbeitungsZeit;
/**
* The status code of the ELMA process.
*/
// @ApiMember(Description="The status code of the ELMA process.", Name="FehlerID")
Status? fehlerID;
/**
* A brief description of the error status.
*/
// @ApiMember(Description="A brief description of the error status.", Name="FehlerText")
String? fehlerText;
/**
* A detailed information on the status.
*/
// @ApiMember(Description="A detailed information on the status.", Name="FehlerProzess")
String? fehlerProzess;
/**
* User custom ID.This field can be filled with internal reference information of the user.
*/
// @ApiMember(Description="User custom ID.This field can be filled with internal reference information of the user.", Name="KundeneigeneId")
String? kundeneigeneId;
/**
* Data transfer identifier.Hexadecimal formatted number. Example: 550e8400-e29b-11d4-a716-446655440000
*/
// @ApiMember(Description="Data transfer identifier.Hexadecimal formatted number. Example: 550e8400-e29b-11d4-a716-446655440000", Name="UUID")
String? uuid;
ElmaFehler({this.dateiname,this.authSteuernummer,this.accountId,this.verarbeitungsDatum,this.verarbeitungsZeit,this.fehlerID,this.fehlerText,this.fehlerProzess,this.kundeneigeneId,this.uuid});
ElmaFehler.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
dateiname = json['dateiname'];
authSteuernummer = json['authSteuernummer'];
accountId = json['accountId'];
verarbeitungsDatum = JsonConverters.fromJson(json['verarbeitungsDatum'],'DateTime',context!);
verarbeitungsZeit = JsonConverters.fromJson(json['verarbeitungsZeit'],'DateTime',context!);
fehlerID = JsonConverters.fromJson(json['fehlerID'],'Status',context!);
fehlerText = json['fehlerText'];
fehlerProzess = json['fehlerProzess'];
kundeneigeneId = json['kundeneigeneId'];
uuid = json['uuid'];
return this;
}
Map<String, dynamic> toJson() => {
'dateiname': dateiname,
'authSteuernummer': authSteuernummer,
'accountId': accountId,
'verarbeitungsDatum': JsonConverters.toJson(verarbeitungsDatum,'DateTime',context!),
'verarbeitungsZeit': JsonConverters.toJson(verarbeitungsZeit,'DateTime',context!),
'fehlerID': JsonConverters.toJson(fehlerID,'Status',context!),
'fehlerText': fehlerText,
'fehlerProzess': fehlerProzess,
'kundeneigeneId': kundeneigeneId,
'uuid': uuid
};
getTypeName() => "ElmaFehler";
TypeContext? context = _ctx;
}
/**
* Represents an ELMA report document.
*/
// @Api(Description="Represents an ELMA report document.")
class Elma implements IConvertible
{
/**
* The unique identifier of this instance. This identifer is only relevant in the context of data storage and retrieval.
*/
// @ApiMember(Description="The unique identifier of this instance. This identifer is only relevant in the context of data storage and retrieval.", IsRequired=true, Name="Id")
String? id;
/**
* The location of the XML Schema to use for the root namespace.
*/
// @ApiMember(Description="The location of the XML Schema to use for the root namespace.", Name="SchemaLocation")
String? schemaLocation;
/**
* The type of reporting process.
*/
// @ApiMember(Description="The type of reporting process.", IsRequired=true, Name="Verfahren")
Verfahren? verfahren;
/**
* The communication section of the ELMA report document.
*/
// @ApiMember(Description="The communication section of the ELMA report document.", IsRequired=true, Name="ElmaKom")
ElmaKom? elmaKom;
/**
* The communication section of the ELMA report document.
*/
// @ApiMember(Description="The communication section of the ELMA report document.", Name="ElmaProtokoll")
ElmaProtokoll? elmaProtokoll;
/**
* The communication section of the ELMA report document.
*/
// @ApiMember(Description="The communication section of the ELMA report document.", Name="ElmaFehler")
ElmaFehler? elmaFehler;
Elma({this.id,this.schemaLocation,this.verfahren,this.elmaKom,this.elmaProtokoll,this.elmaFehler});
Elma.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
id = json['id'];
schemaLocation = json['schemaLocation'];
verfahren = JsonConverters.fromJson(json['verfahren'],'Verfahren',context!);
elmaKom = JsonConverters.fromJson(json['elmaKom'],'ElmaKom',context!);
elmaProtokoll = JsonConverters.fromJson(json['elmaProtokoll'],'ElmaProtokoll',context!);
elmaFehler = JsonConverters.fromJson(json['elmaFehler'],'ElmaFehler',context!);
return this;
}
Map<String, dynamic> toJson() => {
'id': id,
'schemaLocation': schemaLocation,
'verfahren': JsonConverters.toJson(verfahren,'Verfahren',context!),
'elmaKom': JsonConverters.toJson(elmaKom,'ElmaKom',context!),
'elmaProtokoll': JsonConverters.toJson(elmaProtokoll,'ElmaProtokoll',context!),
'elmaFehler': JsonConverters.toJson(elmaFehler,'ElmaFehler',context!)
};
getTypeName() => "Elma";
TypeContext? context = _ctx;
}
/**
* Represents a base class for a file with raw data.
*/
// @Api(Description="Represents a base class for a file with raw data.")
abstract class FileBase
{
/**
* The raw data content of the file.
*/
// @ApiMember(Description="The raw data content of the file.", Name="Content")
Uint8List? content;
FileBase({this.content});
FileBase.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
content = JsonConverters.fromJson(json['content'],'Uint8List',context!);
return this;
}
Map<String, dynamic> toJson() => {
'content': JsonConverters.toJson(content,'Uint8List',context!)
};
getTypeName() => "FileBase";
TypeContext? context = _ctx;
}
/**
* Represents information about a file or directory.
*/
// @Api(Description="Represents information about a file or directory.")
class FileMetadata implements IFileMetadata, IConvertible
{
/**
* 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")
String? name;
/**
* The full path of the directory or file.
*/
// @ApiMember(Description="The full path of the directory or file.", Name="FullName")
String? fullName;
/**
* The time the current file or directory was last accessed.
*/
// @ApiMember(Description="The time the current file or directory was last accessed.", Name="LastAccessTime")
DateTime? lastAccessTime;
/**
* The name of the file.
*/
// @ApiMember(Description="The name of the file.", Name="LastAccessTimeUtc")
DateTime? lastAccessTimeUtc;
/**
* 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")
DateTime? lastWriteTime;
/**
* 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")
DateTime? lastWriteTimeUtc;
/**
* The size, in bytes, of the current file.
*/
// @ApiMember(Description="The size, in bytes, of the current file.", Name="Length")
int? length;
/**
* The size, in bytes, of the current file.
*/
// @ApiMember(Description="The size, in bytes, of the current file.", Name="UserId")
int? userId;
/**
* The file group id.
*/
// @ApiMember(Description="The file group id.", Name="GroupId")
int? groupId;
/**
* 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")
bool? othersCanRead;
/**
* 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")
bool? groupCanExecute;
/**
* 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")
bool? groupCanWrite;
/**
* 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")
bool? groupCanRead;
/**
* 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")
bool? ownerCanExecute;
/**
* 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")
bool? ownerCanWrite;
/**
* 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")
bool? ownerCanRead;
/**
* 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")
bool? othersCanExecute;
/**
* 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")
bool? othersCanWrite;
/**
* Extensions to the file attributes.
*/
// @ApiMember(Description="Extensions to the file attributes.", Name="Extensions")
Map<String,String?>? extensions;
FileMetadata({this.name,this.fullName,this.lastAccessTime,this.lastAccessTimeUtc,this.lastWriteTime,this.lastWriteTimeUtc,this.length,this.userId,this.groupId,this.othersCanRead,this.groupCanExecute,this.groupCanWrite,this.groupCanRead,this.ownerCanExecute,this.ownerCanWrite,this.ownerCanRead,this.othersCanExecute,this.othersCanWrite,this.extensions});
FileMetadata.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
name = json['name'];
fullName = json['fullName'];
lastAccessTime = JsonConverters.fromJson(json['lastAccessTime'],'DateTime',context!);
lastAccessTimeUtc = JsonConverters.fromJson(json['lastAccessTimeUtc'],'DateTime',context!);
lastWriteTime = JsonConverters.fromJson(json['lastWriteTime'],'DateTime',context!);
lastWriteTimeUtc = JsonConverters.fromJson(json['lastWriteTimeUtc'],'DateTime',context!);
length = json['length'];
userId = json['userId'];
groupId = json['groupId'];
othersCanRead = json['othersCanRead'];
groupCanExecute = json['groupCanExecute'];
groupCanWrite = json['groupCanWrite'];
groupCanRead = json['groupCanRead'];
ownerCanExecute = json['ownerCanExecute'];
ownerCanWrite = json['ownerCanWrite'];
ownerCanRead = json['ownerCanRead'];
othersCanExecute = json['othersCanExecute'];
othersCanWrite = json['othersCanWrite'];
extensions = JsonConverters.toStringMap(json['extensions']);
return this;
}
Map<String, dynamic> toJson() => {
'name': name,
'fullName': fullName,
'lastAccessTime': JsonConverters.toJson(lastAccessTime,'DateTime',context!),
'lastAccessTimeUtc': JsonConverters.toJson(lastAccessTimeUtc,'DateTime',context!),
'lastWriteTime': JsonConverters.toJson(lastWriteTime,'DateTime',context!),
'lastWriteTimeUtc': JsonConverters.toJson(lastWriteTimeUtc,'DateTime',context!),
'length': length,
'userId': userId,
'groupId': groupId,
'othersCanRead': othersCanRead,
'groupCanExecute': groupCanExecute,
'groupCanWrite': groupCanWrite,
'groupCanRead': groupCanRead,
'ownerCanExecute': ownerCanExecute,
'ownerCanWrite': ownerCanWrite,
'ownerCanRead': ownerCanRead,
'othersCanExecute': othersCanExecute,
'othersCanWrite': othersCanWrite,
'extensions': extensions
};
getTypeName() => "FileMetadata";
TypeContext? context = _ctx;
}
/**
* Represents a file that contains raw data content in bytes
*/
// @Api(Description="Represents a file that contains raw data content in bytes")
class BinaryFile extends FileBase implements IConvertible
{
/**
* The attributes of the file.
*/
// @ApiMember(Description="The attributes of the file.", Name="Metadata")
FileMetadata? metadata;
/**
* 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")
String? name;
BinaryFile({this.metadata,this.name});
BinaryFile.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
metadata = JsonConverters.fromJson(json['metadata'],'FileMetadata',context!);
name = json['name'];
return this;
}
Map<String, dynamic> toJson() => super.toJson()..addAll({
'metadata': JsonConverters.toJson(metadata,'FileMetadata',context!),
'name': name
});
getTypeName() => "BinaryFile";
TypeContext? context = _ctx;
}
/**
* Encapsulates the results of a protocol retrieval operation.
*/
// @Api(Description="Encapsulates the results of a protocol retrieval operation.")
class RetrievalResponse implements IConvertible
{
/**
* Processing logs that indicate the status of submitted reports.
*/
// @ApiMember(Description="Processing logs that indicate the status of submitted reports.", Name="Protocols")
List<Elma>? protocols;
/**
* Other artefacts including the auxillary files from the BZSt.
*/
// @ApiMember(Description="Other artefacts including the auxillary files from the BZSt.", Name="Files")
List<BinaryFile>? files;
/**
* The status of the response.
*/
// @ApiMember(Description="The status of the response.", Name="ResponseStatus")
ResponseStatus? responseStatus;
RetrievalResponse({this.protocols,this.files,this.responseStatus});
RetrievalResponse.fromJson(Map<String, dynamic> json) { fromMap(json); }
fromMap(Map<String, dynamic> json) {
protocols = JsonConverters.fromJson(json['protocols'],'List<Elma>',context!);
files = JsonConverters.fromJson(json['files'],'List<BinaryFile>',context!);
responseStatus = JsonConverters.fromJson(json['responseStatus'],'ResponseStatus',context!);
return this;
}
Map<String, dynamic> toJson() => {
'protocols': JsonConverters.toJson(protocols,'List<Elma>',context!),
'files': JsonConverters.toJson(files,'List<BinaryFile>',context!),
'responseStatus': JsonConverters.toJson(responseStatus,'ResponseStatus',context!)
};
getTypeName() => "RetrievalResponse";
TypeContext? context = _ctx;
}
/**
* Represents a request to retrieve DAC6 protocols in an asynchronous operation.
*/
// @Api(Description="Represents a request to retrieve DAC6 protocols in an asynchronous operation.")
class RetrieveDac6ProtocolsAsync extends RetrieveDac6ProtocolsBase implements IConvertible
{
RetrieveDac6ProtocolsAsync();
RetrieveDac6ProtocolsAsync.fromJson(Map<String, dynamic> json) : super.fromJson(json);
fromMap(Map<String, dynamic> json) {
super.fromMap(json);
return this;
}
Map<String, dynamic> toJson() => super.toJson();
getTypeName() => "RetrieveDac6ProtocolsAsync";
TypeContext? context = _ctx;
}
TypeContext _ctx = TypeContext(library: 'reportfiling.staging.pwc.de', types: <String, TypeInfo> {
'Verfahren': TypeInfo(TypeOf.Enum, enumValues:Verfahren.values),
'SearchCriteria': TypeInfo(TypeOf.Class, create:() => SearchCriteria()),
'PemCertificate': TypeInfo(TypeOf.Class, create:() => PemCertificate()),
'ElmaCredential': TypeInfo(TypeOf.Class, create:() => ElmaCredential()),
'RetrieveDac6ProtocolsBase': TypeInfo(TypeOf.AbstractClass),
'DatenArt': TypeInfo(TypeOf.Enum, enumValues:DatenArt.values),
'Verarbeitungslauf': TypeInfo(TypeOf.Enum, enumValues:Verarbeitungslauf.values),
'ElmaHeader': TypeInfo(TypeOf.Class, create:() => ElmaHeader()),
'ElmaVerfahren': TypeInfo(TypeOf.Class, create:() => ElmaVerfahren()),
'ElmaKom': TypeInfo(TypeOf.Class, create:() => ElmaKom()),
'Status': TypeInfo(TypeOf.Enum, enumValues:Status.values),
'ElmaProtokoll': TypeInfo(TypeOf.Class, create:() => ElmaProtokoll()),
'ElmaFehler': TypeInfo(TypeOf.Class, create:() => ElmaFehler()),
'Elma': TypeInfo(TypeOf.Class, create:() => Elma()),
'FileBase': TypeInfo(TypeOf.AbstractClass),
'Uint8List': TypeInfo(TypeOf.Class, create:() => Uint8List(0)),
'FileMetadata': TypeInfo(TypeOf.Class, create:() => FileMetadata()),
'BinaryFile': TypeInfo(TypeOf.Class, create:() => BinaryFile()),
'RetrievalResponse': TypeInfo(TypeOf.Class, create:() => RetrievalResponse()),
'List<Elma>': TypeInfo(TypeOf.Class, create:() => <Elma>[]),
'List<BinaryFile>': TypeInfo(TypeOf.Class, create:() => <BinaryFile>[]),
'RetrieveDac6ProtocolsAsync': TypeInfo(TypeOf.Class, create:() => RetrieveDac6ProtocolsAsync()),
});
Dart RetrieveDac6ProtocolsAsync DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .xml suffix or ?format=xml
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /async/elma/dac6/protocols/retrieve HTTP/1.1
Host: reportfiling.staging.pwc.de
Accept: application/xml
Content-Type: application/xml
Content-Length: length
<RetrieveDac6ProtocolsAsync xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PwC.Elmaas.Core.Services.Contracts.Dac6.Requests">
<Credential xmlns:d2p1="http://schemas.datacontract.org/2004/07/PwC.Elmaas.Core.Domain.Concretes.Models">
<d2p1:AccountId>String</d2p1:AccountId>
<d2p1:AuthSteuernummer>String</d2p1:AuthSteuernummer>
<d2p1:Certificate xmlns:d3p1="http://schemas.datacontract.org/2004/07/PwC.Elmaas.Core.Domain.Contracts.Models">
<d3p1:Content>String</d3p1:Content>
<d3p1:Description>String</d3p1:Description>
<d3p1:Id>String</d3p1:Id>
<d3p1:Tags xmlns:d4p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays">
<d4p1:string>String</d4p1:string>
</d3p1:Tags>
</d2p1:Certificate>
<d2p1:Password>String</d2p1:Password>
</Credential>
<SearchCriteria xmlns:d2p1="http://schemas.datacontract.org/2004/07/PwC.Elmaas.Core.Services.Contracts.Requests">
<d2p1:Designation>CC</d2p1:Designation>
<d2p1:Name>String</d2p1:Name>
</SearchCriteria>
<StagingEnabled>false</StagingEnabled>
</RetrieveDac6ProtocolsAsync>
HTTP/1.1 200 OK Content-Type: application/xml Content-Length: length <RetrievalResponse xmlns:i="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://schemas.datacontract.org/2004/07/PwC.Elmaas.Core.Services.Contracts.Responses"> <Files xmlns:d2p1="http://schemas.datacontract.org/2004/07/PwC.DigitalHub.Utilities.IO.Concretes.Models"> <d2p1:BinaryFile> <Content xmlns="http://schemas.datacontract.org/2004/07/PwC.DigitalHub.Utilities.IO.Core.Contracts.Models">AA==</Content> <d2p1:Metadata xmlns:d4p1="http://schemas.datacontract.org/2004/07/PwC.DigitalHub.Utilities.IO.Core.Concretes.Models"> <d4p1:Extensions xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d4p1:Extensions> <d4p1:FullName>String</d4p1:FullName> <d4p1:GroupCanExecute>false</d4p1:GroupCanExecute> <d4p1:GroupCanRead>false</d4p1:GroupCanRead> <d4p1:GroupCanWrite>false</d4p1:GroupCanWrite> <d4p1:GroupId>0</d4p1:GroupId> <d4p1:LastAccessTime>0001-01-01T00:00:00</d4p1:LastAccessTime> <d4p1:LastAccessTimeUtc>0001-01-01T00:00:00</d4p1:LastAccessTimeUtc> <d4p1:LastWriteTime>0001-01-01T00:00:00</d4p1:LastWriteTime> <d4p1:LastWriteTimeUtc>0001-01-01T00:00:00</d4p1:LastWriteTimeUtc> <d4p1:Length>0</d4p1:Length> <d4p1:Name>String</d4p1:Name> <d4p1:OthersCanExecute>false</d4p1:OthersCanExecute> <d4p1:OthersCanRead>false</d4p1:OthersCanRead> <d4p1:OthersCanWrite>false</d4p1:OthersCanWrite> <d4p1:OwnerCanExecute>false</d4p1:OwnerCanExecute> <d4p1:OwnerCanRead>false</d4p1:OwnerCanRead> <d4p1:OwnerCanWrite>false</d4p1:OwnerCanWrite> <d4p1:UserId>0</d4p1:UserId> </d2p1:Metadata> <d2p1:Name>String</d2p1:Name> </d2p1:BinaryFile> </Files> <Protocols xmlns:d2p1="http://schemas.datacontract.org/2004/07/PwC.Elmaas.Core.Domain.Concretes.Models"> <d2p1:Elma xmlns:n1="http://www.itzbund.de/ELAN/01"> <n1:ELMAKOM ELMAKOMVersion="String"> <n1:ELMAHeader> <n1:DatenArt>ELMA_CC</n1:DatenArt> <n1:AuthSteuernummer>String</n1:AuthSteuernummer> <n1:AccountID>String</n1:AccountID> <n1:ErstellungsDatum>0001-01-01T00:00:00.000</n1:ErstellungsDatum> <n1:KundeneigeneID>String</n1:KundeneigeneID> <n1:UUID>00000000-0000-0000-0000-000000000000</n1:UUID> <n1:Verarbeitungslauf>PRODUKTIONSLAUF</n1:Verarbeitungslauf> </n1:ELMAHeader> <n1:ELMAVerfahren /> </n1:ELMAKOM> <n1:ELMAProtokoll> <n1:Dateiname>String</n1:Dateiname> <n1:AuthSteuernummer>String</n1:AuthSteuernummer> <n1:AccountID>String</n1:AccountID> <n1:VerarbeitungsDatum>0001-01-01</n1:VerarbeitungsDatum> <n1:VerarbeitungsZeit>0001-01-01</n1:VerarbeitungsZeit> <n1:Status>ELMA_GLOBAL_UNBEKANNT</n1:Status> <n1:StatusText>String</n1:StatusText> <n1:StatusDetail>String</n1:StatusDetail> <n1:KundeneigeneID>String</n1:KundeneigeneID> <n1:UUID>00000000-0000-0000-0000-000000000000</n1:UUID> </n1:ELMAProtokoll> <n1:ELMAFEHLER> <n1:Dateiname>String</n1:Dateiname> <n1:AuthSteuernummer>String</n1:AuthSteuernummer> <n1:AccountID>String</n1:AccountID> <n1:VerarbeitungsDatum>0001-01-01</n1:VerarbeitungsDatum> <n1:VerarbeitungsZeit>00:00:00.000</n1:VerarbeitungsZeit> <n1:FehlerID>ELMA_GLOBAL_UNBEKANNT</n1:FehlerID> <n1:FehlerText>String</n1:FehlerText> <n1:FehlerProzess>String</n1:FehlerProzess> <n1:KundeneigeneID>String</n1:KundeneigeneID> <n1:UUID>00000000-0000-0000-0000-000000000000</n1:UUID> </n1:ELMAFEHLER> </d2p1:Elma> </Protocols> <ResponseStatus xmlns:d2p1="http://schemas.servicestack.net/types"> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:Message>String</d2p1:Message> <d2p1:StackTrace>String</d2p1:StackTrace> <d2p1:Errors> <d2p1:ResponseError> <d2p1:ErrorCode>String</d2p1:ErrorCode> <d2p1:FieldName>String</d2p1:FieldName> <d2p1:Message>String</d2p1:Message> <d2p1:Meta xmlns:d5p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d5p1:KeyValueOfstringstring> <d5p1:Key>String</d5p1:Key> <d5p1:Value>String</d5p1:Value> </d5p1:KeyValueOfstringstring> </d2p1:Meta> </d2p1:ResponseError> </d2p1:Errors> <d2p1:Meta xmlns:d3p1="http://schemas.microsoft.com/2003/10/Serialization/Arrays"> <d3p1:KeyValueOfstringstring> <d3p1:Key>String</d3p1:Key> <d3p1:Value>String</d3p1:Value> </d3p1:KeyValueOfstringstring> </d2p1:Meta> </ResponseStatus> </RetrievalResponse>