create

fun create(to: String, from: String, exchangeId: String, orderStatusData: OrderStatusData, protocol: String = "1.0", externalId: String? = null): OrderStatus

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

Return

OrderStatus instance.

Parameters

to

DID that the message is being sent to.

from

DID of the sender.

exchangeId

ID of the exchange.

orderStatusData

Specific parameters relevant to an OrderStatus.

protocol

version of the tbdex protocol.

externalId

external reference for the order status. Optional.