{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "eventId": {
      "type": "string"
    },
    "dateTime": {
       "type": "string",
       "format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
    },
    "organizationId": {
      "type": "string"
    },
    "correlationId": {
      "type": "string"
    },
    "tenantId": {
      "type": "string"
    },
    "userId": {
      "type": "string"
    },
    "priority": {
      "type": "integer"
    },
    "status": {
      "type": "string"
    },
    "eventSourceId": {
      "type": "string"
    },
    "businessObjects": {
      "type": "object"
    },
    "eventType": {
      "type": "string"
    },
    "operationInstanceId": {
      "type": "string"
    },
    "payload": {
  "type" : "object",
  "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:event:CreatePaymentEvent",
  "properties" : {
    "paymentOrderId" : {
      "type" : "string"
    },
    "debitAccount" : {
      "type" : "string"
    },
    "creditAccount" : {
      "type" : "string"
    },
    "amount" : {
      "type" : "number"
    },
    "currency" : {
      "type" : "string"
    }
  }
},
    "sequenceInstanceId": {
      "type": "string"
    }
  },
  "required": [
    "eventId",
    "organizationId",
    "tenantId",
    "userId",
    "priority",
    "status",
    "eventType",
    "payload"
      ]
}