create
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.
Return
Order instance.
Parameters
to
DID that the message is being sent to.
from
DID of the sender.
exchange Id
ID of the exchange.
protocol
version of the tbdex protocol.
external Id
external reference for the order. Optional.