(* Options:
Date: 2024-11-26 01:53:17
Version: 6.110
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://reportfiling.pwc.de
//GlobalNamespace:
//MakeDataContractsExtensible: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion:
//ExportValueTypes: False
IncludeTypes: SubmitReport.*
//ExcludeTypes:
//InitializeCollections: True
//AddNamespaces:
*)
namespace PwC.Elmaas.Core.Domain.Concretes.Models
open System
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
open System.Xml.Schema
open System.Net
///
///Represents a PEM-encoded certificate.
///
[]
[]
type PemCertificate() =
///
///The unique identifier (e.g. the file name) of the certificate.
///
[]
member val Id:String = null with get,set
///
///The PEM-encoded content of the certificate.
///
[]
member val Content:String = null with get,set
///
///The description of the certificate.
///
[]
member val Description:String = null with get,set
///
///Tags to label or identify the certificate.
///
[]
member val Tags:ResizeArray = new ResizeArray() with get,set
///
///Represents the credentials of a user to authenticate the access of an ELMA server.
///
[]
[]
type ElmaCredential() =
///
///The unique identifier of this instance. This identifer is only relevant in the context of data storage and retrieval.
///
[]
member val Id:String = null with get,set
///
///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)
///
[]
[]
[]
member val Certificate:PemCertificate = null with get,set
///
///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"
///
[]
[]
[]
member val AuthSteuernummer:String = null with get,set
///
///The account identifier of a BZSt-Online Portal (BOP) user. 10-character text field that may only contain numbers (0-9).
///
[]
[]
[]
member val AccountId:String = null with get,set
///
///The password to protect the certificate from unauthorized access.
///
[]
member val Password:String = null with get,set
[]
type IAuthenticateRequest =
abstract Credential:ElmaCredential with get,set
[]
type IStageableRequest =
abstract StagingEnabled:Nullable with get,set
///
///Represents an ELMA report.
///
[]
[]
type Report() =
///
///The conventional ELMA file name of the report. The format of the ELMA formula is as follows: m5_<pb>_<BZSt-Nr>_<AccountID>_<DateiId>.xml where: m5 is a constant for all reporting types. pb is a constant that represents the ELMA product designation e.g. CC, DC, FC etc. BZSt-Nr is the 11-character BZSt (Bundeszentralamt für Steuern) - tax number of the ELMA user e.g. bz123456789 AccountID is the 10-digit account identifier of the BZSt-Online Portal (BOP) user e.g. 1234567890 DateiId is the 1 - 12 character internal short name for the data file.
///
[]
member val Id:String = null with get,set
///
///The XML-content of the report.
///
[]
member val Data:String = null with get,set
///
///Specifies a request to submit a report on the ELMA server.
///
[]
[]
type SubmitReportBase() =
interface IPost
///
///The report to submit.
///
[]
member val Report:Report = null with get,set
///
///The credential to gain access on the ELMA server.
///
[]
member val Credential:ElmaCredential = null with get,set
///
///Should the report data be validated before sending it to the ELMA server? true: report data is validated before it is sent to the ELMA server. false: report data sent without validation to the ELMA server.
///
[]
member val ValidationEnabled:Boolean = new Boolean() with get,set
///
///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.
///
[]
member val StagingEnabled:Nullable = new Nullable() with get,set
[]
type ISingleUploadRequest =
abstract Report:Report with get,set
[]
type IUploadRequest =
abstract ValidationEnabled:Boolean with get,set
///
///Represents a failure encountered during the validation of an ELMA report against its XML schema.
///
[]
[]
type ValidationError() =
///
///The unique identifier of the validation faílure. This is equivalent to the file name of the validated report.
///
[]
member val Id:String = null with get,set
///
///The message of the validation failure.
///
[]
member val Message:String = null with get,set
///
///The severity of the validation faílure.
///
[]
member val Severity:XmlSeverityType = new XmlSeverityType() with get,set
///
///The line number indicating where the error occurred.
///
[]
member val LineNumber:Int32 = new Int32() with get,set
///
///The line position indicating where the error occurred.
///
[]
member val LinePosition:Int32 = new Int32() with get,set
[]
type IElmaCredential =
abstract Certificate:PemCertificate with get,set
abstract AuthSteuernummer:String with get,set
abstract AccountId:String with get,set
abstract Password:String with get,set
///
///Encapsulates the results of submitting a report
///
[]
[]
type SubmissionResponse() =
///
///The unique identifier of the report that was processed.
///
[]
member val Id:String = null with get,set
///
///The submitted XML-based report content.
///
[]
member val Xml:String = null with get,set
///
///The errors encountered during the validation phase of the report submission operation.
///
[]
member val ValidationErrors:ResizeArray = new ResizeArray() with get,set
///
///The status of the report submission operation.
///
[]
member val ResponseStatus:ResponseStatus = null with get,set
///
///Represents a request to submit a report on the ELMA server.
///
[]
[]
[]
type SubmitReport() =
inherit SubmitReportBase()
interface IReturn