@agorio/sdk • Docs
Function: parseOrderEvent()
parseOrderEvent(
rawBody):AcpOrderEvent
Parse a raw order-event body into a typed AcpOrderEvent. Validates the
minimal envelope (type + data with data.id); tolerates unknown type
values per the spec. Throws on a structurally invalid payload.
Parameters
• rawBody: string
Returns
Defined in
src/client/acp-order-events.ts:117