{ "$schema": "http://json-schema.org/draft-04/schema#", "type": "object", "properties": { "eventType": { "type": "string" }, "payload": { "type": "array", "items": [ { "type": "object", "properties": { "user": { "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": { "consumer": { "type": "array", "items": [ { "type": "object", "properties": { "ref": { "type": "string" } } }, { "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": { "cartId": { "type": "string" } } }, { "type": "object", "properties": { "orderValue": { "type": "string" } } }, { "type": "object", "properties": { "currency": { "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": { "priceList": { "type": "string" } } }, { "type": "object", "properties": { "priceEffective": { "type": "string" } } }, { "type": "object", "properties": { "currency": { "type": "string" } } }, { "type": "object", "properties": { "taxAmount": { "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": { "priceList": { "type": "string" } } }, { "type": "object", "properties": { "priceEffective": { "type": "string" } } }, { "type": "object", "properties": { "currency": { "type": "string" } } }, { "type": "object", "properties": { "taxAmount": { "type": "string" } } }, { "type": "object", "properties": { "status": { "type": "string" } } } ] } ] } } }, { "type": "object", "properties": { "promotionInfo": { "type": "array", "items": { "type": "array", "items": [ { "type": "object", "properties": { "ref": { "type": "string" } } }, { "type": "object", "properties": { "type": { "type": "string" } } } ] } } } }, { "type": "object", "properties": { "paymentInfo": { "type": "array", "items": [ { "type": "object", "properties": { "paymentType": { "type": "string" } } }, { "type": "object", "properties": { "status": { "type": "string" } } } ] } } }, { "type": "object", "properties": { "shipmentInfo": { "type": "array", "items": [ { "type": "object", "properties": { "address": { "type": "array", "items": [ { "type": "object", "properties": { "firstName": { "type": "string" } } }, { "type": "object", "properties": { "lastName": { "type": "string" } } }, { "type": "object", "properties": { "addition": { "type": "string" } } }, { "type": "object", "properties": { "street": { "type": "string" } } }, { "type": "object", "properties": { "number": { "type": "string" } } }, { "type": "object", "properties": { "zip": { "type": "string" } } }, { "type": "object", "properties": { "city": { "type": "string" } } }, { "type": "object", "properties": { "country": { "type": "string" } } } ] } } }, { "type": "object", "properties": { "carrier": { "type": "string" } } }, { "type": "object", "properties": { "trackingRef": { "type": "string" } } }, { "type": "object", "properties": { "status": { "type": "string" } } } ] } } } ] } } } ] } } } ] } }, "required": [ "eventType", "payload" ] }