Cargo Message With Expiry
data class CargoMessageWithExpiry(val cargoMessageSerialized: ByteArray, val expiryDate: ZonedDateTime)
Serialization and expiry date of a message to be encapsulated in a cargo message set.
Throws
if cargoMessageSerialized
is longer than CargoMessage.MAX_LENGTH