//***AUTO GENERATED CODE. DO NOT EDIT***.
{
  "$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",
      "properties": {
        "eventId": {
          "type": "string"
        },
        "dateTime": {
          "type": "string",
          "format": "yyyy-MM-dd'T'HH:mm:ss.SSSZ"
        },
        "operationInstanceId": {
          "type": "string"
        },
        "sequenceInstanceId": {
          "type": "string"
        },
        "organizationId": {
          "type": "string"
        },
        "correlationId": {
          "type": "string"
        },
        "tenantId": {
          "type": "string"
        },
        "userId": {
          "type": "string"
        },
        "priority": {
          "type": "integer"
        },
        "payload": {
  "type" : "object",
  "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:function:CreateNewPaymentOrderInput",
  "properties" : {
    "body" : {
      "type" : "object",
      "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:view:PaymentOrder",
      "properties" : {
        "fromAccount" : {
          "type" : "string"
        },
        "toAccount" : {
          "type" : "string"
        },
        "paymentReference" : {
          "type" : "string"
        },
        "paymentDetails" : {
          "type" : "string"
        },
        "currency" : {
          "type" : "string",
          "enum" : [ "USD", "INR" ]
        },
        "amount" : {
          "type" : "number"
        },
        "expires" : {
          "type" : "integer"
        },
        "fileContent" : {
          "type" : "array",
          "items" : {
            "type" : "integer"
          }
        },
        "extensionData" : {
          "type" : "any"
        },
        "paymentDate" : {
          "type" : "string"
        },
        "paymentMethod" : {
          "type" : "object",
          "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:view:PaymentMethod",
          "properties" : {
            "id" : {
              "type" : "integer"
            },
            "name" : {
              "type" : "string"
            },
            "extensionData" : {
              "type" : "any"
            },
            "card" : {
              "type" : "object",
              "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:view:Card",
              "properties" : {
                "cardid" : {
                  "type" : "integer"
                },
                "cardname" : {
                  "type" : "string"
                },
                "cardlimit" : {
                  "type" : "number"
                }
              }
            }
          }
        },
        "exchangeRates" : {
          "type" : "array",
          "items" : {
            "type" : "object",
            "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:view:ExchangeRate",
            "properties" : {
              "id" : {
                "type" : "integer"
              },
              "name" : {
                "type" : "string"
              },
              "value" : {
                "type" : "number"
              }
            }
          }
        },
        "payeeDetails" : {
          "type" : "object",
          "id" : "urn:jsonschema:com:temenos:microservice:paymentorder:view:PayeeDetails",
          "properties" : {
            "payeeName" : {
              "type" : "string"
            },
            "payeeType" : {
              "type" : "string"
            }
          }
        },
        "descriptions" : {
          "type" : "array",
          "items" : {
            "type" : "string"
          }
        }
      }
    }
  }
},
        "eventType": {
          "type": "string"
        },
        "status": {
          "type": "string"
        },
        "eventSourceId": {
          "type": "string"
        },
        "businessObject": {
          "type": "object",
          "properties": {
            "status": {
              "type": "integer"
            },
            "failureMessages": {
              "type": "array",
              "items": {}
            },
            "success": {
              "type": "boolean"
            }
          },
          "required": [
            "status",
            "failureMessages",
            "success"
          ]
        }
      },
      "required": [
        "eventId",
        "organizationId",
        "tenantId",
        "userId",
        "priority",
        "status",
        "eventType",
        "payload"
      ]
    }
  }
}