{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "eventType": { "type": "string" }, "payload": { "type": "array", "items": [ { "type": "object", "properties": { "sessionId": { "type": "string" } } }, { "type": "object", "properties": { "user": { "type": "string" } } }, { "type": "object", "properties": { "tenant": { "type": "string" } } }, { "type": "object", "properties": { "action": { "type": "string" } } }, { "type": "object", "properties": { "source": { "type": "array", "items": [ { "type": "object", "properties": { "channelRef": { "type": "string" } } }, { "type": "object", "properties": { "date": { "type": "string", "format": "date-time" } } }, { "type": "object", "properties": { "type": { "type": "string" } } }, { "type": "object", "properties": { "body": { "type": "array", "items": [ { "type": "object", "properties": { "status": { "type": "string" } } }, { "type": "object", "properties": { "date": { "type": "string", "format": "date-time" } } }, { "type": "object", "properties": { "orderId": { "type": "string" } } }, { "type": "object", "properties": { "lineItems": { "type": "array", "items": [ { "type": "array", "items": [ { "type": "object", "properties": { "ref": { "type": "string" } } }, { "type": "object", "properties": { "type": { "type": "string" } } }, { "type": "object", "properties": { "pos": { "type": "integer" } } }, { "type": "object", "properties": { "quantity": { "type": "integer" } } }, { "type": "object", "properties": { "unit": { "type": "string" } } }, { "type": "object", "properties": { "price_list": { "type": "string" } } }, { "type": "object", "properties": { "price_effective": { "type": "string" } } }, { "type": "object", "properties": { "status": { "type": "string" } } } ] }, { "type": "array", "items": [ { "type": "object", "properties": { "ref": { "type": "string" } } }, { "type": "object", "properties": { "type": { "type": "string" } } }, { "type": "object", "properties": { "pos": { "type": "integer" } } }, { "type": "object", "properties": { "quantity": { "type": "integer" } } }, { "type": "object", "properties": { "unit": { "type": "string" } } }, { "type": "object", "properties": { "price_list": { "type": "string" } } }, { "type": "object", "properties": { "price_effective": { "type": "string" } } }, { "type": "object", "properties": { "status": { "type": "string" } } } ] } ] } } } ] } } } ] } } } ] } }, "required": [ "eventType", "payload" ] }