{
    "title": "OrderState",
    "$schema": "http://json-schema.org/draft-04/schema#",
    "javaType": "com.sos.controller.model.order.OrderState",
    "type": "object",
    "properties": {
        "TYPE": {
            "type": "string"
        },
        "noticeId": {
            "description": "set if state == ExpectingNotice",
            "type": "string"
        },
        "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
}