PickTicketData

data class PickTicketData(val referenceId: String = "", val originLocationId: String = "", val proNumber: String? = null, val bolNumber: String? = null, val carrierName: String? = null, val totalWeight: Float? = null, val destination: PickTicketData.DestinationDetails = DestinationDetails(), val handlingUnits: List<HandlingUnit> = emptyList(), val createdAt: String? = null, val updatedAt: String? = null)

Represents a Pick Ticket with all associated data

Constructors

Link copied to clipboard
constructor(referenceId: String = "", originLocationId: String = "", proNumber: String? = null, bolNumber: String? = null, carrierName: String? = null, totalWeight: Float? = null, destination: PickTicketData.DestinationDetails = DestinationDetails(), handlingUnits: List<HandlingUnit> = emptyList(), createdAt: String? = null, updatedAt: String? = null)

Types

Link copied to clipboard
data class DestinationDetails(val city: String = "", val country: String = "", val companyName: String = "", val contactEmail: String = "", val contactFirstName: String = "", val contactLastName: String = "", val contactPhone: String = "", val state: String = "", val streetLine1: String = "", val streetLine2: String = "", val zipCode: String = "", val locationType: String = "")

Represents destination details for a Pick Ticket

Properties

Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard
Link copied to clipboard

Functions

Link copied to clipboard

Merge this PickTicketData with other data, preserving non-empty values from this instance Fills empty fields with values from parameter

Link copied to clipboard
fun toDocumentDataJson(): JsonObject

Extension function to convert PickTicketData to a JsonObject for document data field