Table of Contents

Method SubmitAttachment

Namespace
Zedal.Sdk.Apis.Diwass
Assembly
Zedal.Sdk.dll

SubmitAttachment(AttachmentBinaryObjectType)

Übergibt ein Binär-Attachment an DIWASS und liefert dessen zentrale Kennung zurück. Roh-Form, in der Aufrufer das Infotech.Zedal.Documents.V1.Diwass.Waste.Model.V1.AttachmentBinaryObjectType selbst vorbefüllen — inklusive Magic-String-type_id. Für neuen Code den Enum-Overload SubmitAttachment(byte[], AttachmentTypeId, string, string, bool) bevorzugen.

Task<AttachmentSubmissionResponseType> SubmitAttachment(AttachmentBinaryObjectType attachment)

Parameters

attachment AttachmentBinaryObjectType

Returns

Task<AttachmentSubmissionResponseType>

SubmitAttachment(byte[], AttachmentTypeId, string, string, bool)

Übergibt ein Binär-Attachment an DIWASS — Convenience-Form mit typsicherem AttachmentTypeId. Setzt type_id, mime_code, filename und contains_personal_data intern und ruft den Submit-Endpoint auf.

Task<AttachmentSubmissionResponseType> SubmitAttachment(byte[] content, AttachmentTypeId typeId, string mimeCode, string filename, bool containsPersonalData = false)

Parameters

content byte[]

Roh-Bytes der Datei.

typeId AttachmentTypeId

DIWASS-Klassifikator des Attachments.

mimeCode string

MIME-Type (z.B. application/pdf).

filename string

Originaldateiname, wie er DIWASS übergeben wird.

containsPersonalData bool

Flag laut DIWASS-Spec — Default false.

Returns

Task<AttachmentSubmissionResponseType>