(* Options:
Date: 2025-11-04 03:51:30
Version: 8.60
Tip: To override a DTO option, remove "//" prefix before updating
BaseUrl: https://reportfiling.staging.pwc.de
//GlobalNamespace: 
//MakeDataContractsExtensible: False
//AddReturnMarker: True
//AddDescriptionAsComments: True
//AddDataContractAttributes: False
//AddIndexesToDataMembers: False
//AddGeneratedCodeAttributes: False
//AddResponseStatus: False
//AddImplicitVersion: 
//ExportValueTypes: False
IncludeTypes: BatchSubmitFilesAsync.*
//ExcludeTypes: 
//InitializeCollections: False
//AddNamespaces: 
*)
namespace PwC.Elmaas.Core.Domain.Concretes.Models
open System
open System.IO
open System.Collections
open System.Collections.Generic
open System.Runtime.Serialization
open ServiceStack
open ServiceStack.DataAnnotations
open System.Xml.Schema
    ///
    ///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 = null 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
    []
    type IUploadRequest = 
        abstract ValidationEnabled:Boolean with get,set
    ///
    ///Specifies a request to submit report files to ELMa via HTTP file upload.
    ///
    []
    []
    type BatchSubmitFilesBase() = 
        interface IPost
        ///
        ///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
    ///
    ///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 = null with get,set
        ///
        ///The status of the report submission operation.
        ///
        []
        member val ResponseStatus:ResponseStatus = null with get,set
    ///
    ///Represents a request to submit report files to ELMa via HTTP file upload in an asynchronous operation.
    ///
    []
    []
    []
    type BatchSubmitFilesAsync() = 
        inherit BatchSubmitFilesBase()
        interface IReturn>