DocumentResponse

@Serializable
data class DocumentResponse(val id: String, val shipmentId: String, val documentType: String, val title: String? = null, val scanId: String? = null, val jobId: String? = null, val imagesPaths: List<String> = emptyList(), val data: JsonObject? = null, val createdAt: String? = null, val updatedAt: String? = null, val createdById: String? = null)

Response model from the documents API

Constructors

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

Properties

Link copied to clipboard
@SerialName(value = "created_at")
val createdAt: String?
Link copied to clipboard
@SerialName(value = "created_by_id")
val createdById: String?
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 = "id")
val id: 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?
Link copied to clipboard
@SerialName(value = "updated_at")
val updatedAt: String?