Companion

object Companion

Functions

Link copied to clipboard
fun create(to: String, from: String, exchangeId: String, protocol: String = "1.0", externalId: String? = null): Order

Creates a new Order message, autopopulating the id, creation time, and message kind.

Link copied to clipboard
fun parse(payload: String): Order

Takes an existing Order in the form of a json string and parses it into an Order object. Validates object structure and performs an integrity check using the message signature.