UploadNonIdDocument

data class UploadNonIdDocument(val document: AllowedDocument?, val file: UploadFile) : StepInput

A file for an InputRequest.UploadNonIdDocument, and which of its documents it is. Engine checks the file by its first bytes, as the backend does, never by UploadFile.contentType, so a file in another format (a HEIC photo, say) needs converting first.

Constructors

Link copied to clipboard
constructor(document: AllowedDocument?, file: UploadFile)

Properties

Link copied to clipboard

The chosen one of the step's InputRequest.UploadNonIdDocument.allowedDocuments, or one equal to it. Engine sends its type as the backend named it, so an NonIdDocumentType.Unknown one works too. Required when the step allows more than one document; with exactly one, null means that one.

Link copied to clipboard