{
    "title": "OrderState",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.controller.model.order.OrderState",
    "type": "object",
    "properties": {
        "TYPE": {
            "type": "string"
        },
        "expected": {
            "description": "set if state == ExpectingNotices",
            "type": "array",
            "items": {
                "type": "object",
                "javaType": "com.sos.controller.model.order.ExpectedNotice",
                "properties": {
                    "boardName": {
                        "alias": "boardPath",
                        "type": "string"
                    },
                    "noticeId": {
                        "type": "string"
                    }
                },
                "additionalProperties": false
            }
        },
        "cycleState": {
            "type": "object",
            "javaType": "com.sos.controller.model.order.OrderCycleState",
            "description": "set if state == BetweenCycles or processing inside a cycle",
            "properties": {
                "next": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "since": {
                    "description": "Value is UTC timestamp in ISO 8601 YYYY-MM-DDThh:mm:ss.sZ or empty",
                    "type": "string",
                    "format": "date-time"
                },
                "index": {
                    "type": "integer"
                }
            },
            "additionalProperties": false
        },
        "subagentId": {
            "type": "string"
        }
    },
    "additionalProperties": false
}