DocumentInput

@Serializable
data class DocumentInput(val shipmentId: String, val scanId: String? = null, val jobId: String? = null, val title: String? = null, val documentType: String, val imagesPaths: List<String> = emptyList(), val data: JsonObject = JsonObject(emptyMap()))

Input model for creating a document via the documents API

Constructors

Link copied to clipboard
constructor(shipmentId: String, scanId: String? = null, jobId: String? = null, title: String? = null, documentType: String, imagesPaths: List<String> = emptyList(), data: JsonObject = JsonObject(emptyMap()))

Properties

Link copied to clipboard
@SerialName(value = "data")
val data: JsonObject
Link copied to clipboard
@SerialName(value = "document_type")
val documentType: String
Link copied to clipboard
@SerialName(value = "images_paths")
val imagesPaths: List<String>
Link copied to clipboard
@SerialName(value = "job_id")
val jobId: String?
Link copied to clipboard
@SerialName(value = "scan_id")
val scanId: String?
Link copied to clipboard
@SerialName(value = "shipment_id")
val shipmentId: String
Link copied to clipboard
@SerialName(value = "title")
val title: String?